/*
Theme Name: Afro-Radio.TV
Theme URI: https://base10vibe.com/
Description: Hybrid digital radio and visual media platform for African music. Custom theme with live audio player, TV section, shows, services, artists, events and advertising pages.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: afroradio
*/

:root {
  --bg: #0b0b0d;
  --bg-2: #141418;
  --bg-3: #1d1d23;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f1ea;
  --muted: #a8a49a;
  --gold: #e9a92b;
  --orange: #d4641f;
  --emerald: #12906a;
  --radius: 14px;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: 92px; /* room for the fixed player */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 92%); margin-inline: auto; }
section { padding: clamp(48px, 7vw, 96px) 0; position: relative; }
.eyebrow { font-family: var(--display); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: inline-block; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.pattern {
  background-image:
    linear-gradient(135deg, rgba(233,169,43,.07) 25%, transparent 25%),
    linear-gradient(225deg, rgba(18,144,106,.06) 25%, transparent 25%),
    linear-gradient(45deg, rgba(212,100,31,.05) 25%, transparent 25%);
  background-size: 64px 64px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: transform .2s, background .2s, border-color .2s;
  background: var(--gold); color: #140f05; font-family: var(--body);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-emerald { background: var(--emerald); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, .86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { font-family: var(--display); font-size: 1.1rem; color: var(--text); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-image img { height: 56px; width: auto; border-radius: 10px; }
.logo-image a:hover { text-decoration: none; }
.logo .dot { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--gold), var(--orange) 55%, var(--emerald)); display: grid; place-items: center; }
.logo .dot span { width: 3px; height: 14px; background: #0b0b0d; margin: 0 1px; border-radius: 2px; display: inline-block; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); padding: 8px 10px; border-radius: 8px; font-size: .9rem; }
.nav a:hover, .nav a.is-active { color: var(--text); background: var(--bg-3); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }
.header-cta { white-space: nowrap; padding: 10px 18px; font-size: .88rem; }

/* Live badge + equalizer */
.live-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: .7rem; letter-spacing: .14em; padding: 6px 12px; border-radius: 999px; background: rgba(212,100,31,.15); color: #ffb48a; border: 1px solid rgba(212,100,31,.4); }
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212,100,31,.7); } 70% { box-shadow: 0 0 0 10px rgba(212,100,31,0); } 100% { box-shadow: 0 0 0 0 rgba(212,100,31,0); } }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq span { width: 4px; background: var(--gold); border-radius: 2px; height: 30%; }
.eq.is-playing span { animation: eq 1s ease-in-out infinite; }
.eq.is-playing span:nth-child(2) { animation-delay: .15s; }
.eq.is-playing span:nth-child(3) { animation-delay: .3s; }
.eq.is-playing span:nth-child(4) { animation-delay: .45s; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }

/* Hero */
.hero { min-height: min(88vh, 760px); display: flex; align-items: center; overflow: hidden; background:
  radial-gradient(900px 500px at 85% 10%, rgba(233,169,43,.22), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgba(18,144,106,.22), transparent 60%),
  radial-gradient(600px 400px at 60% 90%, rgba(212,100,31,.18), transparent 60%),
  var(--bg); }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold), var(--orange) 60%, var(--emerald)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-wave { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-top: 40px; opacity: .9; }
.hero-wave span { flex: 1; background: linear-gradient(to top, var(--emerald), var(--gold)); border-radius: 4px; height: 40%; animation: eq 1.6s ease-in-out infinite; }
.hero-wave span:nth-child(odd) { animation-duration: 2.1s; }
.hero-wave span:nth-child(3n) { animation-delay: .3s; }
.hero-wave span:nth-child(4n) { animation-delay: .6s; }

/* Schedule strip */
.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(233,169,43,.5); }
.card .tag { font-size: .75rem; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.card h3 { margin-top: 8px; }
.art { aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, #3a2312, #0f5b44 60%, #d4641f); margin-bottom: 16px; position: relative; overflow: hidden; }
.art.alt { background: linear-gradient(160deg, #2a1a4a, #e9a92b 120%); }
.art.alt2 { background: linear-gradient(200deg, #0f5b44, #0b0b0d 90%); }
.art.alt3 { background: linear-gradient(120deg, #d4641f, #3a0f0f); }
.art::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,.06) 14px 15px); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat { border-left: 3px solid var(--gold); padding: 6px 16px; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--text); }
.stat span { color: var(--muted); font-size: .9rem; }

/* Pillars */
.pillar { border-top: 2px solid var(--emerald); }
.pillar .num { font-family: var(--display); color: var(--orange); font-size: .9rem; }

/* Testimonials + logos */
.quote { font-size: 1.05rem; color: var(--text); }
.quote cite { display: block; margin-top: 12px; font-style: normal; color: var(--muted); font-size: .9rem; }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.logo-wall div { border: 1px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); font-size: .9rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--gold), var(--orange) 60%, var(--emerald)); color: #140f05; border-radius: 22px; padding: clamp(28px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #140f05; margin: 0; max-width: 20ch; }
.cta-band .btn { background: #140f05; color: var(--text); }

/* Page header */
.page-hero { padding: clamp(56px, 9vw, 110px) 0 clamp(32px, 5vw, 56px); background: radial-gradient(800px 400px at 90% 0%, rgba(233,169,43,.15), transparent 60%), var(--bg-2); border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); max-width: 64ch; }

/* Forms */
.form { display: grid; gap: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(233,169,43,.5); border-color: transparent; }
.form textarea { min-height: 130px; resize: vertical; }
.notice { border-radius: 12px; padding: 14px 18px; background: rgba(18,144,106,.15); border: 1px solid rgba(18,144,106,.5); margin-bottom: 20px; }
.notice.error { background: rgba(212,100,31,.12); border-color: rgba(212,100,31,.5); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* Listen / schedule */
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th, .schedule-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.schedule-table th { font-family: var(--display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); margin: 4px 6px 4px 0; font-size: .9rem; color: var(--muted); }
.chip:hover { color: var(--text); border-color: var(--gold); text-decoration: none; }
.video-card .thumb { aspect-ratio: 16 / 9; border-radius: 12px; background: linear-gradient(135deg, #0f5b44, #0b0b0d 60%, #d4641f); position: relative; margin-bottom: 14px; display: grid; place-items: center; }
.play-icon { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.play-icon::after { content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.stream-embed { aspect-ratio: 16 / 9; border-radius: var(--radius); background: #000; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }
.stream-embed iframe, .stream-embed video { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

/* Services */
.service-card h3 { margin-bottom: 8px; }
.process { counter-reset: step; display: grid; gap: 12px; padding: 0; list-style: none; }
.process li { counter-increment: step; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 16px 62px; position: relative; }
.process li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--emerald); color: #fff; display: grid; place-items: center; font-weight: 700; }
.checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.checks li::before { content: "\2713"; color: var(--emerald); font-weight: 700; margin-right: 10px; }
.tier { display: flex; flex-direction: column; }
.tier .price { font-family: var(--display); font-size: 1.05rem; color: var(--gold); margin: 6px 0 12px; }
.tier.is-featured { border-color: var(--gold); }

/* Artists */
.artist-card .art { aspect-ratio: 1 / 1; }
.artist-card .genre { font-size: .85rem; color: var(--muted); }
.search-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.search-bar input, .search-bar select { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; font: inherit; min-width: 220px; }
.profile-head { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; }
.profile-head .art { aspect-ratio: 1 / 1; margin: 0; }

/* Dashboard preview */
.dash { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 30px); }
.dash-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--bg); border-radius: 12px; padding: 16px; border: 1px solid var(--line); }
.kpi strong { display: block; font-family: var(--display); font-size: 1.4rem; }
.kpi span { color: var(--muted); font-size: .8rem; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; }
.bars div { flex: 1; background: linear-gradient(to top, var(--emerald), var(--gold)); border-radius: 6px 6px 0 0; }
.hbar { display: grid; grid-template-columns: 110px 1fr 48px; gap: 12px; align-items: center; margin: 10px 0; font-size: .9rem; }
.hbar i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--orange), var(--gold)); }
.dash-note { color: var(--muted); font-size: .85rem; margin-top: 16px; }
@media (max-width: 800px) { .dash-top { grid-template-columns: repeat(2, 1fr); } .dash-cols { grid-template-columns: 1fr !important; } }

/* Footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.news-form { display: flex; gap: 8px; margin-top: 10px; }
.news-form input { flex: 1; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; font: inherit; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.badges span { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: .85rem; color: var(--muted); }
.copyright { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Persistent player */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(20, 20, 24, .95); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.player-inner { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px; padding: 12px 0; }
.play-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--gold); color: #140f05; cursor: pointer; display: grid; place-items: center; flex: none; }
.play-btn[disabled] { opacity: .45; cursor: not-allowed; }
.play-btn .icon-play::after { content: ""; display: block; border-left: 14px solid #140f05; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.play-btn.is-playing .icon-play::after { display: none; }
.play-btn .icon-pause { display: none; width: 14px; height: 16px; background: linear-gradient(90deg, #140f05 0 35%, transparent 35% 65%, #140f05 65%); }
.play-btn.is-playing .icon-pause { display: block; }
.now { min-width: 0; }
.now .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now .host { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .live-badge { font-size: .62rem; padding: 4px 10px; }
.vol { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; }
.vol input { width: 110px; accent-color: var(--gold); }
.listeners { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.player-hidden-audio { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .eq.is-playing span, .hero-wave span, .live-badge::before { animation: none; }
}

/* Blog */
.post-card h3 a { color: var(--text); }
.entry-content { max-width: 74ch; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }

/* Responsive */
@media (max-width: 1020px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg-2); padding: 14px; border-bottom: 1px solid var(--line); flex-direction: column; }
  .nav.is-open { display: flex; }
  .nav-toggle { display: inline-block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured, .profile-head { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header-cta { display: none; }
  .player-inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .vol, .listeners { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .dash-top { grid-template-columns: repeat(2, 1fr); }
  .hbar { grid-template-columns: 84px 1fr 40px; }
  .copyright { flex-direction: column; }
}
