/* ============================================
   HTNradio — Deep Blue / Cyan Theme
   ============================================ */

:root {
  --bg: #08090d;
  --bg-alt: #0c0e14;
  --bg-elevated: #10131a;
  --card: #12151e;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.12);
  --accent-hover: #67e8f9;
  --accent-glow: rgba(34, 211, 238, 0.08);
  --text: #e8eaed;
  --text-secondary: #7d8590;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(34, 211, 238, 0.2);
  --radius: 14px;
  --max-width: 1120px;
}

/* reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1.02rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 13, 0.75);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}

.site-logo {
  position: absolute;
  left: clamp(8px, 2vw, 12px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(38px, 7vw, 48px);
  height: clamp(38px, 7vw, 48px);
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid var(--border);
  transition: border-color 0.3s;
}

.site-logo:hover {
  border-color: var(--border-hover);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  padding-left: clamp(54px, 10vw, 68px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.logo-text {
  font-size: clamp(0.8rem, 0.7rem + 0.3vw, 0.92rem);
}

/* ---- NAV ---- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.88rem;
}

.main-nav a {
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg) !important;
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 0 12px var(--accent-glow);
}

.nav-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform 0.2s, opacity 0.2s;
  border-radius: 1px;
}

/* ---- HERO ---- */
.hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.hero-text h1 {
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 60%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  color: var(--text-secondary);
}

.hero-sub {
  margin-top: 1rem;
  font-style: italic;
  color: var(--accent);
  font-size: 0.92rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-text-below {
  margin-top: clamp(2rem, 3vw, 3rem);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 16px var(--accent-glow);
}

.btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.15);
}

.btn.ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.full-width {
  width: 100%;
}

/* ---- PLAYER CARDS ---- */
.hero-player-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-glow), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.hero-player-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-hover);
}

.hero-player-card:hover::before {
  opacity: 1;
}

.hero-player-card h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  position: relative;
}

.hero-player-card .hero-sub {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: normal;
  position: relative;
}

.player-embed {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  background: var(--bg);
  min-height: 200px;
  display: flex;
  align-items: center;
  position: relative;
}

.cc_player {
  width: 100%;
  padding: 0.75rem;
  display: inline-block;
}

.player-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}

.text-link {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  transition: color 0.2s;
  display: inline-block;
}

.text-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Twitch iframe */
.hero-player-card-twitch .twitch-embed iframe {
  width: 100%;
  height: clamp(180px, 28vw, 300px);
  display: block;
}

/* ---- SECTIONS ---- */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.6rem);
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 600px;
}

/* ---- LAYOUT HELPERS ---- */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

/* ---- HIGHLIGHT & DONATE CARDS ---- */
.highlight-card,
.donate-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.5vw, 1.4rem);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.highlight-card::after,
.donate-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

.highlight-card:hover,
.donate-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.highlight-card ul {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.highlight-card li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.highlight-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-dim);
}

/* ---- DJ CARDS ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 1.25rem);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: var(--accent);
}

.card p {
  margin: 0;
  font-size: 0.88rem;
}

/* ---- SCHEDULE ---- */
.schedule {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card);
}

.schedule-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  border-top: 1px solid var(--border);
  transition: background 0.2s;
}

.schedule-item:first-child {
  border-top: none;
}

.schedule-item:hover {
  background: var(--bg-elevated);
}

.schedule-day {
  padding: 0.9rem 1rem;
  background: var(--accent-dim);
  border-right: 1px solid var(--border);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
}

.schedule-info {
  padding: 0.9rem 1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
}

/* ---- DONATE ---- */
.donate-card h3 {
  margin-top: 0;
}

.note {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ---- FOOTER ---- */
.site-footer {
  padding: clamp(2rem, 3vw, 3rem) 0 clamp(1rem, 2vw, 1.5rem);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-grid h3,
.footer-grid h4 {
  margin-top: 0;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.25rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE — Tablet (768px)
   ============================================ */
@media (max-width: 768px) {
  .hero-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .schedule-item {
    grid-template-columns: 1fr;
  }

  .schedule-day {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hero::before {
    width: 300px;
    height: 200px;
  }

  /* mobile nav */
  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(8, 9, 13, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.nav-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav-toggle.nav-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.nav-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.nav-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* ============================================
   RESPONSIVE — Small phone (480px)
   ============================================ */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn.ghost,
  .btn.primary {
    width: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}
