/* ============================================================
   Qruze Player — shared tokens, header, footer, utilities
   v5 — full responsive rewrite
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

/* ─── Tokens ─── */
:root {
  --bg:          #050505;
  --bg2:         #0b0b0f;
  --bg3:         #111116;
  --surf:        rgba(16,16,20,0.72);
  --surf2:       rgba(22,22,28,0.88);
  --border:      rgba(255,255,255,0.08);
  --border-r:    rgba(229,9,20,0.4);
  --text:        #f2f2f4;
  --text2:       #b8b8c0;
  --muted:       #7a7a84;
  --red:         #e50914;
  --red2:        #ff1d2a;
  --glow-red:    0 0 32px rgba(229,9,20,0.20);
  --r:           14px;
  --r-sm:        10px;
  --topbar-h:    60px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* prevent horizontal overflow globally */
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* CRITICAL: SVG icons never blow up */
svg {
  display: block;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ─── Global fixed background ─── */
.site-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%,   rgba(229,9,20,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 95% 30%,  rgba(229,9,20,0.07) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 50%, #030303 100%);
}

.site-wrap {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ─── Layout helper ─── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              border-color 0.18s ease, background 0.18s ease;
}
.btn--red {
  background: linear-gradient(135deg, var(--red2) 0%, var(--red) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(229,9,20,0.38);
}
.btn--red:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(229,9,20,0.50);
}
.btn--outline {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.14);
  color: var(--text);
}
.btn--outline:hover {
  border-color: var(--border-r);
  background: rgba(229,9,20,0.07);
}

/* Ana CTA — APK indir (geniş dokunma alanı) */
.btn--apk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px 28px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border-radius: 12px;
}
@media (max-width: 480px) {
  .btn--apk { width: 100%; text-align: center; }
}

/* ─── Topbar ─── */
.topbar {
  position: sticky;
  top: 0; z-index: 200;
  height: var(--topbar-h);
  background: rgba(5,5,5,0.84);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(229,9,20,0.10);
}
.topbar__inner {
  max-width: 1180px; margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}

/* Brand */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 0; flex-shrink: 0; text-decoration: none;
}
.brand__logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(229,9,20,0.35);
  box-shadow: 0 0 18px rgba(229,9,20,0.18);
  transition: box-shadow 0.2s ease;
}
.brand__logo:hover { box-shadow: 0 0 28px rgba(229,9,20,0.35); }
.brand__text { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
.brand__text strong { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.brand__text span   { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Desktop nav */
.nav-desktop {
  display: flex; align-items: center; gap: 2px;
}
.nav-desktop a {
  padding: 8px 12px;
  font-size: 13px; font-weight: 600;
  color: var(--text2);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-desktop a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-desktop a.active { color: #fff; background: rgba(229,9,20,0.12); box-shadow: inset 0 0 0 1px rgba(229,9,20,0.3); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
  flex-shrink: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 300; pointer-events: none;
}
.mobile-drawer.open { pointer-events: auto; }
.mobile-drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0; transition: opacity 0.25s ease;
}
.mobile-drawer.open .mobile-drawer__backdrop { opacity: 1; }
.mobile-drawer__panel {
  position: absolute; top: 0; right: 0;
  width: min(300px, 90vw); height: 100%;
  background: linear-gradient(180deg, #0e0e13 0%, var(--bg) 100%);
  border-left: 1px solid var(--border);
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
}
.mobile-drawer.open .mobile-drawer__panel { transform: translateX(0); }
.mobile-drawer__panel a {
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 15px; font-weight: 600;
  color: var(--text2);
}
.mobile-drawer__panel a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.mobile-drawer__panel .btn--red { margin-top: 10px; width: 100%; }

/* Responsive topbar */
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .topbar__cta .btn--red { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-drawer { display: block; }
}
@media (max-width: 400px) {
  .topbar__inner { padding: 0 14px; gap: 8px; }
  .brand__text { display: none; }
  .brand__logo { width: 36px; height: 36px; }
}

/* ─── Footer ─── */
.site-footer {
  margin-top: auto;
  padding: 52px 0 20px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
.site-footer__brand .brand__logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.site-footer__brand p { font-size: 13px; color: var(--muted); line-height: 1.65; max-width: 280px; }
.site-footer h4 { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text2); }
.site-footer__links { display: flex; flex-direction: column; gap: 9px; }
.site-footer__links a { font-size: 13px; color: var(--muted); transition: color 0.15s; }
.site-footer__links a:hover { color: var(--red); }
.site-footer__bottom {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--muted);
}

@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─── Utils ─── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
