/* Wordwave Radio: components, tokens and effects. Matches design.md in the repo root.
   Global page styling (body, headings, header, footer, menu) lives in the Wordwave theme. */
:root {
  --bg: #05142b;
  --bg-2: #0a2a6a;
  --bg-deep: #030d1f;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.10);
  --ink: #f4f7ff;
  --muted: #b4c0e6;
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #38e1ff;
  --blue: #3b8bff;
  --green: #35f2a0;
  --teal: #19d3c5;
  --live: #ff4d5e;
  --radius: 20px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --display: "Arial Black", "Segoe UI Black", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(52px, 8vw, 100px) 0; position: relative; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--green); margin-bottom: .9rem;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38em; }
.grad { background: linear-gradient(90deg, var(--cyan), var(--blue) 55%, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  background: linear-gradient(90deg, var(--cyan), var(--blue)); color: #04112e;
  box-shadow: 0 0 24px rgba(56, 225, 255, .35);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { color: #04112e; transform: translateY(-2px); box-shadow: 0 0 36px rgba(56, 225, 255, .6); filter: brightness(1.08); }
.btn-gold { background: linear-gradient(90deg, #8dffd0, var(--green) 55%, #19d3c5); color: #022a17; box-shadow: 0 0 24px rgba(53, 242, 160, .4); }
.btn-gold:hover { color: #022a17; box-shadow: 0 0 36px rgba(53, 242, 160, .65); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); box-shadow: none; }
.btn-ghost:hover { background: var(--glass-strong); color: #fff; border-color: #fff; box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(48px, 8vw, 100px) 0 clamp(64px, 9vw, 120px);
  background:
    radial-gradient(900px 600px at 82% 25%, rgba(59, 123, 255, .45), transparent 70%),
    radial-gradient(700px 500px at 5% 85%, rgba(30, 220, 160, .25), transparent 70%),
    linear-gradient(180deg, #0a2a6a 0%, #05142b 100%);
}
.hero-art {
  position: absolute; inset: -4%; z-index: -2;
  background: url("../img/hero-swirl.svg") right center / cover no-repeat;
  animation: drift 24s ease-in-out infinite alternate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5, 20, 43, .9) 0%, rgba(5, 20, 43, .62) 42%, rgba(5, 20, 43, 0) 75%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(-1.5%, 1%); } }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--green), #b8ffe0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Cards */
.card {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 100% 0, rgba(56, 225, 255, .13), transparent 45%), var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.onair-card { box-shadow: var(--shadow), 0 0 60px rgba(56, 225, 255, .18); border-color: rgba(56, 225, 255, .35); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 13px; border-radius: 999px; background: rgba(56, 225, 255, .14); color: var(--cyan);
  border: 1px solid rgba(56, 225, 255, .4); font-family: var(--body);
}
.badge.live { background: var(--live); color: var(--bg); border-color: transparent; }
.badge.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.onair-title { font-family: var(--display); font-size: 1.55rem; margin: 14px 0 6px; line-height: 1.15; text-transform: uppercase; }
.onair-meta { color: var(--muted); margin: 0 0 18px; }
.song { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.song[hidden] { display: none; }
.song img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg-2); }
.song strong { display: block; line-height: 1.25; }
.song span { color: var(--muted); font-size: .95rem; }
.song small { display: block; color: var(--cyan); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; }

/* Feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature .icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; color: var(--cyan);
  background: linear-gradient(135deg, rgba(56, 225, 255, .18), rgba(25, 211, 197, .18)); border: 1px solid var(--line);
}
.feature p { color: var(--muted); margin: 0; }

/* Schedule */
.section-sand { background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(25, 211, 197, .08)); border-block: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 34px; }
.schedule { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.day { position: relative; overflow: hidden; background: radial-gradient(circle at 100% 0, rgba(25, 211, 197, .14), transparent 50%), var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.day.today { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 0 30px rgba(53, 242, 160, .3); }
.day h3 { font-size: 1rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: .6em; font-family: var(--body); font-weight: 800; }
.day .today-tag { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.slot { padding: 8px 0; border-top: 1px dashed var(--line); font-size: .98rem; }
.slot:first-of-type { border-top: 0; }
.slot strong { display: block; }
.slot time { color: var(--muted); font-size: .9rem; }
.slot.now strong::after { content: " · On air"; color: var(--live); font-weight: 800; font-size: .8rem; }
.slot-empty { color: var(--muted); font-size: .95rem; margin: 0; }
.note { color: var(--muted); font-size: .95rem; margin-top: 18px; }

/* App section */
.app-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.qr-card { text-align: center; max-width: 330px; margin-inline: auto; width: 100%; box-shadow: var(--shadow), 0 0 60px rgba(25, 211, 197, .25); }
.qr-box { background: #fff; padding: 14px; border-radius: 16px; display: inline-block; line-height: 0; }
.qr-box svg { width: 220px; height: 220px; }
.qr-card p { margin: 16px 0 0; color: var(--muted); font-size: .95rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.inline-form input[type="email"] { flex: 1 1 240px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.fineprint { font-size: .88rem; color: var(--muted); }

/* Forms */
label { display: block; font-weight: 700; margin-bottom: 6px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: rgba(255, 255, 255, .08);
  border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; min-height: 50px;
}
input::placeholder, textarea::placeholder { color: #8e9bc7; }
select option { background: var(--bg-2); color: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(56, 225, 255, .2); }
textarea { min-height: 150px; resize: vertical; }
.field { margin-bottom: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin-top: 12px; font-weight: 600; min-height: 1.4em; }
.status.ok { color: #5ef0a0; }
.status.err { color: #ff8a96; }

/* Player (embedded AzuraCast) */
.player-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.stage-card { padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow), 0 0 80px rgba(59, 123, 255, .3); border-color: rgba(56, 225, 255, .3); }
.embed-frame { width: 100%; height: 300px; border: 0; border-radius: 14px; background: transparent; margin-top: 18px; display: block; }
.embed-missing { margin-top: 18px; padding: 28px 20px; border: 2px dashed var(--line); border-radius: 14px; text-align: center; color: var(--muted); }
.embed-missing[hidden], .embed-frame[hidden] { display: none; }
details { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.info-list strong { display: block; color: #fff; }
.info-list .icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--cyan); background: linear-gradient(135deg, rgba(56, 225, 255, .18), rgba(25, 211, 197, .18)); border: 1px solid var(--line); }

/* Inner page header */
.page-head {
  padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(59, 123, 255, .4), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(30, 220, 160, .18), transparent 70%),
    linear-gradient(180deg, #0a2a6a, #05142b);
}
.page-head h1 { margin-bottom: .3em; font-size: clamp(2rem, 5vw, 3.4rem); }

/* Prose (privacy) */
.prose { max-width: 46rem; color: #d6defa; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: #fff; }
.glance { background: rgba(56, 225, 255, .08); border: 1px solid rgba(56, 225, 255, .35); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.glance h2 { margin-top: 0; font-size: 1.2rem; }
.glance ul { margin-bottom: 0; }

/* Narrow schedule (Listen page side panel) */
.schedule-narrow { grid-template-columns: 1fr; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .app-grid, .player-wrap, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(5, 20, 43, .78), rgba(5, 20, 43, .55)); }
  .hero-art { background-position: 70% center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Light glow that follows the pointer (inspired by neon-sign sites), card spotlights and a faint grain */
.glow-torch {
  position: fixed; left: 0; top: 0; width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%;
  pointer-events: none; z-index: 1; mix-blend-mode: screen; will-change: transform; transform: translate3d(-999px, -999px, 0);
  background: radial-gradient(circle, rgba(56, 225, 255, .22), rgba(53, 242, 160, .11) 38%, rgba(59, 139, 255, .05) 55%, transparent 70%);
}
.card::before, .day::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 225, 255, .18), transparent 60%);
}
.card:hover::before, .day:hover::before { opacity: 1; }
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .04;
  background-image: radial-gradient(rgba(255, 255, 255, .8) .6px, transparent .8px); background-size: 5px 5px;
}
