/* 
- 파일명: theme4.css
- 위치: /assets/css/theme4.css
- 기능: 웨딩박람회 일정 페이지 테마 4 (심플 그린 카드 레이아웃) 스타일시트
- 작성일: 2025-03-15
- 수정일: 2025-08-05
*/

/* 색상 변수 */
:root {
  --primary-green: #8bc34a;
  --dark-green: #689f38;
  --light-green: #c8e6c9;
  --accent-green: #4caf50;
  --text-green: #2e7d32;
  --bg-light: #f1f8e9;
  --bg-white: #ffffff;
  --text-dark: #2e2e2e;
  --text-light: #666666;
  --border-color: #e8f5e8;
  --shadow: rgba(0, 0, 0, 0.08);
}

/* 공통 스타일 */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 헤더 스타일 */
.magazine-header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
  padding: 4rem 0 2rem;
  color: white;
}

.header-content {
  position: relative;
}

.main-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin: 0;
  text-align: center;
}

.subtitle {
  font-size: 1.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin: 0.5rem 0 2rem;
  text-align: center;
}

.header-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.header-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-rounded {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: 0.7rem 1.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-rounded:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: white;
}

.search-container {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 1.5rem;
  margin-top: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.search-container .input-group {
  border-radius: 10px;
  overflow: hidden;
}

.search-container .input-group-text {
  background: white;
  border: none;
  color: var(--primary-green);
}

.search-container .form-control {
  border: none;
  height: 45px;
  background: white;
  color: var(--text-dark);
}

.search-container .btn {
  background: var(--dark-green);
  border: none;
  color: white;
  font-weight: 500;
}

/* Bootstrap 리스트 스타일 복원 */
.section-content ul,
.content-card ul {
  list-style: disc !important;
  padding-left: 2rem !important;
  margin: 1rem 0 !important;
}

.section-content ul li,
.content-card ul li {
  display: list-item !important;
  margin-bottom: 0.5rem !important;
  color: var(--text-light) !important;
  line-height: 1.6 !important;
}

.section-content ol,
.content-card ol {
  list-style: decimal !important;
  padding-left: 2rem !important;
  margin: 1rem 0 !important;
}

.section-content ol li,
.content-card ol li {
  display: list-item !important;
  margin-bottom: 0.5rem !important;
  color: var(--text-light) !important;
  line-height: 1.6 !important;
}

/* 네비게이션 탭 스타일 */
.region-tabs-container {
  background: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.region-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  padding: 0;
  margin: 0;
}

.region-tabs .nav-item {
  margin: 0;
}

.region-tabs .nav-link {
  border: 1px solid var(--border-color);
  color: var(--text-green);
  background: white;
  border-radius: 20px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.region-tabs .nav-link:hover {
  background: var(--light-green);
  border-color: var(--primary-green);
  color: var(--text-green);
}

.region-tabs .nav-link.active {
  background: var(--primary-green);
  color: white;
  border-color: var(--primary-green);
}

.region-tabs .nav-link i {
  margin-right: 0.4rem;
  font-size: 0.9rem;
}

/* 메인 콘텐츠 스타일 */
.magazine-main {
  padding: 2rem 0 4rem;
}

.content-section {
  margin-bottom: 3rem;
}

.content-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 15px var(--shadow);
  border: 1px solid var(--border-color);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-green);
  text-align: center;
}

.section-content {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

/* 지역 섹션 스타일 */
.region-section {
  margin-bottom: 3rem;
}

.region-title-container {
  text-align: center;
  margin-bottom: 2rem;
}

.region-title {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-green);
  background: white;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  margin: 0;
  box-shadow: 0 4px 15px var(--shadow);
  border: 2px solid var(--light-green);
}

/* 매거진 레이아웃 */
.magazine-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.magazine-item {
  position: relative;
}

.featured-item {
  /* 첫 번째 아이템 특별 스타일 제거 - 모든 카드 동일하게 */
}


/* 매거진 레이아웃 - 카드 구조 변경 */
.magazine-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.magazine-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 카드 이미지 컨테이너 수정 */
.card-image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.magazine-card:hover .card-image-container img {
  transform: scale(1.05);
}

/* 이미지 위 배지 스타일 */
.card-image-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
  z-index: 2;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 다양한 배지 색상 */
.card-image-badge.badge-weekend {
  background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

.card-image-badge.badge-special {
  background: linear-gradient(135deg, #ffa502 0%, #ff6348 100%);
  box-shadow: 0 2px 8px rgba(255, 165, 2, 0.4);
}

.card-image-badge.badge-new {
  background: linear-gradient(135deg, #5352ed 0%, #3742fa 100%);
  box-shadow: 0 2px 8px rgba(83, 82, 237, 0.4);
}

.card-image-badge.badge-hot {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.card-image-badge.badge-limited {
  background: linear-gradient(135deg, #a55eea 0%, #8e44ad 100%);
  box-shadow: 0 2px 8px rgba(165, 94, 234, 0.4);
}

/* 배지 호버 효과 */
.magazine-card:hover .card-image-badge {
  transform: scale(1.05);
}



/* info-overlay 제거 - 이제 하단에 별도 영역으로 배치 */
.info-overlay {
  display: none;
}

/* 카드 하단 정보 영역 */
.card-content {
  padding: 1.2rem;
  background: white;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-green);
  line-height: 1.4;
}

.card-info {
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.card-date, .card-location {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.card-date i, .card-location i {
  margin-right: 0.6rem;
  color: var(--primary-green);
  font-size: 1rem;
}

/* 기존 date_label을 위한 배지는 제거하고 새로운 시스템 사용 */
.badge.bg-accent {
  background: var(--accent-green) !important;
  color: white;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  margin-left: 0.5rem;
}

.btn-apply {
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: auto;
  align-self: flex-start;
}

.btn-apply:hover {
  background: var(--dark-green);
  transform: translateY(-1px);
}

.card-description {
  
  color: var(--text-light);
  background: var(--bg-white);
  font-size: 0.9rem;
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

/* 푸터 스타일 */
.magazine-footer {
  background: var(--text-green);
  color: rgba(255, 255, 255, 0.9);
  padding: 3rem 0 2rem;
}

.footer-title {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-content {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

/* 스크롤 탑 버튼 */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 15px var(--shadow);
}

.scroll-to-top:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
}

.scroll-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

/* 반응형 스타일 */
@media (max-width: 991px) {
  .main-title {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1.5rem;
  }
  
  .header-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .magazine-header {
    padding: 3rem 0 1.5rem;
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1.3rem;
  }
  
  .region-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0 1rem;
  }
  
  .region-tabs .nav-link {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .magazine-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .region-title {
    font-size: 1.5rem;
    padding: 0.6rem 1.5rem;
  }
}

@media (max-width: 575px) {
  .main-title {
    font-size: 1.8rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
  
  .search-container {
    padding: 1.2rem;
  }
  
  .content-card {
    padding: 1.5rem;
  }
  
  .region-title {
    font-size: 1.3rem;
    padding: 0.5rem 1.2rem;
  }
}