/* Audio Player Styles for Hanson Electric */

/* Hero Image Audio Player - Positioned over the image */
.hero-audio-player {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 90%;
  max-width: 350px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}

.hero-audio-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-audio-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.hero-audio-title {
  font-size: 16px;
  color: var(--dark-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.hero-audio-controls {
  width: 100%;
  height: 40px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  background: var(--primary-color);
}

.hero-audio-controls::-webkit-media-controls-panel {
  background-color: var(--primary-color);
  border-radius: 6px;
}

.hero-audio-controls::-webkit-media-controls-play-button,
.hero-audio-controls::-webkit-media-controls-pause-button {
  background-color: white;
  border-radius: 50%;
  margin: 0 8px;
}

.hero-audio-controls::-webkit-media-controls-timeline {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  margin: 0 8px;
}

.hero-audio-controls::-webkit-media-controls-current-time-display,
.hero-audio-controls::-webkit-media-controls-time-remaining-display {
  color: white;
  font-weight: 500;
  font-size: 12px;
}

/* Legacy styles for standalone audio player (if needed elsewhere) */
.audio-player-section {
  background: #f8fafc;
  padding: 60px 0;
  text-align: center;
}

.audio-player-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.audio-player-title {
  font-size: 24px;
  color: var(--dark-color);
  margin-bottom: 20px;
  font-weight: 600;
}

.audio-player-description {
  color: #64748b;
  margin-bottom: 25px;
  font-size: 16px;
  line-height: 1.5;
}

.custom-audio-player {
  width: 100%;
  max-width: 100%;
  height: 60px;
  border-radius: 8px;
  background: var(--primary-color);
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-audio-player:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(117, 218, 255, 0.3);
}

.custom-audio-player::-webkit-media-controls-panel {
  background-color: var(--primary-color);
  border-radius: 8px;
}

.custom-audio-player::-webkit-media-controls-play-button,
.custom-audio-player::-webkit-media-controls-pause-button {
  background-color: white;
  border-radius: 50%;
  margin: 0 10px;
}

.custom-audio-player::-webkit-media-controls-timeline {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin: 0 10px;
}

.custom-audio-player::-webkit-media-controls-current-time-display,
.custom-audio-player::-webkit-media-controls-time-remaining-display {
  color: white;
  font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero-audio-player {
    width: 95%;
    max-width: 300px;
  }
  
  .hero-audio-container {
    padding: 15px;
  }
  
  .hero-audio-title {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .hero-audio-controls {
    height: 35px;
  }
  
  /* Legacy standalone player mobile styles */
  .audio-player-section {
    padding: 40px 0;
  }
  
  .audio-player-container {
    padding: 20px;
    margin: 0 20px;
  }
  
  .audio-player-title {
    font-size: 20px;
  }
  
  .custom-audio-player {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .hero-audio-container {
    padding: 12px;
  }
  
  .hero-audio-title {
    font-size: 13px;
    margin-bottom: 10px;
  }
  
  .hero-audio-controls {
    height: 32px;
  }
}
