/* ===== HEADER ===== */
:root{
  --header-bg: #0b1220;
  --header-border: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.9);
  --muted: rgba(255,255,255,0.65);
  --accent: #22c55e;
  --accent-hover: #16a34a;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.header-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* LOGO */
.header-logo img{
  height: 28px;
  display: block;
}

/* NAV */
.header-nav{
  display: flex;
  align-items: center;
  gap: 24px;              /* вместо 128px */
}

.header-nav a{
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  transition: 0.2s ease;
}

.header-nav a:hover{
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* RIGHT SIDE */
.header-right{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* AUTH BUTTONS */
.header-auth{
  display: flex;
  gap: 10px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn-ghost{
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}

.btn-ghost:hover{
  background: rgba(255,255,255,0.10);
}

.btn-primary{
  color: #05210f;
  background: var(--accent);
  border: 1px solid rgba(0,0,0,0.15);
}

.btn-primary:hover{
  background: var(--accent-hover);
}

/* SEARCH */
.search-box{
  position: relative;
}

.search-box input{
  height: 36px;
  padding: 0 32px 0 12px;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  width: 180px;
  outline: none;
}

.search-box input::placeholder{
  color: rgba(255,255,255,0.45);
}

.search-icon{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

/* MOBILE */
@media (max-width: 900px){
  .header-nav{
    display: none; /* если хочешь — позже сделаем бургер-меню */
  }
  .search-box input{
    width: 140px;
  }
}

/* LANGUAGE */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}

.lang-switch img {
  width: 18px;
  height: 12px;
}



/* ===== PAGE CONTENT ===== */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
  flex: 1 0 auto; 
}

/* ===== APP HEADER ===== */
.app-header {
  margin-bottom: 20px;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}

.app-title {
  font-size: 22px;
  margin: 0;
}

.app-date {
  font-size: 14px;
  color: #6b7280;
}

/* ===== BANNER ===== */
.app-banner {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.app-banner img {
  max-width: 100%;
  border-radius: 12px;
}

/* ===== DOWNLOAD ===== */
.download-section {
  margin: 24px 0;
}

.download-btn {
  background: #34c759;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 16px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
}

.download-btn:hover {
  background: #2fb350;
}

/* ===== APP INFO ===== */
.app-info {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
}

.app-info h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.app-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 13px;
  color: #6b7280;
}

.info-value {
  font-size: 15px;
  font-weight: 500;
}

.info-value.link {
  color: #2563eb;
  cursor: pointer;
}

/* ===== SCREENSHOTS ===== */
.app-screenshots {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  margin-top: 20px;
}

.screenshots-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.screenshots-track::-webkit-scrollbar {
  height: 6px;
}

.screenshots-track::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 6px;
}

.screenshot {
  flex: 0 0 auto;
  width: 140px;
}

.screenshot img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.toc {
  margin-top: 20px;
}

.toc-toggle {
  background: #f0f2f5;
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.toc-content {
  display: none;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-top: 6px;
  padding: 12px;
}

.toc-content.open {
  display: block;
}

.toc-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-content li {
  margin-bottom: 8px;
}

.toc-content a {
  color: #2ecc71;
  text-decoration: none;
  font-size: 14px;
}

.toc-content a:hover {
  text-decoration: underline;
}

.download-notes {
  font-size: 14px;
  color: #374151;
  margin-bottom: 20px;
}

.download-notes ul {
  padding-left: 18px;
}


.app-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
  margin-bottom: 20px;
}

.stars {
  color: #f59e0b;
  font-size: 20px;
  letter-spacing: 2px;
}

.rating-text {
  font-size: 14px;
  color: #374151;
}

.share-links {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.share-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-decoration: none;
}

.facebook { background: #1877f2; }
.twitter { background: #1da1f2; }
.pinterest { background: #e60023; }
.email { background: #6b7280; }


.recommended-apps h2 {
  margin-bottom: 16px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.app-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

.app-card img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
}


/* ===== FOOTER WRAPPER ===== */
.site-footer{
  background: var(--header-bg);
  border-top: 1px solid var(--header-border);
  margin-top: 28px;
  padding: 18px 16px;
  flex-shrink: 0; 
}

.footer-box{
  max-width: 1200px;
  margin: 0 auto;
  /* убираем "белую карточку" */
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-menu{
  display: flex;
  gap:5px;
  flex-wrap: wrap;
}

.footer-menu a{
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  transition: 0.2s ease;
}

.footer-menu a:hover{
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.footer-copy{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--header-border);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* 📱 MOBILE */
@media (max-width: 768px){
  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
  }
}


html, body {
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}



body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .container,
  main,
  .content,
  .site-content,
  article {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
}


.lang-switch select {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
}


/* ===== LANGUAGE DROPDOWN ===== */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

/* КНОПКА */
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

/* МЕНЮ */
.lang-menu {
  position: absolute;
  top: 100%;              /* ПРЯМО ПОД КНОПКОЙ */
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  min-width: 140px;
  z-index: 100;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 🔥 ВОТ ОН — HOVER-МОСТ */
.lang-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

/* ПОКАЗ МЕНЮ */
.lang-dropdown:hover .lang-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ССЫЛКИ */
.lang-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: #111827;
  text-decoration: none;
}

.lang-menu a:hover {
  background: #f3f4f6;
}


.lang-current::after {
  content: " ▾";
}

/* Indonesian */
html[lang="id"] .lang-current::before {
  content: "Indonesian";
}

/* English */
html[lang="en"] .lang-current::before {
  content: "English";
}

/* Philippinies */
html[lang="ph"] .lang-current::before {
  content: "Tagalog";
}


