/* =========================================
   ROOT VARIABLES
========================================= */
:root {
  --panel:        #000000;
  --text:         #ffffff;
  --textb:        #000000;
  --muted:        #a3afc2;
  --accent:       #1ec0ff;
  --accent-press: #0fa6dd;
  --play-active:  #ff00c8;
}

/* =========================================
   GLOBAL LAYOUT
========================================= */
html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #FAF7F2;
  color: #000000;
  display: flex;
  flex-direction: column;
  padding-top: 70px;
  padding-bottom: env(safe-area-inset-bottom);
}

/* =========================================
   HEADER
========================================= */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: var(--panel);
  box-shadow: 0 2px 5px rgba(0,0,0,0.6);
  z-index: 1000;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding: 0 16px;
}

.header-right {
  justify-self: end;
}

.header-left img {
  max-height: 50px;
  height: auto;
}

/* Hide mobile login link on desktop */
.nav-login-mobile {
  display: none;
}

/* =========================================
   NAVIGATION
========================================= */
.main-nav {
  flex: 1;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-menu a.active {
  color: var(--play-active);
}

/* Login button (desktop) */
.login-btn {
  background: var(--accent);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  white-space: nowrap;
  text-decoration: none;
}

.login-btn:hover {
  background: var(--accent-press);
}

/* Hamburger button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--play-active);
  cursor: pointer;
}

/* =========================================
   PAGE CONTENT
========================================= */
.content {
  max-width: 900px;
  margin: 3rem auto;
  text-align: center;
  flex: 1;
}

/* =========================================
   SWAG HERO
========================================= */
.swag-hero {
  padding: 4rem 1.5rem 8rem;
  text-align: center;
}

.swag-hero__inner {
  max-width: 900px;
  margin: 0 auto;
}

.swag-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.swag-hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--play-active);
  margin-bottom: 1rem;
}

.swag-hero__subtitle {
  color: var(--textb);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

/* =========================================
   COUNTDOWN
========================================= */
.swag-countdown {
  margin-top: 2.5rem;
}

.swag-countdown__label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.swag-countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  justify-items: center;
}

.swag-countdown__unit {
  background: var(--panel);
  border-radius: 16px;
  padding: 1rem 0.75rem;
  min-width: 150px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.swag-countdown__value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.swag-countdown__unit-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.swag-countdown__message {
  font-size: 0.95rem;
  color: var(--muted);
}

/* =========================================
   CARDS
========================================= */
.card-grid {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  gap: 24px;
}

.card {
  background: #FAF7F2;
  border: 2px solid #0fa6dd;
  border-radius: 12px;
  padding: 20px;
  max-width: 400px;
  height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card img {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* =========================================
   FOOTER / PLAYER
========================================= */
.site-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--panel);
  min-height: 70px;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 5px rgba(0,0,0,0.6);
  z-index: 1000;
}

.player__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 12px;
}

/* Now playing */
.np {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  align-items: center;
}

.np__art {
  height: 70px;
  background: #222;
  overflow: hidden;
}

.np__art img {
  height: 100%;
  object-fit: cover;
}

.np__txt {
  display: flex;
  flex-direction: column;
  padding-top: 24px;
}

.np__label,
.next__label {
  font-size: 0.8rem;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
}

.np__title,
.np__artist {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.np__artist {
  color: var(--muted);
}

/* Controls */
.ctrls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--accent);
  color: var(--text);
  transition: transform .2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5),
              inset 0 -2px 0 rgba(0,0,0,.3);
}

.btn.playing {
  background: var(--play-active);
}

.btn:hover {
  transform: scale(1.1);
  border: 2px solid var(--text);
}

/* Volume */
.volume {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.volume__btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--accent);
}

.vol-range {
  appearance: none;
  width: 140px;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
  display: none;
}

.volume--open .vol-range {
  display: block;
}

/* Next track */
.next {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 10px;
  align-items: center;
}

.next__art {
  height: 70px;
  background: #222;
  overflow: hidden;
}

.next__art img {
  height: 100%;
  object-fit: cover;
}

.next__txt {
  text-align: right;
  padding-top: 24px;
}

.next__title,
.next__artist {
  white-space: nowrap;
  overflow: hidden;
  color: var(--text);
}

.next__artist {
  color: var(--muted);
}

/* =========================================
   MOBILE LAYOUT
========================================= */
@media (max-width: 640px) {

  body {
    padding-top: 80px;
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .site-header {
    height: 80px;
    transition: transform 0.25s ease;
  }
  .site-header.header-hidden {
    transform: translateY(-100%);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  /* Hide desktop nav standaard */
  .header-center {
    display: none;
  }

  /* ✅ Als menu open is → header-center tonen als dropdown aan de rechterkant */
  .site-header.nav-open .header-center {
    display: block;
    position: absolute;
    top: 80px;
    right: 0;
    width: 200px;
    z-index: 1001;
  }



  /* Show nav-toggle */
  .nav-toggle {
    display: block;
  }

  /* Hide desktop login */
  .header-right {
    display: none;
  }

  /* Show mobile login link inside menu */
  .nav-login-mobile {
    display: block;
  }

  /* Mobile menu zelf */
  .main-nav {
    display: none;
    background: #111318;
    width: 100%;
  }

  /* When JS toggles nav-open → menu zichtbaar */
  .site-header.nav-open .main-nav {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  /* Hero spacing */
  .swag-hero {
    padding-top: 3rem;
  }

  /* Countdown tweaks */
  .swag-countdown__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0.5rem;
  }

  /* Player mobile layout */
  .next,
  .volume,
  .volume__btn,
  .vol-range {
    display: none !important;
  }

  .player__inner {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
  }

  .np {
    grid-template-columns: 60px 1fr;
  }

  .np__art {
    height: 55px;
  }

  .np__txt {
    padding-top: 0px;
  }
}
/* =========================================
   ACCESSIBILITY
========================================= */
.focus-ring:focus {
  box-shadow: 0 0 0 3px rgba(30,192,255,.45);
}