/* ============================================
   AllApps - Main Stylesheet
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #4F46E5;
  --brand-dark: #3730A3;
  --brand-light: #EEF2FF;
  --accent: #06B6D4;
  --text: #111827;
  --text-2: #374151;
  --text-3: #6B7280;
  --text-4: #9CA3AF;
  --border: #E5E7EB;
  --bg: #F9FAFB;
  --bg-white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg-white); line-height: 1.6; font-size: 15px; }

/* ---- Utilities ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.gradient-text { background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ez-ad-center { text-align: center; margin: 12px auto; display: block; width: 100%; }
.ez-ad-center > div, .ez-ad-center > center { display: block; text-align: center; margin: 4px auto; }
.ez-ad-inline { margin: 14px 0; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ---- Header ---- */
.site-header { background: var(--bg-white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--brand); letter-spacing: -.5px; flex-shrink: 0; }
.logo-icon { display: flex; align-items: center; }
.logo-text { color: var(--text); }
.logo-text span { color: var(--brand); }
.main-nav { display: flex; gap: 4px; }
.nav-link { padding: 8px 14px; border-radius: var(--radius-full); font-weight: 500; font-size: .9rem; color: var(--text-2); transition: all .15s; }
.nav-link:hover, .nav-link.active { background: var(--brand-light); color: var(--brand); }
.header-search { flex: 1; max-width: 380px; margin-left: auto; }
.search-form { display: flex; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-full); overflow: hidden; transition: border-color .15s; }
.search-form:focus-within { border-color: var(--brand); }
.search-input { flex: 1; padding: 9px 16px; background: none; border: none; outline: none; font-size: .875rem; color: var(--text); font-family: var(--font); }
.search-btn { padding: 9px 14px; background: none; border: none; color: var(--text-3); cursor: pointer; display: flex; align-items: center; transition: color .15s; }
.search-btn:hover { color: var(--brand); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .2s; }
.mobile-nav { display: none; background: var(--bg-white); border-top: 1px solid var(--border); padding: 16px 20px; }
.mobile-nav a { display: block; padding: 10px 0; font-weight: 500; color: var(--text-2); border-bottom: 1px solid var(--border); }
.mobile-nav.open { display: block; }
.mobile-search { display: flex; gap: 8px; margin-top: 12px; }
.mobile-search input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); outline: none; font-family: var(--font); }
.mobile-search button { padding: 10px 18px; background: var(--brand); color: white; border: none; border-radius: var(--radius); cursor: pointer; font-weight: 500; }

/* ---- Hero ---- */
.hero-section { background: linear-gradient(135deg, #EEF2FF 0%, #F0FAFA 50%, #FFFBEB 100%); padding: 64px 0 48px; text-align: center; }
.hero-content { max-width: 700px; margin: 0 auto; }
.hero-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; letter-spacing: -.5px; margin-bottom: 16px; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-3); margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-search { display: flex; max-width: 600px; margin: 0 auto 20px; background: white; border: 2px solid var(--border); border-radius: var(--radius-full); overflow: hidden; box-shadow: var(--shadow-lg); transition: border-color .15s; }
.hero-search:focus-within { border-color: var(--brand); }
.hero-search-input { flex: 1; padding: 14px 20px; border: none; outline: none; font-size: 1rem; font-family: var(--font); background: transparent; }
.hero-search-btn { display: flex; align-items: center; gap: 8px; padding: 14px 24px; background: var(--brand); color: white; border: none; cursor: pointer; font-weight: 600; font-size: .95rem; font-family: var(--font); transition: background .15s; white-space: nowrap; }
.hero-search-btn:hover { background: var(--brand-dark); }
.hero-tags { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--text-3); }
.hero-tag { padding: 4px 12px; background: white; border: 1px solid var(--border); border-radius: var(--radius-full); color: var(--text-2); font-size: .8rem; transition: all .15s; }
.hero-tag:hover { border-color: var(--brand); color: var(--brand); }

/* ---- Sections ---- */
.section { padding: 48px 0; }
.section-gray { background: var(--bg); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -.3px; }
.section-link { display: flex; align-items: center; gap: 4px; font-size: .875rem; font-weight: 500; color: var(--brand); transition: gap .15s; }
.section-link:hover { gap: 8px; }

/* ---- Categories Grid ---- */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.category-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 12px; background: white; border: 1.5px solid var(--border); border-radius: var(--radius); text-align: center; transition: all .15s; }
.category-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.category-icon { font-size: 1.75rem; }
.category-name { font-weight: 600; font-size: .875rem; color: var(--text); }
.category-count { font-size: .75rem; color: var(--text-3); }

/* ---- Articles Grid ---- */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.articles-grid-large { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.article-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all .2s; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-img-wrap { position: relative; height: 180px; overflow: hidden; }
.article-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card:hover .article-img { transform: scale(1.05); }
.article-cat-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; background: var(--brand); color: white; border-radius: var(--radius-full); font-size: .72rem; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.article-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.article-title { font-size: .95rem; font-weight: 700; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-excerpt { font-size: .82rem; color: var(--text-3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.article-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }
.article-date { font-size: .75rem; color: var(--text-4); }
.article-read { font-size: .8rem; font-weight: 600; color: var(--brand); }

/* ---- Apps List ---- */
.apps-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.app-list-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: white; border-bottom: 1px solid var(--border); transition: background .1s; }
.app-list-item:last-child { border-bottom: none; }
.app-list-item:hover { background: var(--bg); }
.app-rank { font-size: .8rem; font-weight: 700; color: var(--text-4); min-width: 28px; text-align: center; }
.app-icon-wrap { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--bg); }
.app-icon { width: 100%; height: 100%; object-fit: cover; }
.app-info { flex: 1; min-width: 0; }
.app-name { display: block; font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-cat { display: block; font-size: .78rem; color: var(--text-3); }
.app-rating { display: flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--text-2); }
.app-downloads { font-size: .78rem; color: var(--text-4); min-width: 48px; text-align: right; }

/* ---- Apps Grid ---- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.apps-grid-large { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.app-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px; background: white; border: 1.5px solid var(--border); border-radius: var(--radius-lg); text-align: center; transition: all .2s; }
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.app-card-icon-wrap { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--bg); flex-shrink: 0; }
.app-card-icon { width: 100%; height: 100%; object-fit: cover; }
.app-card-info { display: flex; flex-direction: column; gap: 4px; align-items: center; width: 100%; }
.app-card-name { font-weight: 600; font-size: .85rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-card-cat { font-size: .75rem; color: var(--text-3); }
.app-card-rating { display: flex; align-items: center; gap: 3px; font-size: .78rem; font-weight: 600; color: var(--text-2); }
.app-downloads-badge { font-size: .72rem; color: var(--text-4); background: var(--bg); padding: 2px 8px; border-radius: var(--radius-full); }

/* ---- About Section ---- */
.about-section { max-width: 800px; margin: 0 auto; padding: 40px; background: var(--brand-light); border-radius: var(--radius-lg); }
.about-content h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.about-content p { color: var(--text-2); margin-bottom: 16px; line-height: 1.7; }

/* ---- App Detail ---- */
.app-detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; padding: 32px 0; }
.app-detail-sidebar { position: sticky; top: 80px; }
.sidebar-ad { margin-bottom: 24px; }
.sidebar-section { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px; }
.sidebar-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.sidebar-apps { display: flex; flex-direction: column; gap: 12px; }
.sidebar-app { display: flex; align-items: center; gap: 10px; transition: opacity .15s; }
.sidebar-app:hover { opacity: .8; }
.sidebar-rank { font-size: .75rem; font-weight: 700; color: var(--text-4); min-width: 20px; }
.sidebar-app img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--bg); }
.sidebar-app-name { display: block; font-size: .82rem; font-weight: 600; line-height: 1.3; }
.sidebar-app-rating { display: flex; align-items: center; gap: 3px; font-size: .75rem; color: var(--text-3); }
.sidebar-article { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); transition: opacity .15s; }
.sidebar-article:last-child { border-bottom: none; }
.sidebar-article:hover { opacity: .8; }
.sidebar-article img { width: 60px; height: 45px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.sidebar-article span { font-size: .8rem; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sticky-sidebar-ad { position: sticky; top: 80px; }

.app-detail-hero { display: flex; gap: 24px; align-items: flex-start; padding: 32px; background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 24px; }
.app-detail-icon { width: 100px; height: 100px; border-radius: 22px; object-fit: cover; flex-shrink: 0; box-shadow: var(--shadow); }
.app-detail-meta { flex: 1; }
.app-detail-name { font-size: 1.6rem; font-weight: 800; letter-spacing: -.3px; margin-bottom: 8px; }
.app-detail-rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.stars { display: flex; gap: 2px; }
.rating-score { font-size: 1.1rem; font-weight: 700; }
.app-detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.app-tag { padding: 5px 12px; background: var(--brand-light); color: var(--brand); border-radius: var(--radius-full); font-size: .8rem; font-weight: 600; }
.app-tag-plain { padding: 5px 12px; background: var(--bg); color: var(--text-3); border-radius: var(--radius-full); font-size: .8rem; font-weight: 500; }
.app-detail-stats { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.stat-item { text-align: center; }
.stat-value { display: block; font-size: 1.1rem; font-weight: 700; }
.stat-label { display: block; font-size: .75rem; color: var(--text-3); }
.stat-divider { width: 1px; height: 32px; background: var(--border); }
.btn-download { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--brand); color: white; border-radius: var(--radius); font-weight: 600; font-size: .95rem; transition: all .15s; }
.btn-download:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,.3); }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--brand); color: white; border-radius: var(--radius); font-weight: 600; font-size: .95rem; transition: all .15s; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: white; color: var(--brand); border: 2px solid var(--brand); border-radius: var(--radius); font-weight: 600; font-size: .95rem; transition: all .15s; }
.btn-secondary:hover { background: var(--brand-light); }

.app-info-table { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.info-row { display: flex; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-label { width: 160px; font-size: .875rem; font-weight: 600; color: var(--text-3); flex-shrink: 0; }
.info-value { font-size: .875rem; color: var(--text); }
.info-value a { color: var(--brand); }

.app-content-section { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.content-section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.app-description p { color: var(--text-2); line-height: 1.7; margin-bottom: 12px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { padding-left: 24px; position: relative; color: var(--text-2); line-height: 1.6; }
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.review-card { padding: 16px; background: var(--bg); border-radius: var(--radius); }
.review-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 8px; }
.review-text { font-size: .85rem; color: var(--text-2); line-height: 1.6; margin-bottom: 8px; font-style: italic; }
.review-author { font-size: .78rem; color: var(--text-3); font-weight: 600; }

.editorial-review { border-left: 4px solid var(--brand); }
.editorial-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; background: var(--brand-light); color: var(--brand); border-radius: var(--radius-full); font-size: .8rem; font-weight: 700; margin-bottom: 12px; }
.editorial-review p { color: var(--text-2); line-height: 1.7; margin-bottom: 12px; }

.related-articles { display: flex; flex-direction: column; gap: 12px; }
.related-article-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: var(--bg); border-radius: var(--radius); transition: background .15s; }
.related-article-card:hover { background: var(--brand-light); }
.related-article-card img { width: 80px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.related-article-card h4 { font-size: .85rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.related-article-card span { font-size: .75rem; color: var(--text-3); }

/* ---- Charts ---- */
.charts-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.chart-tab { padding: 10px 24px; border-radius: var(--radius-full); border: 2px solid var(--border); background: white; font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .15s; font-family: var(--font); }
.chart-tab.active { background: var(--brand); color: white; border-color: var(--brand); }
.apps-list-detailed { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.app-list-detailed { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: white; border-bottom: 1px solid var(--border); transition: background .1s; }
.app-list-detailed:last-child { border-bottom: none; }
.app-list-detailed:hover { background: var(--bg); }
.app-rank-lg { font-size: 1.1rem; font-weight: 800; color: var(--text-4); min-width: 36px; text-align: center; }
.app-info-detailed { flex: 1; min-width: 0; }
.app-name-lg { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.app-cat-sm { display: block; font-size: .8rem; color: var(--brand); font-weight: 500; margin-bottom: 4px; }
.app-desc-sm { display: block; font-size: .8rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 400px; }
.app-right { text-align: right; flex-shrink: 0; }
.app-rating-lg { display: flex; align-items: center; gap: 4px; font-weight: 700; justify-content: flex-end; margin-bottom: 4px; }
.app-downloads-sm { font-size: .78rem; color: var(--text-4); }

/* ---- Categories Page ---- */
.all-categories-grid { display: flex; flex-direction: column; gap: 12px; }
.category-big-card { display: flex; align-items: center; gap: 20px; padding: 20px 24px; background: white; border: 1.5px solid var(--border); border-radius: var(--radius-lg); transition: all .2s; }
.category-big-card:hover { border-color: var(--brand); transform: translateX(4px); box-shadow: var(--shadow); }
.cat-big-icon { font-size: 2.5rem; width: 64px; text-align: center; flex-shrink: 0; }
.cat-big-info { flex: 1; }
.cat-big-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.cat-big-desc { font-size: .85rem; color: var(--text-3); line-height: 1.5; margin-bottom: 6px; }
.cat-big-count { font-size: .8rem; font-weight: 600; color: var(--brand); }
.cat-arrow { color: var(--text-4); flex-shrink: 0; }

/* ---- Page Layouts ---- */
.page-hero { padding: 32px 0 24px; }
.page-hero-icon { font-size: 3rem; margin-bottom: 8px; }
.page-title { font-size: 1.8rem; font-weight: 800; letter-spacing: -.3px; margin-bottom: 8px; }
.page-subtitle { color: var(--text-3); font-size: 1rem; max-width: 600px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; padding: 20px 0 0; font-size: .82rem; color: var(--text-3); flex-wrap: wrap; }
.breadcrumb a { color: var(--brand); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Article Page ---- */
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; padding: 24px 0; }
.article-main { min-width: 0; }
.article-hero-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; max-height: 400px; }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-header { margin-bottom: 24px; }
.article-h1 { font-size: 1.6rem; font-weight: 800; line-height: 1.3; letter-spacing: -.3px; margin: 12px 0; }
.article-meta-full { display: flex; gap: 16px; font-size: .82rem; color: var(--text-3); }
.article-text h2 { font-size: 1.25rem; font-weight: 700; margin: 24px 0 12px; }
.article-text p { color: var(--text-2); line-height: 1.75; margin-bottom: 16px; }
.article-lead { font-size: 1.05rem; color: var(--text); font-weight: 500; border-left: 3px solid var(--brand); padding-left: 16px; margin-bottom: 24px; }
.article-related { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--border); }
.article-related h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.article-sidebar { position: sticky; top: 80px; }

/* ---- Static Pages ---- */
.static-layout { display: grid; grid-template-columns: 1fr 250px; gap: 32px; padding: 32px 0; }
.static-content { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.static-content h3 { font-size: 1.1rem; font-weight: 700; margin: 20px 0 10px; }
.static-content p { color: var(--text-2); line-height: 1.7; margin-bottom: 14px; }
.static-content ul { padding-left: 20px; color: var(--text-2); line-height: 1.8; margin-bottom: 14px; }
.static-content a { color: var(--brand); }
.static-sidebar { position: sticky; top: 80px; }

/* ---- Search ---- */
.search-box-large { max-width: 600px; margin-bottom: 32px; }
.search-box-large form { display: flex; gap: 12px; }
.search-input-lg { flex: 1; padding: 12px 18px; border: 2px solid var(--border); border-radius: var(--radius); outline: none; font-size: .95rem; font-family: var(--font); transition: border-color .15s; }
.search-input-lg:focus { border-color: var(--brand); }

/* ---- Error Page ---- */
.error-page { text-align: center; padding: 80px 20px; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--brand); line-height: 1; margin-bottom: 16px; }
.error-title { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.error-message { color: var(--text-3); max-width: 480px; margin: 0 auto 32px; line-height: 1.6; }
.error-actions { display: flex; gap: 12px; justify-content: center; }

/* ---- Empty State ---- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-3); margin-bottom: 24px; }

/* ---- Footer ---- */
.site-footer { background: #111827; color: #d1d5db; margin-top: 48px; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: white; margin-bottom: 16px; display: inline-flex; }
.footer-brand .logo-text { color: white; }
.footer-desc { font-size: .875rem; line-height: 1.7; color: #9ca3af; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.social-link { width: 36px; height: 36px; background: #1f2937; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #9ca3af; transition: all .15s; }
.social-link:hover { background: var(--brand); color: white; }
.footer-links h4 { font-size: .9rem; font-weight: 700; color: white; margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .875rem; color: #9ca3af; transition: color .15s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid #1f2937; padding-top: 24px; font-size: .8rem; color: #6b7280; text-align: center; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .app-detail-layout { grid-template-columns: 1fr; }
  .app-detail-sidebar { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .static-layout { grid-template-columns: 1fr; }
  .static-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .main-nav, .header-search { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-section { padding: 40px 0 32px; }
  .hero-search { flex-direction: column; border-radius: var(--radius-lg); }
  .hero-search-input { padding: 14px 16px; }
  .hero-search-btn { border-radius: 0 0 var(--radius-lg) var(--radius-lg); justify-content: center; }
  .app-detail-hero { flex-direction: column; align-items: center; text-align: center; }
  .app-detail-stats { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .apps-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .info-label { width: 120px; }
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .page-title { font-size: 1.4rem; }
  .section-title { font-size: 1.15rem; }
  .app-detail-hero { padding: 20px; }
  .app-detail-name { font-size: 1.3rem; }
  .apps-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
  .article-h1 { font-size: 1.3rem; }
}
