/*
 * 파일명: category-styles.css
 * 위치: /var/www/html/travel/assets/css/category-styles.css
 * 기능: 카테고리 섹션 스타일 개선
 * 작성일: 2025-05-20
 */

/* ===================================
 * 카테고리 섹션 스타일
 * ===================================
 */

/* 카테고리 섹션 배경 */
.categories {
  padding: 0;
  border-radius: 0;
  margin: 0;
}

/* 스와이퍼 컨테이너 */
.swiper-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding-bottom: 2rem;
}

/* 섹션 제목 스타일 */
.categories .section-title {
  text-align: left;
  margin-bottom: 0.5rem !important;
  padding-bottom: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.categories .section-title::after {
  display: none;
}

/* 카테고리 카드 */
.category-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 12px !important;
  height: 320px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12) !important;
}

.category-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

/* 카드 오버레이 및 콘텐츠 */
.category-card .card-img-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.1) 100%);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-content {
  padding: 1.25rem;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.category-card:hover .category-content {
  transform: translateY(-10px);
}

.category-card .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.5rem;
}

.category-description {
  font-size: 0.95rem;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  margin-bottom: 1rem;
}

/* 버튼 스타일 */
.category-card .btn {
  opacity: 0.95;
  transition: all 0.3s;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 30px;
}

.category-card:hover .btn {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* 내비게이션 버튼 */
.category-slider-container {
  padding: 0.5rem 0;
  position: relative;
}

.category-nav-btn {
  width: 40px !important;
  height: 40px !important;
  background-color: white !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  color: #333 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  outline: none !important;
  opacity: 0.9;
  margin-top: -20px;
}

.category-nav-btn:hover {
  background-color: #14b8a6 !important;
  color: white !important;
  opacity: 1;
}

.category-nav-btn#categoryPrev {
  left: -5px;
}

.category-nav-btn#categoryNext {
  right: -5px;
}

.category-nav-btn::after {
  display: none !important;
}

.category-nav-btn i {
  font-size: 1.2rem;
}

/* Swiper 페이지네이션 */
.categories .swiper-pagination {
  position: relative;
  bottom: 0;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

.categories .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  margin: 0 5px;
  transition: all 0.3s;
  opacity: 0.7;
}

.categories .swiper-pagination-bullet-active {
  background-color: #14b8a6;
  width: 20px;
  border-radius: 5px;
  opacity: 1;
}

/* 슬라이드 간격 */
.swiper-slide {
  padding: 0.5rem;
}

/* 반응형 스타일 */
@media (max-width: 767.98px) {
  .categories {
    padding: 1.5rem 0;
  }
  
  .categories .section-title {
    font-size: 1.4rem;
    margin-bottom: 0.25rem !important;
  }
  
  .categories p.text-muted {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .category-card {
    height: 220px;
    margin-bottom: 0.5rem;
  }
  
  .category-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
  }
  
  .category-description {
    font-size: 0.85rem;
    display: none;
  }
  
  .category-content {
    padding: 1rem;
  }
  
  .category-card .btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .category-nav-btn {
    width: 30px !important;
    height: 30px !important;
  }
  
  .category-nav-btn i {
    font-size: 1rem;
  }
  
  .swiper-slide {
    padding: 0.25rem;
  }
  
  .categories .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 3px;
  }
  
  .categories .swiper-pagination-bullet-active {
    width: 16px;
  }
}

/* 태블릿 화면 */
@media (min-width: 768px) and (max-width: 991.98px) {
  .category-card {
    height: 280px;
  }
  
  .category-card .card-title {
    font-size: 1.35rem;
  }
  
  .category-description {
    font-size: 0.9rem;
  }
}

/* 대형 스크린 */
@media (min-width: 1200px) {
  .category-card {
    height: 350px;
  }
  
  .category-card .card-title {
    font-size: 1.65rem;
  }
  
  .category-description {
    font-size: 1rem;
  }
}