/* 
- 파일명: theme3.css
- 위치: /assets/css/theme3.css
- 기능: 웨딩박람회 일정 페이지 테마 3 (모던 그리드 레이아웃) 스타일시트
- 작성일: 2025-03-15
*/

/* 색상 변수 */
:root {
  --primary-color: #6c5ce7;
  --secondary-color: #a29bfe;
  --accent-color: #fd79a8;
  --light-color: #f9f9f9;
  --dark-color: #333;
  --text-color: #333;
  --border-color: #e0e0e0;
  --success-color: #00b894;
  --danger-color: #d63031;
}

/* 공통 스타일 */
body {
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f5f5f5;
}

/* 헤더 스타일 */
.site-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 3rem 0;
  margin-bottom: 0;
}

.site-header h1 {
  margin-bottom: 0.5rem;
  font-size: 3.0rem;
}

.search-box {
  background: rgba(255, 255, 255, 0.2);
  padding: 1rem;
  border-radius: 8px;
}

.search-box .input-group {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 필터 섹션 스타일 */
.filter-section {
  position: sticky;
  top: 20px;
  z-index: 1000;
  margin-top: -25px;
  margin-bottom: 2rem;
  background-color: transparent;
}

.filter-card {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: none;
  background-color: white;
}

.filter-btn {
  border-radius: 20px;
  font-weight: 500;
  padding: 0.4rem 1rem;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


/* 그리드 레이아웃 */
.fair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* 지역 헤더 */
.region-header {
  position: relative;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

/* 박람회 카드 스타일 */
.fair-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.fair-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.fair-image-container {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.fair-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fair-card:hover .fair-image {
  transform: scale(1.05);
}

.fair-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.fair-title {
 font-size: 1.25rem;
 font-weight: 700;
 margin-bottom: 1rem;
 color: var(--dark-color);
 line-height: 1.4;
}

.fair-info {
 margin-bottom: 1.5rem;
 flex-grow: 1;
}

.fair-date, .fair-location, .fair-description {
 display: flex;
 align-items: flex-start;
 margin-bottom: 0.75rem;
 color: #555;
}

.info-icon {
 margin-right: 0.5rem;
 font-size: 1rem;
 color: var(--primary-color);
 min-width: 1.5rem;
}

.badge.bg-accent {
 background-color: var(--accent-color);
 color: white;
 font-weight: 400;
 padding: 0.25rem 0.5rem;
 border-radius: 4px;
}

.btn-apply {
 width: 100%;
 background-color: var(--primary-color);
 border: none;
 border-radius: 24px;
 padding: 0.6rem 1rem;
 font-weight: 500;
 margin-top: auto;
 transition: all 0.3s ease;
}

.btn-apply:hover {
 background-color: var(--secondary-color);
 transform: translateY(-2px);
 box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 푸터 스타일 */
.site-footer {
 background-color: #fff;
 padding: 4rem 0 2rem;
 color: var(--dark-color);
 border-top: 1px solid var(--border-color);
 margin-top: 3rem;
}

.site-footer h4 {
 color: var(--primary-color);
 font-weight: 700;
 margin-bottom: 1.5rem;
}

.border-dark {
 border-color: rgba(0, 0, 0, 0.1) !important;
}

/* 스크롤 탑 버튼 */
.scroll-to-top {
 position: fixed;
 bottom: 30px;
 right: 30px;
 width: 50px;
 height: 50px;
 background-color: var(--primary-color);
 color: white;
 border-radius: 50%;
 display: flex;
 justify-content: center;
 align-items: center;
 font-size: 1.25rem;
 cursor: pointer;
 opacity: 0;
 transition: all 0.3s ease;
 z-index: 1000;
 box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
 background-color: var(--secondary-color);
 transform: translateY(-3px);
}

.scroll-to-top.show {
 opacity: 1;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
 .site-header {
   padding: 2rem 0;
 }
 
 .site-header h1 {
   font-size: 2rem;
 }
 
 .fair-grid {
   grid-template-columns: 1fr;
 }
 
 .fair-card {
   max-width: 100%;
 }
 
 .scroll-to-top {
   width: 40px;
   height: 40px;
   font-size: 1rem;
   bottom: 20px;
   right: 20px;
 }
 
 .filter-card {
    top: 10px; /* 모바일에서는 상단에 더 가깝게 */
    margin-bottom: 1rem;
  }
  
  .filter-section {
    margin-top: -15px; /* 모바일에서는 간격 줄임 */
  }
}

@media (min-width: 768px) and (max-width: 991px) {
 .fair-grid {
   grid-template-columns: repeat(2, 1fr);
 }
}

@media (min-width: 992px) {
 .fair-title {
   height: 3.5rem;
   overflow: hidden;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
 }
}