/* ============================================
   4-PLAY FM - Modern Layout Styles
   Bootstrap 5 Compatible
   ============================================ */

/* CSS Variables for easy theming */
:root {
  --primary-bg: #1c1c1c;
  --primary-text: #bdbdbd;
  --accent-color: #027de7;
  --navbar-bg: #1c1c1c;
  --navbar-text: #d5d5d5;
  --footer-bg: #1c1c1c;
  --footer-text: #f5f5f5;
  --player-bg: rgba(28, 28, 28, 0.95);
  --player-border: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Base Styles
   ============================================ */

body {
  font: 400 15px/1.8 'Lato', sans-serif;
  color: #777;
  padding-top: 0;
  margin: 0;
  background: #ffffff;
}

h3, h4 {
  margin: 10px 0 15px 0;
  letter-spacing: 10px;
  font-size: 20px;
  color: #1c1c1c;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.section-title {
  margin: 20px 0 30px 0;
  letter-spacing: 10px;
  font-size: 24px;
  color: var(--accent-color);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.container {
  padding: 80px 30px;
}

/* Keep text centered by default */
section p,
section h3,
.section-title {
  text-align: center;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--navbar-bg) !important;
  border: 0;
  font-size: 11px !important;
  letter-spacing: 4px;
  opacity: 0.95;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  color: var(--navbar-text) !important;
  font-weight: 700;
  font-size: 16px !important;
}

.navbar-nav .nav-link {
  color: var(--navbar-text) !important;
  padding: 10px 15px !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #fff !important;
}

.navbar-nav .nav-link.active {
  color: #fff !important;
  background-color: #29292c !important;
}

.navbar-toggler {
  border-color: transparent;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   Hero & Banner Sections
   ============================================ */

.hero-banner {
  margin-top: 70px; /* Push down by navbar height */
  position: relative;
}

.thank-you-banner {
  margin-top: 0;
  position: relative;
}

.hero-banner img,
.thank-you-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Guestbook Section
   ============================================ */

.guestbook-section {
  background-color: transparent;
  min-height: 400px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.guestbook-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, calc(1 - var(--gb-bg-opacity, 0.7)));
  pointer-events: none;
  z-index: 0;
}

.guestbook-section > * {
  position: relative;
  z-index: 1;
}

.guestbook-wrapper {
  position: relative;
  width: 100%;
  margin: 20px auto;
}

.guestbook-iframe {
  border: none;
  width: 99.8%;
  margin: 0 0 0 1%;
  min-height: 730px;
  display: block;
}

/* Guestbook container styling when integrated */
.guestbook-wrapper .guestbook-container {
  background: transparent;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* ============================================
   Stream Player Section
   ============================================ */

.bg-1 {
  background: var(--primary-bg);
  color: var(--primary-text);
}

.bg-1 h3,
.bg-1 .section-title {
  color: var(--accent-color);
}

.bg-1 p {
  font-style: normal;
}

.stream-link {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.stream-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============================================
   Compact Glass Audio Player
   ============================================ */

.audio-player-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.audio-player-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 20px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2),
              0 0 0 1px rgba(2, 125, 231, 0.1) inset;
  transition: all 0.3s ease;
}

.audio-player-container:hover {
  box-shadow: 0 6px 30px rgba(2, 125, 231, 0.3),
              0 0 0 1px rgba(2, 125, 231, 0.2) inset;
}

.player-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--primary-text);
  opacity: 0.8;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
}

.status-indicator.ready {
  background-color: #6c757d;
}

.status-indicator.connecting {
  background-color: #ffc107;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}

.status-indicator.playing {
  background-color: #28a745;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.6);
}

.status-indicator.paused {
  background-color: #ffc107;
}

.status-indicator.error {
  background-color: #dc3545;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-text {
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 11px;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.btn-play-pause {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--accent-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
              0 0 0 1px rgba(2, 125, 231, 0.2) inset;
  flex-shrink: 0;
}

.btn-play-pause:hover {
  background: rgba(2, 125, 231, 0.2);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 125, 231, 0.4),
              0 0 0 1px rgba(2, 125, 231, 0.3) inset;
}

.btn-play-pause.playing {
  background: linear-gradient(135deg, rgba(2, 125, 231, 0.3), rgba(0, 212, 255, 0.3));
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(2, 125, 231, 0.5),
              0 0 0 1px rgba(2, 125, 231, 0.4) inset;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(2, 125, 231, 0.5),
                0 0 0 1px rgba(2, 125, 231, 0.4) inset;
  }
  50% {
    box-shadow: 0 0 30px rgba(2, 125, 231, 0.7),
                0 0 0 1px rgba(2, 125, 231, 0.6) inset;
  }
}

.btn-play-pause svg {
  width: 22px;
  height: 22px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px 10px;
  flex: 1;
  min-width: 0;
}

.btn-mute {
  background: transparent;
  border: none;
  color: var(--primary-text);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.btn-mute:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
}

.btn-mute svg {
  width: 18px;
  height: 18px;
}

.volume-slider {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(2, 125, 231, 0.6);
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(2, 125, 231, 0.8);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(2, 125, 231, 0.6);
}

.player-error {
  text-align: center;
  padding: 12px;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 8px;
  color: #f87171;
  font-size: 12px;
  margin-top: 12px;
}

.player-error p {
  margin: 0 0 8px 0;
  color: #f87171;
}

.btn-retry {
  margin-top: 8px;
  padding: 6px 12px;
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 6px;
  color: #f87171;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-retry:hover {
  background: #c82333;
  transform: translateY(-2px);
}

/* Hide default audio controls */
#player {
  display: none;
}

/* ============================================
   About Section
   ============================================ */

#about {
  position: relative;
  background: #ffffff !important;
  width: 100% !important;
  padding: 50px 0 !important; /* Reduced from 80px to 50px - move text higher */
  margin: 0 !important;
}

#about p {
  line-height: 1.9;
  font-size: 20px;
  font-weight: 400; /* Reduced from 600 to 400 - less fat */
  font-family: 'Lato', sans-serif;
  color: #777;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  text-align: center;
}

#about a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

#about a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */

footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 32px;
}

footer a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #777;
}

.up-arrow {
  display: inline-block;
  color: var(--footer-text);
  transition: transform 0.3s ease, color 0.3s ease;
  margin-bottom: 15px;
}

.up-arrow:hover {
  transform: translateY(-5px);
  color: var(--accent-color);
}

.up-arrow svg {
  width: 32px;
  height: 32px;
}

.copyright {
  font-size: 14px;
  letter-spacing: 1px;
}

.copyright a {
  color: var(--accent-color);
  margin-left: 5px;
}

.copyright a:hover {
  color: #fff;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  body {
    padding-top: 56px;
    font-size: 15px;
  }

  h3, .section-title {
    font-size: 20px;
    letter-spacing: 5px;
  }

  .container {
    padding: 40px 15px;
  }

  .audio-player-container {
    padding: 12px 16px;
    max-width: 100%;
  }

  .player-controls {
    gap: 10px;
  }

  .volume-control {
    padding: 4px 8px;
  }

  .volume-slider {
    width: 100%;
  }

  .guestbook-iframe {
    width: 100%;
    margin: 0;
    min-height: 600px;
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-link {
    padding: 12px 15px !important;
  }
  
  /* Hero banner - show full image on mobile */
  .hero-banner img,
  .thank-you-banner img {
    max-height: none !important;
    height: auto !important;
    width: 100% !important;
    object-fit: contain !important;
  }
  
  /* Guestbook section */
  .guestbook-section {
    padding: 20px 10px !important;
  }
  
  .guestbook-container {
    padding: 15px 10px !important;
  }
  
  /* Form inputs */
  .gb-form-group input,
  .gb-form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Emoji button */
  #emojiBtn {
    padding: 8px 10px !important;
    font-size: 1.4em !important;
    min-width: 40px;
    min-height: 40px;
  }
  
  /* About section */
  #about {
    padding: 30px 0; /* Reduced from 40px - move text higher */
  }
  
  #about .container {
    padding: 25px 15px; /* Reduced top padding from 40px to 25px */
  }
  
  #about p {
    font-size: 18px;
    font-weight: 400; /* Keep same lighter weight */
    padding: 0 15px;
    max-width: 100%;
  }
  
  /* Stream section */
  #listen {
    padding: 30px 15px !important;
  }
  
  #listen p {
    font-size: 15px;
    padding: 0 15px;
  }
  
  /* Footer */
  footer {
    padding: 32px 15px;
  }
  
  .copyright {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 30px 10px;
  }

  .section-title {
    font-size: 18px;
    letter-spacing: 3px;
  }
  
  h3 {
    font-size: 18px;
    letter-spacing: 3px;
  }
  
  /* About section */
  #about {
    padding: 20px 0; /* Reduced from 30px - move text higher */
  }
  
  #about .container {
    padding: 20px 10px; /* Reduced top padding from 30px to 20px */
  }
  
  #about p {
    font-size: 17px;
    font-weight: 400; /* Keep same lighter weight */
    padding: 0 10px;
    max-width: 100%;
  }

  .btn-play-pause {
    width: 44px;
    height: 44px;
  }

  .btn-play-pause svg {
    width: 20px;
    height: 20px;
  }

  .volume-slider {
    width: 100%;
  }
  
  /* Stream section */
  #listen p {
    font-size: 14px;
    padding: 0 10px;
  }
  
  footer {
    padding: 32px 10px;
  }
  
  /* Guestbook form */
  .gb-form-container {
    padding: 12px !important;
  }
  
  .gb-form-group {
    margin-bottom: 12px;
  }
  
  /* Emoji picker */
  .emoji-picker-container {
    max-height: 150px !important;
    padding: 0.5rem !important;
  }
  
  .emoji-picker-grid {
    gap: 0.3rem !important;
    font-size: 1.1em !important;
  }
  
  .emoji-item {
    padding: 8px !important;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Audio player */
  .audio-player-container {
    padding: 10px 12px !important;
  }
  
  .player-controls {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .btn-play-pause {
    width: 40px !important;
    height: 40px !important;
  }
  
  /* Text sizes */
  body {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  /* Very small screens */
  .section-title {
    font-size: 16px !important; /* Increased from 12px */
    letter-spacing: 2px !important;
  }
  
  h3 {
    font-size: 16px !important;
    letter-spacing: 2px !important;
  }
  
  .navbar-brand {
    font-size: 16px !important;
  }
  
  .nav-link {
    font-size: 13px !important;
  }
}

/* ============================================
   Utility Classes
   ============================================ */

.img-responsive {
  max-width: 100%;
  height: auto;
}

/* Smooth transitions for all interactive elements */
a, button, input {
  transition: all 0.3s ease;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Keep navbar left-aligned */
.navbar,
.navbar * {
  text-align: left;
}

/* ============================================
   SOPHISTICATED ENHANCEMENTS
   ============================================ */

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), #00d4ff);
  z-index: 9999;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px var(--accent-color);
}

/* Glassmorphism Effect Variables */
:root {
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Enhanced Navigation with Underline Animation */
.navbar-nav .nav-link {
  position: relative;
  overflow: hidden;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), #00d4ff);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

/* Banner Sections */
.hero-banner,
.thank-you-banner {
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.hero-banner img,
.thank-you-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Gradient Overlay on Banners */
.hero-banner::before,
.thank-you-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 28, 28, 0.3) 0%,
    rgba(28, 28, 28, 0.1) 50%,
    rgba(28, 28, 28, 0.3) 100%
  );
  z-index: 1;
  pointer-events: none;
}


/* Fade-in Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Enhanced Section Titles */
.section-title {
  position: relative;
  display: inline-block;
  margin: 20px 0 30px 0;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  animation: title-underline 2s ease-in-out infinite;
}

@keyframes title-underline {
  0%, 100% {
    width: 60px;
    opacity: 0.7;
  }
  50% {
    width: 100px;
    opacity: 1;
  }
}

/* Smooth Navbar Background on Scroll */
.navbar.scrolled {
  background-color: rgba(28, 28, 28, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* About Section Container - Simplified */
#about .container {
  max-width: 1500px;
  margin: 0 auto;
  padding-top: 40px; /* Reduced top padding to move text higher */
}

#about .row {
  margin: 0;
  justify-content: center;
}

#about .col-lg-10 {
  margin: 0 auto;
    text-align: center;
}

/* Subtle Particle Background Effect */
.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* Enhanced Footer with Gradient */
footer {
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

/* Enhanced Stream Link with Glow Effect */
.stream-link {
  position: relative;
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.stream-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-color);
  opacity: 0;
  border-radius: 4px;
  filter: blur(10px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.stream-link:hover::before {
  opacity: 0.3;
}

.stream-link:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--accent-color);
}

/* Smooth Image Loading */
img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.loaded {
  opacity: 1;
}

/* Enhanced Button Hover Effects */
.btn-play-pause:hover {
  box-shadow: 0 0 20px rgba(2, 125, 231, 0.6),
              0 0 40px rgba(2, 125, 231, 0.4);
}

/* Smooth Section Transitions */
section {
  position: relative;
  overflow: hidden;
}

/* Responsive Adjustments for Animations */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .scale-in {
    transition: none;
    transform: none;
    opacity: 1;
  }
  
  .section-title::after {
    animation: none;
  }
  
  .particle {
    animation: none;
  }
}

/* Loading Skeleton */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================
   Force Text Centering
   ============================================ */

/* Content is centered by default via section p, section h3, .section-title rules above */

/* Ensure section titles are always centered */
.section-title {
  display: block !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
}

/* ============================================
   Enhanced Mobile Menu
   ============================================ */

/* Smooth mobile menu animation */
.navbar-collapse {
  transition: all 0.3s ease-in-out;
}

.navbar-collapse.show {
  background-color: rgba(28, 28, 28, 0.98);
  backdrop-filter: blur(10px);
  margin-top: 10px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Mobile nav links */
@media (max-width: 991px) {
  .navbar-nav .nav-link {
    padding: 15px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 30px;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* ============================================
   Background Music Indicator
   ============================================ */

/* Floating music indicator when playing */
.music-indicator {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent-color);
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(2, 125, 231, 0.4);
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.5s ease;
  backdrop-filter: blur(10px);
}

.music-indicator.active {
  display: flex;
}

.music-indicator .music-icon {
  width: 20px;
  height: 20px;
  animation: pulse 2s infinite;
}

.music-indicator .music-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.music-indicator .close-indicator {
  background: transparent;
  border: none;
    color: #fff;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.music-indicator .close-indicator:hover {
  opacity: 1;
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Hide on mobile or adjust position */
@media (max-width: 768px) {
  .music-indicator {
    bottom: 20px;
    right: 20px;
    padding: 10px 16px;
    font-size: 12px;
  }
}

/* ============================================
   Enhanced Visual Polish
   ============================================ */

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1c1c1c;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}

/* Enhanced section spacing */
section {
  position: relative;
  overflow: hidden;
}

section + section {
  margin-top: 0;
}

/* Better button hover effects */
button:hover {
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

button:active {
  transform: translateY(0);
}

/* Enhanced link hover effects */
a:not(.nav-link):not(.navbar-brand):not(.stream-link):hover {
  text-decoration: underline;
  transition: all 0.3s ease;
}

/* Better image hover effects */
img:hover {
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
  transition: all 0.3s ease;
}
