/* Naver Carousel — dedicated stylesheet
 * 네이버 검색 캐러셀 노출 후보 영역.
 * 구조화 데이터(JSON-LD ItemList)와 1:1로 매칭되는 #naver-carousel UI 전용.
 */

.carousel-section {
  padding: 140px 0;
  background-color: #fafafa;
}

.carousel-section .section-header {
  margin-bottom: 80px;
}

.carousel-section .section-title {
  font-size: 1rem;
  letter-spacing: 5px;
  color: var(--color-accent);
  margin-bottom: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.carousel-section .section-subtitle {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -1px;
}

#naver-carousel .carousel-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#naver-carousel .carousel-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#naver-carousel .carousel-item:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

#naver-carousel .carousel-link {
  display: block;
  text-decoration: none;
}

#naver-carousel .thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

#naver-carousel .thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

#naver-carousel .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

#naver-carousel .carousel-item:hover .thumb-wrapper img {
  transform: scale(1.1);
}

#naver-carousel .carousel-item:hover .overlay {
  opacity: 1;
}

#naver-carousel .info-box {
  padding: 30px 24px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

#naver-carousel .index {
  display: block;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 800;
  margin-bottom: 8px;
}

#naver-carousel .name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 15px;
  line-height: 1.4;
}

#naver-carousel .more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #888;
  transition: color 0.3s ease;
}

#naver-carousel .carousel-item:hover .more {
  color: var(--color-primary);
}

@media (max-width: 1400px) {
  #naver-carousel .carousel-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  #naver-carousel .carousel-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .carousel-section .section-subtitle {
    font-size: 1.8rem;
  }
}

@media (max-width: 500px) {
  #naver-carousel .carousel-list {
    grid-template-columns: 1fr;
  }
  .carousel-section {
    padding: 80px 0;
  }
}
