/* ── Reset & Tokens ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #080d1a;
  --navy-mid:  #0e1629;
  --teal:      #62e2e7;
  --teal-rgb:  98, 226, 231;
  --teal-dim:  #2faeb5;
  --aurora:    #a7f4f7;
  --aurora-rgb: 167, 244, 247;
  --ice:       #e4fbfc;
  --white:     #ffffff;
  --muted:     #8fa8b8;
  --card-bg:   #111c2e;
  --radius:    14px;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
  --nav-overlay: rgba(8, 13, 26, 0.7);
  --mobile-overlay: rgba(8, 13, 26, 0.97);
}

[data-theme="light"] {
  --navy:      #edf7f8;
  --navy-mid:  #dbecef;
  --teal:      #1f9da3;
  --teal-rgb:  31, 157, 163;
  --teal-dim:  #187f84;
  --aurora:    #66ccd2;
  --aurora-rgb: 102, 204, 210;
  --ice:       #10202d;
  --white:     #0e1c2a;
  --muted:     #4e6574;
  --card-bg:   #ffffff;
  --nav-overlay: rgba(237, 247, 248, 0.92);
  --mobile-overlay: rgba(237, 247, 248, 0.98);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--navy);
  color: var(--ice);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── Nav ────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: var(--nav-overlay);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(var(--teal-rgb), 0.12);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  display: block;
}
.nav-logo span { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links li {
  display: flex;
  align-items: center;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }

.theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: 0.2rem;
  border: 1px solid rgba(var(--teal-rgb), 0.3);
  border-radius: 999px;
  background: rgba(var(--teal-rgb), 0.08);
  color: var(--ice);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.theme-switch:hover {
  background: rgba(var(--teal-rgb), 0.2);
  border-color: rgba(var(--teal-rgb), 0.6);
  transform: translateY(-1px);
}
.theme-switch-icon {
  font-size: 1rem;
  line-height: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--teal);
  color: var(--navy) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--aurora) !important; transform: translateY(-1px); }

/* ── Footer ─────────────────────────────────────── */
footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(var(--teal-rgb), 0.1);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-meta {
  margin-bottom: 0.85rem;
}
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--teal-rgb), 0.3);
  background: rgba(var(--teal-rgb), 0.08);
  color: var(--teal);
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.footer-social-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}
.footer-social-link:hover {
  transform: translateY(-1px);
  color: var(--aurora);
  border-color: rgba(var(--teal-rgb), 0.6);
  background: rgba(var(--teal-rgb), 0.18);
}
footer a { color: var(--teal); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Hamburger button ───────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ice);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu overlay ────────────────────────── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--mobile-overlay);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: var(--ice);
  text-decoration: none;
  font-size: 1.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.nav-mobile-menu a:hover { color: var(--teal); }
.nav-mobile-menu .nav-cta {
  background: var(--teal);
  color: var(--navy) !important;
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.nav-mobile-menu .nav-cta:hover { background: var(--aurora) !important; }
.nav-mobile-menu .theme-switch {
  width: auto;
  height: auto;
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.nav-mobile-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
}
.nav-mobile-close:hover { color: var(--teal); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  nav .theme-switch { display: none; }
}

@media (max-width: 600px) {
  .page-wrap { padding: 8rem 1.25rem 5rem; }
  .playlists-grid { grid-template-columns: 1fr; }
}
