/*
Theme Name: The Drive
Theme URI: https://1071thedrive.com
Author: 107.1 The Drive
Description: Dynamic classic-rock theme for WCKC 107.1 The Drive, Cadillac, Michigan. Custom front page, listen-live bar, and no talent hard-coded from retired shows.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-drive
Tags: entertainment, custom-logo, custom-menu, featured-images, footer-widgets, one-column
*/

:root {
  --ink: #0b0b0d;
  --ink-2: #141418;
  --panel: #1b1b22;
  --line: rgba(255, 214, 74, 0.18);
  --gold: #f5c518;
  --gold-2: #ffdf6b;
  --ember: #e23b2f;
  --paper: #f6f1e6;
  --muted: #b7b2a6;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Barlow", "Segoe UI", sans-serif;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--gold); color: #111; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; }

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 11, 13, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: 76px;
  max-height: 76px;
  overflow: hidden;
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 76px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; line-height: 0; }
.brand img, .site-header img, .custom-logo {
  height: 58px !important;
  width: auto !important;
  max-height: 58px !important;
  max-width: 340px !important;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: "Oswald", sans-serif; font-size: 1.25rem; text-transform: uppercase; }
.brand-text span { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.nav-toggle { display: none; margin-left: auto; background: transparent; color: #fff; border: 1px solid var(--line); padding: 8px 12px; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.primary-nav a { color: #fff; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.03em; }
.primary-nav a:hover { color: var(--gold); }
.listen-btn, .btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ember); color: #fff; border-radius: 999px;
  padding: 10px 16px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: 0 0 0 0 rgba(226, 59, 47, 0.6);
  animation: pulse 2.2s infinite;
}
.btn.gold { background: var(--gold); color: #16120a; animation: none; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid var(--line); animation: none; box-shadow: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 59, 47, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(226, 59, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 59, 47, 0); }
}

.hero {
  position: relative; overflow: hidden;
  display: block;
  background:
    radial-gradient(900px 420px at 80% 20%, rgba(245, 197, 24, 0.18), transparent 60%),
    radial-gradient(700px 380px at 10% 80%, rgba(226, 59, 47, 0.22), transparent 55%),
    linear-gradient(180deg, #121216 0%, #0b0b0d 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 80px);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; padding: 36px 0 32px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 0.9; text-transform: uppercase; }
.kicker { color: var(--gold); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; font-size: 0.82rem; }
h1, h2, h3, .freq { font-family: "Oswald", sans-serif; font-weight: 600; letter-spacing: 0.02em; margin: 0 0 12px; }
.hero-logo { width: min(760px, 100%); height: auto; margin: 8px 0 16px; border-radius: 8px; }
.footer-logo { height: 64px; width: auto; margin-bottom: 12px; }
.lede { font-size: 1.2rem; max-width: 540px; color: #efe8d8; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.meta-row { display: flex; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 0.95rem; flex-wrap: wrap; }
.meta-row strong { color: #fff; display: block; }

.now-card {
  background: linear-gradient(180deg, #22222b, #15151b);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  align-self: center;
}
.eq { display: flex; align-items: flex-end; gap: 6px; height: 72px; margin: 16px 0; }
.eq span {
  width: 8px; background: linear-gradient(180deg, var(--gold-2), var(--ember));
  border-radius: 8px; animation: bounce 1s ease-in-out infinite;
  height: 30%;
}
.eq span:nth-child(2) { animation-delay: .1s; }
.eq span:nth-child(3) { animation-delay: .2s; }
.eq span:nth-child(4) { animation-delay: .3s; }
.eq span:nth-child(5) { animation-delay: .15s; }
.eq span:nth-child(6) { animation-delay: .25s; }
.eq span:nth-child(7) { animation-delay: .05s; }
@keyframes bounce {
  0%, 100% { height: 22%; }
  50% { height: 100%; }
}
.ticker {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #101014;
}
.ticker-track {
  display: flex; gap: 36px; white-space: nowrap;
  animation: marquee 28s linear infinite;
  padding: 12px 0; font-family: "Oswald", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

section { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card, .post-card, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover, .post-card:hover { transform: translateY(-6px); border-color: rgba(245, 197, 24, 0.55); }
.card h3 { font-size: 1.6rem; }
.num { font-family: "Oswald", sans-serif; color: var(--gold); font-size: 2rem; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.schedule { display: grid; gap: 10px; }
.slot {
  display: grid; grid-template-columns: 140px 1fr; gap: 12px;
  background: #121218; border-radius: 12px; padding: 14px 16px; border: 1px solid transparent;
}
.slot:hover { border-color: var(--line); }
.slot time { color: var(--gold); font-weight: 700; }
.sports {
  background:
    linear-gradient(120deg, rgba(226,59,47,.25), rgba(11,11,13,.2)),
    #17171d;
  border-radius: 24px; padding: 28px; border: 1px solid var(--line);
}
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.post-card h3 { font-size: 1.35rem; }
.post-card h3 a { color: #fff; }

.page-hero { padding: 54px 0 10px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); text-transform: uppercase; }
.content-area { padding-bottom: 72px; }
.entry-content, .page-content { font-size: 1.05rem; }
.entry-content a, .page-content a { text-decoration: underline; }
.entry-content img, .page-content img { border-radius: 12px; margin: 16px 0; }

.site-footer { background: #08080a; border-top: 1px solid var(--line); padding: 48px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h3 { text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.legal { margin-top: 28px; color: var(--muted); font-size: 0.88rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .primary-nav { display: none; width: 100%; }
  .primary-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; padding: 10px 0; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; padding: 8px 0 16px; }
  .hero-grid, .cards, .split, .posts, .footer-grid { grid-template-columns: 1fr; }
  .slot { grid-template-columns: 1fr; }
}
