/* GetMod — Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #0d0f14;
  --surface: #161a22;
  --surface2: #1e2330;
  --surface3: #252b3b;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --accent: #00e5a0;
  --accent-dark: #00b87d;
  --accent2: #4f8cff;
  --warn: #ff6b35;
  --text: #f0f2f7;
  --muted: #7a8299;
  --muted2: #4a5068;
  --r: 12px;
  --r-lg: 16px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Syne', sans-serif; font-size: 15px; line-height: 1.6; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }
img { max-width: 100%; border-radius: 8px; }
button { font-family: 'Syne', sans-serif; cursor: pointer; }
input, select, textarea { font-family: 'Syne', sans-serif; }

/* --- UTILITIES --- */
.mono { font-family: 'Space Mono', monospace; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-warn { color: var(--warn); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.hidden { display: none !important; }

/* --- PILLS / BADGES --- */
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; font-family: 'Space Mono', monospace; letter-spacing: 0.02em; }
.pill-green { background: rgba(0,229,160,0.12); color: var(--accent); border: 1px solid rgba(0,229,160,0.2); }
.pill-orange { background: rgba(255,107,53,0.12); color: var(--warn); border: 1px solid rgba(255,107,53,0.2); }
.pill-blue { background: rgba(79,140,255,0.12); color: var(--accent2); border: 1px solid rgba(79,140,255,0.2); }
.pill-gray { background: rgba(122,130,153,0.12); color: var(--muted); border: 1px solid rgba(122,130,153,0.2); }

/* --- CARD --- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.card:hover { border-color: var(--border2); }

/* --- BUTTONS --- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; border-radius: var(--r); font-size: 14px; font-weight: 700; border: none; transition: all 0.15s; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border2); }
.btn-secondary:hover { background: var(--surface3); }
.btn-danger { background: rgba(255,71,87,0.15); color: #ff4757; border: 1px solid rgba(255,71,87,0.2); }
.btn-danger:hover { background: rgba(255,71,87,0.25); }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--r-lg); }

/* --- TOPBAR --- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); height: 60px; display: flex; align-items: center; padding: 0 40px; gap: 14px; position: sticky; top: 0; z-index: 100; width: 100%; }
.logo { font-size: 22px; font-weight: 800; color: var(--text); white-space: nowrap; flex-shrink: 0; }
.logo span { color: var(--accent); }
.search-wrap { flex: 1; max-width: 520px; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; height: 42px; transition: border-color 0.15s; }
.search-box:focus-within { border-color: var(--accent); }
.search-box input { background: none; border: none; outline: none; color: var(--text); font-family: 'Syne', sans-serif; font-size: 14px; width: 100%; }
.search-box input::placeholder { color: var(--muted); }
.search-icon { color: var(--muted); font-size: 18px; flex-shrink: 0; }
.nav-links { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.nav-link { padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--muted); transition: all 0.15s; }
.nav-link:hover, .nav-link.active { background: var(--surface2); color: var(--text); }

/* --- AD ZONES --- */
.ad-zone { border-radius: var(--r); display: flex; align-items: center; justify-content: center; }
.ad-header { margin: 12px 0; }
.ad-content { margin: 16px 0; }
.ad-sidebar { }

/* --- CATEGORY CHIPS --- */
.cat-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; -ms-overflow-style: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; background: var(--surface2); border: 1px solid var(--border); border-radius: 20px; padding: 7px 15px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.cat-chip:hover { color: var(--text); border-color: var(--border2); }
.cat-chip.active { background: var(--accent); color: #000; border-color: var(--accent); }
.cat-chip .chip-icon { font-size: 15px; }

/* --- SECTION HEADER --- */
.sec-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sec-hd h2 { font-size: 18px; font-weight: 700; }
.sec-hd a { font-size: 13px; color: var(--accent); font-weight: 500; }

/* --- FEATURED CARDS (horizontal scroll) --- */
.feat-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.feat-row::-webkit-scrollbar { display: none; }
.feat-card { flex-shrink: 0; width: 168px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; cursor: pointer; transition: all 0.2s; }
.feat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feat-icon { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; margin-bottom: 12px; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.feat-name { font-size: 14px; font-weight: 700; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-cat { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.feat-meta { display: flex; align-items: center; justify-content: space-between; }
.stars { color: #f5c518; font-size: 12px; font-weight: 700; }

/* --- APP LIST ROWS --- */
.app-list { display: flex; flex-direction: column; gap: 8px; }
.app-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: all 0.15s; text-decoration: none; color: var(--text); }
.app-row:hover { border-color: var(--border2); transform: translateX(2px); }
.app-icon-sm { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; flex-shrink: 0; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.app-info { flex: 1; min-width: 0; }
.app-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-meta { font-size: 12px; color: var(--muted); margin-top: 2px; margin-bottom: 6px; }
.app-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.dl-btn { flex-shrink: 0; background: var(--accent); color: #000; border: none; border-radius: 9px; padding: 8px 16px; font-size: 13px; font-weight: 700; font-family: 'Syne', sans-serif; transition: all 0.15s; white-space: nowrap; }
.dl-btn:hover { background: var(--accent-dark); }

/* --- HERO SECTION --- */
.hero-band { background: var(--surface); border: 1px solid rgba(0,229,160,0.15); border-radius: var(--r-lg); padding: 20px; display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.hero-icon { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; flex-shrink: 0; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 36px; border: 1px solid rgba(0,229,160,0.1); }
.hero-tag { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 5px; }
.hero-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.hero-sub { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

/* --- DETAIL PAGE --- */
.detail-hero { display: flex; gap: 20px; margin-bottom: 24px; }
.detail-icon { width: 90px; height: 90px; border-radius: 20px; object-fit: cover; flex-shrink: 0; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 44px; }
.detail-name { font-size: 22px; font-weight: 800; margin-bottom: 5px; }
.detail-dev { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.detail-pills { display: flex; gap: 7px; flex-wrap: wrap; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px; text-align: center; }
.stat-num { font-size: 17px; font-weight: 700; color: var(--accent); }
.stat-lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }
.screenshots { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 24px; scrollbar-width: none; }
.screenshots::-webkit-scrollbar { display: none; }
.screenshot { flex-shrink: 0; width: 130px; height: 220px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); background: var(--surface2); }
.version-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.vbox { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.vbox-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.vbox-val { font-size: 14px; font-weight: 700; }
.desc-block { margin-bottom: 20px; }
.desc-block h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.desc-block p { font-size: 14px; color: var(--muted); line-height: 1.75; }
.desc-block ul { list-style: none; padding: 0; }
.desc-block ul li { font-size: 14px; color: var(--muted); padding: 4px 0; padding-left: 16px; position: relative; }
.desc-block ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* --- DOWNLOAD MODAL --- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 500; align-items: flex-end; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-sheet { background: var(--surface); border-radius: 20px 20px 0 0; padding: 28px 24px 36px; width: 100%; max-width: 500px; border-top: 1px solid var(--border2); }
.modal-handle { width: 40px; height: 4px; background: var(--border2); border-radius: 2px; margin: 0 auto 24px; }
.modal-app-row { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.modal-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; object-fit: cover; }
.modal-app-name { font-size: 16px; font-weight: 800; }
.modal-app-meta { font-size: 13px; color: var(--muted); }
.modal-ad { background: var(--bg); border: 1px dashed rgba(255,107,53,0.25); border-radius: 10px; padding: 16px; margin-bottom: 20px; text-align: center; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.modal-ad .ad-label-tag { color: rgba(255,107,53,0.6); border-color: rgba(255,107,53,0.2); }

/* --- LAYOUT --- */
.container { width: 100%; margin: 0; padding: 0 40px; }
.page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 28px 0; width: 100%; }
.page-main { min-width: 0; }
.page-sidebar { min-width: 0; }

/* --- MOBILE NAV --- */
.mobile-nav { display: none; background: var(--surface); border-top: 1px solid var(--border); position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; padding: 8px 0 max(12px, env(safe-area-inset-bottom)); }
.mobile-nav-inner { display: flex; max-width: 500px; margin: 0 auto; }
.mnav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; padding: 4px; text-decoration: none; }
.mnav-icon { font-size: 22px; line-height: 1; }
.mnav-label { font-size: 10px; color: var(--muted); font-weight: 500; }
.mnav-item.active .mnav-label { color: var(--accent); }

/* --- SEARCH RESULTS --- */
.search-results { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--r-lg); position: absolute; top: calc(100% + 6px); left: 0; right: 0; max-height: 380px; overflow-y: auto; z-index: 300; display: none; }
.search-results.open { display: block; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; transition: background 0.1s; text-decoration: none; color: var(--text); }
.sr-item:hover { background: var(--surface2); }
.sr-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--surface2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; object-fit: cover; }
.sr-name { font-size: 14px; font-weight: 700; }
.sr-meta { font-size: 12px; color: var(--muted); }
.sr-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }

/* --- NATIVE AD --- */
.native-ad { background: var(--surface); border: 1px solid rgba(79,140,255,0.15); border-radius: var(--r-lg); padding: 16px; display: flex; gap: 14px; align-items: center; }
.native-ad-icon { width: 56px; height: 56px; border-radius: 13px; background: rgba(79,140,255,0.08); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.native-ad-title { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.native-ad-desc { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.native-ad-btn { background: var(--accent2); color: #fff; border: none; border-radius: 7px; padding: 6px 14px; font-size: 12px; font-weight: 700; font-family: 'Syne', sans-serif; cursor: pointer; }
.native-ad-label { margin-left: auto; font-family: 'Space Mono', monospace; font-size: 10px; color: rgba(79,140,255,0.4); align-self: flex-start; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { display: none; }
  .mobile-nav { display: block; }
  body { padding-bottom: 70px; }
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 0 14px; gap: 10px; }
  .container { padding: 0 14px; }
  .detail-hero { flex-direction: column; }
  .detail-icon { width: 70px; height: 70px; }
}

@media (min-width: 769px) {
  .container { padding: 0 40px; }
  .page-layout { grid-template-columns: 1fr 320px; gap: 32px; }
}

@media (min-width: 1400px) {
  .container { padding: 0 60px; }
  .page-layout { grid-template-columns: 1fr 340px; gap: 40px; }
}

@media (min-width: 1800px) {
  .container { padding: 0 80px; }
  .page-layout { grid-template-columns: 1fr 380px; gap: 48px; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.3s ease both; }

/* --- FOOTER --- */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 32px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--muted); }