/* =============================================
   RunBeat Radio – Stylesheet
   Brand colours:
     Green  #8DC63F
     Pink   #EC008C
     Cyan   #00AEEF
     Dark   #111214
   ============================================= */

:root {
  --green:  #8DC63F;
  --pink:   #EC008C;
  --cyan:   #00AEEF;
  --dark:   #111214;
  --dark2:  #1a1c1f;
  --dark3:  #222428;
  --light:  #f0f0f0;
  --muted:  #888;
  --radius: 10px;
  --font:   'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ── NAV ─────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--pink);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-logo img {
  height: 90px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #444;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--pink); }

.nav-links a.active {
  color: var(--pink);
  border-bottom: 2px solid var(--pink);
  padding-bottom: 2px;
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  border: none;
}

.btn:hover { transform: translateY(-2px); opacity: 0.9; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), #c4006e);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
}

.btn-outline:hover { background: var(--cyan); color: var(--dark); }

/* ── HIGHLIGHT SPANS ─────────────────────── */
.highlight-pink  { color: var(--pink); }
.highlight-cyan  { color: var(--cyan); }
.highlight-green { color: var(--green); }

/* ── FOOTER ──────────────────────────────── */
footer {
  margin-top: auto;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid #2a2c30;
}

footer a { color: var(--cyan); }
footer a:hover { text-decoration: underline; }

/* =============================================
   SPLASH PAGE
   ============================================= */
.splash-page main.splash-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

/* animated gradient background */
.splash-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(141,198,63,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 30%, rgba(236,0,140,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 60% 80%, rgba(0,174,239,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.splash-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.splash-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.1rem;
  color: #bbb;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.launch-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--green), #6aa32e);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 2rem;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(141,198,63,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(141,198,63,0); }
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* EQ bars animation */
.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 50px;
  margin-bottom: 1.5rem;
}

.bar {
  width: 8px;
  border-radius: 3px 3px 0 0;
  animation: eq 1.2s ease-in-out infinite alternate;
}

.bar.green { background: var(--green); }
.bar.pink  { background: var(--pink); }
.bar.cyan  { background: var(--cyan); }

.bar:nth-child(1) { height: 30%; animation-duration: 0.9s; }
.bar:nth-child(2) { height: 60%; animation-duration: 1.1s; }
.bar:nth-child(3) { height: 80%; animation-duration: 0.8s; }
.bar:nth-child(4) { height: 100%; animation-duration: 1.3s; }
.bar:nth-child(5) { height: 70%; animation-duration: 1.0s; }
.bar:nth-child(6) { height: 50%; animation-duration: 0.7s; }
.bar:nth-child(7) { height: 40%; animation-duration: 1.2s; }

@keyframes eq {
  from { transform: scaleY(0.3); }
  to   { transform: scaleY(1); }
}

/* runners graphic (decorative) */
.runners-graphic {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: -10px;
  opacity: 0.15;
  pointer-events: none;
}

.runner {
  width: 80px;
  height: 160px;
  border-radius: 50% 50% 0 0;
  animation: run 0.6s ease-in-out infinite alternate;
}

.r1 { background: var(--green); animation-delay: 0s; }
.r2 { background: var(--pink);  animation-delay: 0.2s; }
.r3 { background: var(--cyan);  animation-delay: 0.4s; }

@keyframes run {
  from { transform: skewX(-5deg) translateY(0); }
  to   { transform: skewX(5deg) translateY(-8px); }
}

/* =============================================
   INNER PAGES (About / Contact)
   ============================================= */
.inner-page main.inner-main {
  flex: 1;
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-inner {
  text-align: center;
  padding: 3rem 1rem 2rem;
  border-bottom: 1px solid #2a2c30;
  margin-bottom: 3rem;
}

.hero-inner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
}

/* ── ABOUT CARDS ─────────────────────────── */
.content-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--dark2);
  border: 1px solid #2a2c30;
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--pink);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--cyan);
}

.card p {
  font-size: 0.95rem;
  color: #bbb;
  line-height: 1.6;
}

.mission-section {
  background: var(--dark2);
  border-left: 4px solid var(--pink);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.mission-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--green);
}

.mission-section p {
  color: #bbb;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 680px;
}

/* ── CONTACT FORM ────────────────────────── */
.contact-section {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark2);
  border: 1px solid #333;
  border-radius: var(--radius);
  color: var(--light);
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-group select option { background: var(--dark2); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,174,239,0.15);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--pink);
}

.field-error {
  font-size: 0.8rem;
  color: var(--pink);
  min-height: 1em;
}

.form-status {
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(141,198,63,0.15);
  border: 1px solid var(--green);
  color: var(--green);
}

.form-status.error {
  display: block;
  background: rgba(236,0,140,0.1);
  border: 1px solid var(--pink);
  color: var(--pink);
}

/* ── AUDIO PLAYER ────────────────────────── */
.player {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--dark2);
  border: 1px solid #2a2c30;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  margin-top: 2rem;
  max-width: 420px;
}

.player-btn {
  background: linear-gradient(135deg, var(--pink), #c4006e);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, opacity 0.15s;
}

.player-btn:hover { transform: scale(1.1); }

.player-icon {
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  margin-left: 2px;
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #bbb;
  display: block;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-bar {
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}

.player-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: 2px;
  transition: width 0.5s linear;
}

.player-vol {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.player-vol input[type="range"] {
  width: 60px;
  accent-color: var(--cyan);
  cursor: pointer;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0.5rem 1rem; }
  .nav-logo img { height: 70px; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.8rem; }

  .splash-page main.splash-main {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .cta-group { justify-content: center; }
  .runners-graphic { display: none; }

  .inner-page main.inner-main { padding: 2rem 1rem; }
}
