* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 배경 그라디언트 */
.bg-gradient {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 50%, #fce7f3 100%);
  min-height: 100vh;
}

/* 상단 색상 띠 */
.rainbow-bar {
  height: 12px;
  background: linear-gradient(to right, #ef4444, #eab308, #22c55e, #3b82f6, #a855f7);
}

.rainbow-bar-thin {
  height: 8px;
  background: linear-gradient(to right, #ef4444, #eab308, #22c55e, #3b82f6, #a855f7);
}

/* 헤더 */
.header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 4px solid #fb923c;
}

.header-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-content {
  padding: 4rem 0;
}

.header-small {
  padding: 1.25rem 0;
}

/* 타이틀 */
.main-title {
  font-size: 3.75rem;
  font-weight: 900;
  background: linear-gradient(to right, #f97316, #ec4899, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 1rem;
}

.title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #374151;
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-title {
  font-size: 1.875rem;
  font-weight: 900;
  background: linear-gradient(to right, #f97316, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* 검색 바 */
.search-form {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

.search-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1.25rem 3.5rem 1.25rem 3rem;
  font-size: 1.125rem;
  border: 2px solid #fdba74;
  border-radius: 1rem;
  background: white;
  color: #111827;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.2);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #f97316;
  width: 1.5rem;
  height: 1.5rem;
}

.search-button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.75rem 2rem;
  background: linear-gradient(to right, #f97316, #ec4899);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.search-button:hover {
  background: linear-gradient(to right, #ea580c, #db2777);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(to right, #f97316, #ec4899);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(to right, #ea580c, #db2777);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: linear-gradient(to right, #a855f7, #6366f1);
  color: white;
}

.btn-secondary:hover {
  background: linear-gradient(to right, #9333ea, #4f46e5);
}

.btn-success {
  background: linear-gradient(to right, #10b981, #14b8a6);
  color: white;
}

.btn-white {
  background: white;
  border: 2px solid #fdba74;
  color: #374151;
}

.btn-white:hover {
  background: #fff7ed;
  border-color: #f97316;
}

.quick-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* 배너 */
.banner {
  position: relative;
  height: 20rem;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  margin-bottom: 2rem;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(124, 45, 18, 0.6), transparent);
  display: flex;
  align-items: center;
  padding: 0 3rem;
}

.banner-title {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
}

.banner-subtitle {
  font-size: 1.5rem;
  color: white;
  font-weight: 600;
}

/* 섹션 헤더 */
.section-header {
  margin-bottom: 2rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2.25rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 0.75rem;
}

.title-bar {
  width: 0.5rem;
  height: 2.5rem;
  background: linear-gradient(to bottom, #f97316, #ec4899);
  border-radius: 9999px;
}

.section-description {
  font-size: 1.125rem;
  color: #374151;
  font-weight: 500;
  margin-left: 1.25rem;
}

/* 카드 그리드 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* 축제 카드 */
.festival-card {
  position: relative;
  border-radius: 1rem;
  border: 2px solid;
  overflow: hidden;
  height: 100%;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.festival-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.card-sparkles {
  position: absolute;
  top: 1rem;
  right: 1rem;
  opacity: 0.2;
  transition: opacity 0.3s;
  width: 2rem;
  height: 2rem;
  color: #4b5563;
}

.festival-card:hover .card-sparkles {
  opacity: 0.4;
}

.card-content {
  position: relative;
  padding: 1.5rem;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.info-icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.info-text {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.card-description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: gap 0.3s;
}

.festival-card:hover .card-link {
  gap: 0.75rem;
}

.card-bottom-bar {
  height: 0.5rem;
}

/* 색상 테마 */
.theme-orange {
  background: linear-gradient(to bottom right, #fff7ed, #fef3c7);
  border-color: #fed7aa;
}
.theme-orange:hover { border-color: #fb923c; }
.theme-orange .card-badge { background: #f97316; }
.theme-orange .info-icon { color: #ea580c; }
.theme-orange .card-link { color: #ea580c; }
.theme-orange:hover .card-title { color: #ea580c; }
.theme-orange .card-bottom-bar { background: #f97316; }

.theme-pink {
  background: linear-gradient(to bottom right, #fdf2f8, #fce7f3);
  border-color: #fbcfe8;
}
.theme-pink:hover { border-color: #f9a8d4; }
.theme-pink .card-badge { background: #ec4899; }
.theme-pink .info-icon { color: #db2777; }
.theme-pink .card-link { color: #db2777; }
.theme-pink:hover .card-title { color: #db2777; }
.theme-pink .card-bottom-bar { background: #ec4899; }

.theme-purple {
  background: linear-gradient(to bottom right, #faf5ff, #f3e8ff);
  border-color: #e9d5ff;
}
.theme-purple:hover { border-color: #d8b4fe; }
.theme-purple .card-badge { background: #a855f7; }
.theme-purple .info-icon { color: #9333ea; }
.theme-purple .card-link { color: #9333ea; }
.theme-purple:hover .card-title { color: #9333ea; }
.theme-purple .card-bottom-bar { background: #a855f7; }

.theme-emerald {
  background: linear-gradient(to bottom right, #ecfdf5, #f0fdfa);
  border-color: #a7f3d0;
}
.theme-emerald:hover { border-color: #6ee7b7; }
.theme-emerald .card-badge { background: #10b981; }
.theme-emerald .info-icon { color: #059669; }
.theme-emerald .card-link { color: #059669; }
.theme-emerald:hover .card-title { color: #059669; }
.theme-emerald .card-bottom-bar { background: #10b981; }

.theme-blue {
  background: linear-gradient(to bottom right, #eff6ff, #e0f2fe);
  border-color: #bfdbfe;
}
.theme-blue:hover { border-color: #93c5fd; }
.theme-blue .card-badge { background: #3b82f6; }
.theme-blue .info-icon { color: #2563eb; }
.theme-blue .card-link { color: #2563eb; }
.theme-blue:hover .card-title { color: #2563eb; }
.theme-blue .card-bottom-bar { background: #3b82f6; }

.theme-yellow {
  background: linear-gradient(to bottom right, #fefce8, #fff7ed);
  border-color: #fef08a;
}
.theme-yellow:hover { border-color: #fde047; }
.theme-yellow .card-badge { background: #eab308; }
.theme-yellow .info-icon { color: #a16207; }
.theme-yellow .card-link { color: #a16207; }
.theme-yellow:hover .card-title { color: #a16207; }
.theme-yellow .card-bottom-bar { background: #eab308; }

/* 필터 */
.filter-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(to right, #a855f7, #6366f1);
  color: white;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.filter-buttons {
  flex: 1;
  overflow-x: auto;
  display: flex;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}

.filter-buttons::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  border: 2px solid #fed7aa;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
  border-color: #fb923c;
}

.filter-btn.active {
  background: linear-gradient(to right, #f97316, #ec4899);
  color: white;
  border-color: transparent;
  transform: scale(1.05);
}

.filter-select {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid #fed7aa;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  min-width: 150px;
}

.filter-select:hover {
  border-color: #fb923c;
}

.filter-select:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* 검색 결과 */
.result-header {
  margin-bottom: 2rem;
}

.result-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 0.25rem;
}

.result-count {
  font-size: 1.125rem;
  color: #374151;
  font-weight: 500;
}

.result-count-number {
  color: #ea580c;
  font-weight: 900;
  font-size: 1.25rem;
}

.no-results {
  text-align: center;
  padding: 5rem 0;
  background: white;
  border-radius: 1.5rem;
  border: 2px solid #fed7aa;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.no-results-icon {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(to bottom right, #fff7ed, #fce7f3);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-results-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.5rem;
}

.no-results-text {
  color: #6b7280;
}

/* 상세 페이지 */
.detail-hero {
  background: linear-gradient(to right, #ffedd5, #fce7f3, #f3e8ff);
  border-bottom: 4px solid #fb923c;
  padding: 4rem 0;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(to right, #f97316, #ec4899);
  color: white;
  font-weight: 700;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.detail-title {
  font-size: 3.75rem;
  font-weight: 900;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
  border: 2px solid;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.meta-item.orange {
  border-color: #fdba74;
}

.meta-item.pink {
  border-color: #f9a8d4;
}

.meta-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.meta-text {
  color: #1f2937;
  font-weight: 700;
}

/* 상세 콘텐츠 */
.detail-content {
  padding: 3rem 0;
}

.detail-section {
  background: white;
  border-radius: 1.5rem;
  border: 2px solid;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.detail-section:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.detail-section.orange {
  background: linear-gradient(to bottom right, #fff7ed, #fef3c7);
  border-color: #fed7aa;
}

.detail-section.pink {
  background: linear-gradient(to bottom right, #fdf2f8, #fce7f3);
  border-color: #fbcfe8;
}

.detail-section.purple {
  background: linear-gradient(to bottom right, #faf5ff, #f3e8ff);
  border-color: #e9d5ff;
}

.detail-section.emerald {
  background: linear-gradient(to bottom right, #ecfdf5, #f0fdfa);
  border-color: #a7f3d0;
}

.detail-section.white {
  background: white;
  border-color: #fed7aa;
}

.section-header-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-icon-wrapper {
  padding: 0.75rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.section-icon-wrapper.orange {
  background: linear-gradient(to right, #f97316, #fbbf24);
}

.section-icon-wrapper.pink {
  background: linear-gradient(to right, #ec4899, #f43f5e);
}

.section-icon-wrapper.purple {
  background: linear-gradient(to right, #a855f7, #8b5cf6);
}

.section-icon-wrapper.emerald {
  background: linear-gradient(to right, #10b981, #14b8a6);
}

.section-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.section-title-detail {
  font-size: 1.5rem;
  font-weight: 900;
  color: #111827;
}

.detail-text {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.75;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  gap: 0.75rem;
}

.info-label {
  font-weight: 900;
  min-width: 4rem;
  color: #374151;
}

.info-value {
  color: #111827;
  font-weight: 500;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1f2937;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-link:hover {
  color: #a855f7;
}

/* Footer */
.footer {
  border-top: 4px solid #fb923c;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-text {
  text-align: center;
  color: #6b7280;
  font-weight: 700;
}

/* 장식 요소 */
.decoration {
  position: fixed;
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
}

.decoration.top-right {
  top: 2.5rem;
  right: 2.5rem;
}

.decoration.bottom-left {
  bottom: 5rem;
  left: 2.5rem;
}

.decoration.top-detail {
  top: 5rem;
  right: 2.5rem;
  opacity: 0.1;
}

/* 헤더 플렉스 */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

/* 아이콘 SVG */
.icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
}

/* 반응형 */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.125rem;
  }

  .banner {
    height: 15rem;
  }

  .banner-title {
    font-size: 2rem;
  }

  .banner-subtitle {
    font-size: 1.125rem;
  }

  .detail-title {
    font-size: 2rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* 페이징 스타일 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

.page-btn {
  padding: 0.75rem 1.25rem;
  background: white;
  border: 2px solid #fb923c;
  border-radius: 0.75rem;
  color: #fb923c;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(251, 146, 60, 0.1);
}

.page-btn:hover {
  background: #fb923c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(251, 146, 60, 0.3);
}

.page-btn.active {
  background: #fb923c;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(251, 146, 60, 0.4);
}

.page-ellipsis {
  padding: 0.75rem 0.5rem;
  color: #9ca3af;
  font-weight: 600;
}
