/* ============================================
   Homepage Feature Sections
   Radio & Articles with Background Images
   ============================================ */

/* ============================================
   Radio Feature Section
   ============================================ */

.radio-feature-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.radio-feature-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.radio-feature-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(30, 20, 50, 0.2) 0%,
    rgba(60, 40, 80, 0.3) 50%,
    rgba(40, 30, 60, 0.4) 100%
  );
  z-index: 2;
}

.radio-feature-section .container {
  position: relative;
  z-index: 3;
}

.radio-feature-content {
  max-width: 650px;
}

.radio-feature-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.radio-feature-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ============================================
   Custom Audio Player
   ============================================ */

.audio-player {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.audio-player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.audio-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.audio-play-btn {
  background: linear-gradient(135deg, var(--primary-color, #7c3aed), var(--secondary-color, #06b6d4));
  color: white;
  font-size: 1.1rem;
}

.audio-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
}

.audio-play-btn.playing i::before {
  content: "\f04c"; /* Pause icon */
}

.audio-progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.audio-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
}

.audio-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color, #7c3aed), var(--secondary-color, #06b6d4));
  border-radius: 3px;
  transition: width 0.1s linear;
}

.audio-time {
  display: flex;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.audio-volume-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audio-volume-btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1rem;
  width: 40px;
  height: 40px;
}

.audio-volume-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.audio-volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
}

.audio-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.audio-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.audio-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Buttons */
.radio-feature-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   Articles Feature Section
   ============================================ */

.articles-feature-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.articles-feature-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.articles-feature-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(20, 40, 60, 0.9) 0%,
    rgba(30, 60, 80, 0.85) 50%,
    rgba(20, 50, 70, 0.9) 100%
  );
  z-index: 2;
}

.articles-feature-section .container {
  position: relative;
  z-index: 3;
}

.articles-feature-content {
  max-width: 800px;
}

.articles-feature-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.articles-feature-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ============================================
   Article Mini Cards
   ============================================ */

.articles-feature-grid {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.article-mini-card {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 1;
  max-width: 380px;
}

.article-mini-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.article-mini-image {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  overflow: hidden;
}

.article-mini-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-mini-card:hover .article-mini-image img {
  transform: scale(1.1);
}

.article-mini-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-mini-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-mini-excerpt {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-mini-date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Buttons */
.articles-feature-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   Responsive - Tablet
   ============================================ */

@media (max-width: 1024px) {
  .radio-feature-section,
  .articles-feature-section {
    padding: 4rem 0;
    min-height: auto;
  }

  .radio-feature-bg,
  .articles-feature-bg {
    background-attachment: scroll;
  }

  .radio-feature-title,
  .articles-feature-title {
    font-size: 2.2rem;
  }

  .radio-feature-description,
  .articles-feature-description {
    font-size: 1rem;
  }

  .audio-volume-slider {
    width: 60px;
  }
}

/* ============================================
   Responsive - Mobile
   ============================================ */

@media (max-width: 768px) {
  .radio-feature-section,
  .articles-feature-section {
    padding: 3rem 0;
  }

  .radio-feature-title,
  .articles-feature-title {
    font-size: 1.75rem;
  }

  .radio-feature-description,
  .articles-feature-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  /* Audio Player Mobile */
  .audio-player {
    padding: 1rem;
  }

  .audio-player-controls {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .audio-play-btn {
    width: 45px;
    height: 45px;
  }

  .audio-progress-container {
    order: 3;
    width: 100%;
    flex: none;
  }

  .audio-volume-container {
    order: 2;
    margin-left: auto;
  }

  .audio-volume-slider {
    display: none;
  }

  /* Article Cards Mobile - Stack */
  .articles-feature-grid {
    flex-direction: column;
    gap: 1rem;
  }

  .article-mini-card {
    max-width: 100%;
  }

  .article-mini-image {
    width: 100px;
    height: 100px;
  }

  .article-mini-title {
    font-size: 0.95rem;
  }

  .article-mini-excerpt {
    display: none;
  }

  /* Buttons Stack */
  .radio-feature-buttons,
  .articles-feature-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .radio-feature-buttons .btn,
  .articles-feature-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ============================================
   Responsive - Small Mobile
   ============================================ */

@media (max-width: 480px) {
  .radio-feature-section,
  .articles-feature-section {
    padding: 2.5rem 0;
  }

  .radio-feature-title,
  .articles-feature-title {
    font-size: 1.5rem;
  }

  .radio-feature-description,
  .articles-feature-description {
    font-size: 0.9rem;
  }

  .audio-player {
    padding: 0.85rem;
  }

  .audio-play-btn {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .audio-volume-btn {
    width: 36px;
    height: 36px;
  }

  .article-mini-image {
    width: 85px;
    height: 85px;
  }

  .article-mini-body {
    padding: 0.75rem;
  }

  .article-mini-title {
    font-size: 0.9rem;
  }
}