/*
 * style.css
 *
 * This stylesheet provides the modern, neon-inspired look and feel for the
 * BangSDed Radio landing page. It uses a dark gradient background and
 * vibrant accent colours reminiscent of the provided mock‑up. Typography
 * leverages Google Fonts for both English and Thai support.
 */

/* CSS custom properties for easy colour management */
:root {
  --primary-color: #00aaff;      /* electric blue */
  --secondary-color: #ff1493;    /* neon pink */
  --background-start: #0b0f2c;   /* deep navy start gradient */
  --background-end:   #1e2550;   /* midnight purple end gradient */
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans Thai', sans-serif;
  color: #ffffff;
  background: linear-gradient(135deg, var(--background-start), var(--background-end));
  min-height: 100vh;
}

/* Navigation bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 15, 44, 0.6); /* translucent dark background */
  backdrop-filter: blur(10px);        /* subtle glass effect */
}

.navbar .logo a {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
  text-decoration: none;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  color: #a8c4ff;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar a:hover {
  color: #ffffff;
}

/* Hero section */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  max-width: 900px;
  opacity: 0.7;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 80%;
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  margin: 0;
  color: #93a6ff;
  text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--secondary-color);
}

.hero h2 {
  font-family: 'Noto Sans Thai', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin: 0.5rem 0;
  color: #9be2ff;
  text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--secondary-color);
}

.hero p {
  font-size: 1.1rem;
  margin: 1rem 0 2rem; /* extra bottom margin to separate from the player */
  letter-spacing: 0.05em;
  color: #f8f8f8;
}

/* Audio player container */
.audio-wrapper {
  display: inline-block;
  background: #f5f5f5;         /* light grey player box */
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  position: relative;
  /* margin is handled by player-container positioning */
}

/* Container that positions the audio player within the hero */
.player-container {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.audio-wrapper .on-air {
  position: absolute;
  top: -0.8rem;
  left: -0.8rem;
  background: var(--secondary-color);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 0.5rem;
  text-transform: uppercase;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.08em;
}

.audio-wrapper audio {
  /* Set a reasonable width for the audio element while allowing it to shrink on small screens */
  width: 350px;
  max-width: 100%;
  height: 45px;
}

/* Style audio controls for WebKit browsers (Chrome, Safari) */
.audio-wrapper audio::-webkit-media-controls-panel {
  background-color: #f5f5f5;
}

.audio-wrapper audio::-webkit-media-controls-play-button,
.audio-wrapper audio::-webkit-media-controls-mute-button,
.audio-wrapper audio::-webkit-media-controls-timeline,
.audio-wrapper audio::-webkit-media-controls-volume-slider,
.audio-wrapper audio::-webkit-media-controls-current-time-display,
.audio-wrapper audio::-webkit-media-controls-time-remaining-display {
  filter: invert(0); /* keep icons dark on light background */
}

/* Footer */
footer {
  background: rgba(11, 15, 44, 0.8);
  padding: 1rem 1rem;
  text-align: center;
  color: #cfd6f7;
  font-size: 0.9rem;
}

footer .footer-container p {
  margin: 0.2rem 0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero h2 {
    font-size: 1.6rem;
  }
  .audio-wrapper audio {
    width: 250px;
  }
}