/* swaysroom — Midnight Amber, refined */

:root {
  --bg:           #0a0a0b;
  --surface:      #111113;
  --surface-2:    #161618;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.12);

  /* Amber — used only as accent */
  --amber:        #d4820a;
  --amber-bright: #e8960d;
  --amber-dim:    rgba(180,100,8,0.9);
  --amber-border: rgba(180,100,8,0.3);
  --amber-glow:   rgba(160,88,6,0.12);

  --text:         #ddd9d1;
  --text-muted:   rgba(210,205,195,0.4);

  --font:         'Syne', system-ui, sans-serif;

  --hero-h:       clamp(480px, 80vw, 620px);
  --pad:          clamp(18px, 5vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; }
a { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }

html, body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

/* ── PAGE ── */
.page {
  position: relative;
  width: 100%;
  min-height: 100dvh;
}

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  height: var(--hero-h);
  overflow: hidden;
  background: #0d0906;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* let the photo breathe — no desaturation */
}

/* Subtle bleed — only the bottom 20% fades, image breathes fully above */
.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,11,0)    0%,
    rgba(10,10,11,0)    78%,
    rgba(10,10,11,0.55) 90%,
    rgba(10,10,11,0.88) 96%,
    var(--bg)           100%
  );
  pointer-events: none;
}

/* ── CONTENT WELL ── */
.well {
  position: relative;
  max-width: 520px;
  margin: -52px auto 0;
  padding: 0 var(--pad) 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ── BRAND ── */
.brand {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 8px 8px;
}

.brand__img {
  width: clamp(200px, 68%, 290px);
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.95;
  /* Fade out the hard rectangular bottom edge of the PNG */
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

/* ── RADIO CARD (Vibe Loader) ── */
button.mix-card {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font);
  text-align: left;
}

.mix-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--amber-border);
  border-radius: 10px;
  box-shadow: 0 1px 24px rgba(0,0,0,0.5);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  will-change: transform;
}

.mix-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-dim), transparent);
  opacity: 0.6;
}

.mix-card:hover,
.mix-card:focus-visible {
  border-color: rgba(180,100,8,0.5);
  box-shadow: 0 2px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(180,100,8,0.08);
  transform: translateY(-1px);
  outline: none;
}

.mix-card:active {
  transform: translateY(0);
}

/* Play/pause button circle */
.radio-play-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(160,88,6,0.14);
  border: 1px solid rgba(180,100,8,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  transition: background 0.2s ease;
}

.mix-card:hover .radio-play-btn {
  background: rgba(160,88,6,0.24);
}

/* Station name + frequency */
.radio-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radio-station {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}

.radio-freq {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--amber);
  line-height: 1;
}

/* ON AIR / OFF AIR badge */
.radio-live {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.radio-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(210,205,195,0.2);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.radio-dot.on-air {
  background: #d4820a;
  box-shadow: 0 0 6px rgba(212,130,10,0.7);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.radio-live-text {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.radio-live-text.on-air {
  color: var(--amber);
}

/* ── SOCIALS ── */
.socials {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  will-change: transform;
}

.social-btn:hover,
.social-btn:focus-visible {
  background: var(--surface-2);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  outline: none;
}

.social-btn:active {
  transform: translateY(0);
}

.social-btn__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  opacity: 0.7;
  transition: opacity 0.18s ease;
}

.social-btn:hover .social-btn__icon {
  opacity: 1;
}

.social-btn__label {
  flex: 1;
  color: rgba(210,205,195,0.75);
}

/* ── DESKTOP: centred mobile column, blurred hero fills side space ── */
@media (min-width: 560px) {
  /* Blurred bg layer — absolutely positioned, fills the viewport */
  body::before {
    content: '';
    position: fixed;
    inset: -40px; /* oversized so blur doesn't show edges */
    background-image: url('assets/hero.jpg');
    background-size: cover;
    background-position: center top;
    filter: blur(30px) saturate(0.5) brightness(0.35);
    transform: scale(1.08); /* prevent blur edge bleed */
    z-index: 0;
    pointer-events: none;
  }

  /* Dark overlay on top of the blurred bg */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(10,10,11,0.55);
    z-index: 0;
    pointer-events: none;
  }

  .page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Sharp centred hero column */
  .hero {
    width: 100%;
    max-width: 520px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 8px 60px rgba(0,0,0,0.8);
  }

  .well {
    width: 100%;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .mix-card, .social-btn {
    transition: none;
  }
}
