/* ========================================
   시 응모작 섹션 - Full-Width Slider
   ======================================== */
.poem-section {
  padding: 2rem 0;
  margin: 3rem 0;
}
.poem-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.poem-slider-wrapper {
  position: relative;
  margin-top: 30px;
}
.poem-slider {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  cursor: grab;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
.poem-slider.active {
  cursor: grabbing;
}
.poem-slide {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}
.poem-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poem-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.85));
  z-index: 1;
}
.poem-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  color: white;
  z-index: 2;
  max-width: 800px;
}
.poem-slide-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}
.poem-text {
  font-size: 1rem;
  color: #fff;
  line-height: 1.8;
  margin-bottom: 20px;
  width: 55%;
  max-width: 600px;
  overflow-y: auto;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  white-space: pre-wrap;
  max-height: 200px;
}
.poem-text::-webkit-scrollbar {
  width: 6px;
}
.poem-text::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.poem-text::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}
.poem-audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  max-width: 400px;
  margin-top: 8px;
}
.poem-audio-player button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.poem-audio-player button:hover {
  transform: scale(1.1);
}
.poem-audio-progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.poem-audio-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}
.poem-audio-bar-fill {
  height: 100%;
  background: #6366F1;
  width: 0%;
  transition: width 0.1s;
}
.poem-audio-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: space-between;
}
.poem-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.poem-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.poem-nav-prev {
  left: 20px;
}
.poem-nav-next {
  right: 20px;
}
.poem-nav svg {
  color: #333;
}
.poem-controls {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
  z-index: 10;
}
.poem-counter {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.poem-counter #poemCurrentSlide {
  color: #6366f1;
  font-size: 16px;
  font-weight: 700;
}
.poem-play-pause {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.poem-play-pause:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.1);
}
.poem-play-pause svg {
  color: #fff;
}
.poem-indicators {
  display: flex;
  gap: 8px;
}
.poem-indicators .indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
}
.poem-indicators .indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}
.poem-indicators .indicator.active {
  width: 24px;
  border-radius: 4px;
  background-color: #6366f1;
}

/* Poem Section - Responsive */
@media (max-width: 768px) {
  .poem-slide {
    min-height: 300px;
  }
  .poem-slide-content {
    padding: 16px;
  }
  .poem-slide-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
  .poem-slide-overlay{
      width: 100%;
  }
  .poem-section h2{
    font-weight: 700;
    font-size: medium;
  }
  .poem-text {
    width: 100%;
    font-size: 0.9rem;
    max-height: 150px;
    padding: 12px;
  }
  .poem-nav {
    width: 40px;
    height: 40px;
  }
  .poem-nav-prev {
    display: none;
  }
  .poem-nav-next {
    display: none;
  }
  .poem-counter {
    font-size: 12px;
    padding: 6px 12px;
  }
  .poem-play-pause {
    width: 36px;
    height: 36px;
  }
  .poem-audio-player {
    max-width: 100%;
  }
}