/* =========================================================
   Blue Space 107.3 — custom styles (plain CSS, works with the
   Tailwind Play CDN as well as a compiled Tailwind build)
   ========================================================= */

:root {
  --space-950: #030817;
  --space-900: #050b1f;
  --space-800: #0a1633;
  --neon: #38bdf8;
  --neon-soft: #7dd3fc;
  --accent: #ef4444;
}

html { scroll-padding-top: 5rem; }

/* ---------- Header ---------- */
#site-header.is-scrolled {
  background: rgba(3, 8, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbd5e1;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--neon), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover,
.nav-link.is-active { color: #fff; }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.mobile-link {
  display: block;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-link:hover { background: rgba(56, 189, 248, 0.1); color: var(--neon); }

/* ---------- Section headings ---------- */
.section-eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--neon), var(--accent));
}

/* ---------- Player ---------- */
.vinyl {
  background:
    radial-gradient(circle, transparent 30%, rgba(255, 255, 255, 0.04) 31%, transparent 32%),
    radial-gradient(circle, transparent 40%, rgba(255, 255, 255, 0.04) 41%, transparent 42%),
    radial-gradient(circle, transparent 50%, rgba(255, 255, 255, 0.04) 51%, transparent 52%),
    radial-gradient(circle, transparent 60%, rgba(255, 255, 255, 0.05) 61%, transparent 62%),
    conic-gradient(from 0deg, #0b1020, #1e293b, #0b1020, #1e293b, #0b1020);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25), 0 20px 50px -10px rgba(56, 189, 248, 0.45);
  animation: spin 6s linear infinite;
  animation-play-state: paused;
}
.is-playing .vinyl { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }

.equalizer span {
  flex: 1;
  max-width: 10px;
  height: 15%;
  border-radius: 2px;
  background: linear-gradient(to top, var(--neon), #a5f3fc);
  transition: height 0.3s ease;
}
.is-playing .equalizer span { animation: eq 1s ease-in-out infinite alternate; }
.equalizer span:nth-child(3n)   { animation-duration: 0.7s; }
.equalizer span:nth-child(3n+1) { animation-duration: 1.1s; }
.equalizer span:nth-child(4n)   { animation-delay: -0.4s; }
.equalizer span:nth-child(5n)   { animation-delay: -0.2s; background: linear-gradient(to top, var(--accent), #fca5a5); }
@keyframes eq {
  0%   { height: 15%; }
  50%  { height: 90%; }
  100% { height: 35%; }
}

#on-air { opacity: 0.55; transition: opacity 0.3s ease; }
.is-playing #on-air { opacity: 1; }

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--neon) 0%, var(--neon) var(--fill, 80%), rgba(255, 255, 255, 0.15) var(--fill, 80%));
  cursor: pointer;
}
.volume-slider:focus-visible { outline: 2px solid var(--neon); outline-offset: 4px; }
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.35);
}
.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.35);
}

/* ---------- About ---------- */
.lang-tab {
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #94a3b8;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-tab[aria-selected="true"] { background: var(--neon); color: var(--space-950); }
.lang-tab:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

.lang-panel { animation: fade-in 0.4s ease; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 1.5rem;
  background: rgba(10, 22, 51, 0.5);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.feature-card:hover { border-color: rgba(56, 189, 248, 0.4); transform: translateY(-3px); }
@media (min-width: 640px) and (max-width: 1023px) {
  .feature-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- Contact ---------- */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
}
.form-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(3, 8, 23, 0.6);
  color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input::placeholder { color: #64748b; }
.form-input:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}
.form-input[aria-invalid="true"] { border-color: var(--accent); }
.form-error { display: none; margin-top: 0.4rem; font-size: 0.8rem; color: #f87171; }
.form-error.is-visible { display: block; }

.contact-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: rgba(56, 189, 248, 0.12);
  color: var(--neon);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.3);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
