/* 월별/지역별축제 상세페이지 스타일 */

/* 공통 타이틀 그라데이션 효과 */
:root {
  --title-gradient-colors: #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #dda0dd,
    #98fb98, #87ceeb;
}

.detail-title-gradient {
  background: linear-gradient(45deg, var(--title-gradient-colors));
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(135, 206, 235, 0.5);
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.festival-detail-section {
  max-width: 95%;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

.detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: #87ceeb;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(45deg, var(--title-gradient-colors));
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(135, 206, 235, 0.5);
}

.separator-line {
  height: 2px;
  background: linear-gradient(90deg, #4ecdc4, #45b7d1, #dda0dd);
  margin: 1rem 0;
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

/* 월별 축제 섹션 */
.monthly-festivals {
  margin-bottom: 1.5rem;
}

.monthly-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.monthly-item {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem 0.6rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 75px;
}

.monthly-item:hover {
  background: linear-gradient(
    135deg,
    #ff6b6b,
    #4ecdc4,
    #45b7d1,
    #96ceb4,
    #ffeaa7
  );
  background-size: 300% 300%;
  animation: rainbowHover 2s ease-in-out infinite;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4),
    0 0 20px rgba(78, 205, 196, 0.3), 0 0 40px rgba(69, 183, 209, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.monthly-item.active {
  background: linear-gradient(
    135deg,
    rgba(138, 43, 226, 0.8),
    rgba(75, 0, 130, 0.6)
  );
  border: 2px solid rgba(255, 107, 107, 0.8);
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
  transform: translateY(-2px);
}

.month-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.festival-theme {
  font-size: 0.9rem;
  color: #e0e0e0;
  margin-bottom: 0.3rem;
  opacity: 0.9;
}

/* 축제 개수 표시 제거됨 */

/* 지역별 축제 섹션 */
.regional-festivals {
  margin-bottom: 1.5rem;
}

.regional-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.regional-item {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem 0.6rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.regional-item:hover {
  background: linear-gradient(
    135deg,
    #ff6b6b,
    #4ecdc4,
    #45b7d1,
    #96ceb4,
    #ffeaa7
  );
  background-size: 300% 300%;
  animation: rainbowHover 2s ease-in-out infinite;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4),
    0 0 20px rgba(78, 205, 196, 0.3), 0 0 40px rgba(69, 183, 209, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.regional-item.active {
  background: linear-gradient(
    135deg,
    rgba(138, 43, 226, 0.8),
    rgba(75, 0, 130, 0.6)
  );
  border: 2px solid rgba(255, 107, 107, 0.8);
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
  transform: translateY(-2px);
}

/* 계절별 버튼 스타일 */
.season-item {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 0.6rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.season-item:hover {
  background: linear-gradient(
    135deg,
    #ff6b6b,
    #4ecdc4,
    #45b7d1,
    #96ceb4,
    #ffeaa7
  );
  background-size: 300% 300%;
  animation: rainbowHover 2s ease-in-out infinite;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4),
    0 0 20px rgba(78, 205, 196, 0.3), 0 0 40px rgba(69, 183, 209, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.season-item.active {
  background: linear-gradient(
    135deg,
    rgba(138, 43, 226, 0.8),
    rgba(75, 0, 130, 0.6)
  );
  border: 2px solid rgba(255, 107, 107, 0.8);
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
  transform: translateY(-2px);
}

.region-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.season-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 지역별 축제 개수 표시 제거됨 */

/* 무지개 호버 애니메이션 */
@keyframes rainbowHover {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 축제 목록 스타일 */
.festival-list {
  margin-top: 2rem;
  padding: 0 1rem;
}

/* 1열 3개 배치 그리드 레이아웃 */
.festival-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

/* 축제 아이템 스타일 */
.festival-item {
  background: rgba(26, 26, 46, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.festival-item:hover {
  background: rgba(26, 26, 46, 0.95);
  border-color: rgba(135, 206, 235, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(135, 206, 235, 0.2);
}

/* 축제 카드 스타일 */
.festival-card {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.festival-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(135, 206, 235, 0.2);
  border-color: rgba(135, 206, 235, 0.4);
}

.festival-card-header {
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
}

.festival-name {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.festival-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}

.festival-month,
.festival-region {
  background: rgba(102, 126, 234, 0.2);
  color: #87ceeb;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.festival-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.festival-dates {
  text-align: center;
}

.festival-date {
  color: #ccc;
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.festival-homepage {
  margin: 0.5rem 0;
}

.festival-homepage a {
  color: #87ceeb;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.festival-homepage a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.festival-description {
  color: #e0e0e0;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.festival-list-container {
  background: rgba(15, 15, 26, 0.8);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.festival-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.festival-list-title {
  color: #667eea;
  margin: 0;
  font-size: 1.5rem;
}

.no-festivals {
  text-align: center;
  color: #888;
  padding: 3rem 0;
}

.no-festivals-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.no-festivals h4 {
  color: #667eea;
  margin-bottom: 0.5rem;
}

/* 축제명 스타일 */
.festival-name {
  color: #87ceeb;
  font-size: 1.44rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 축제 정보 스타일 */
.festival-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.festival-info p {
  color: #e0e0e0;
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.festival-location {
  color: #ffffff !important;
  font-weight: 500;
}

.festival-date {
  color: #ffd700 !important;
  font-weight: 500;
}

.festival-homepage {
  margin-top: auto;
  text-align: center;
  padding-top: 1rem;
}

.festival-link {
  display: inline-block;
  background: linear-gradient(135deg, #4ecdc4, #45b7d1);
  color: #ffffff;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
  margin-top: 0.5rem;
}

.festival-link:hover {
  background: linear-gradient(135deg, #45b7d1, #4ecdc4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
  text-decoration: none;
}

/* 축제 리스트 헤더 스타일 */
.festival-list-header {
  margin-bottom: 2rem;
  text-align: center;
}

.festival-list-header h3 {
  color: #87ceeb;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(135, 206, 235, 0.3);
}

.festival-list-header p {
  color: #e0e0e0;
  font-size: 1rem;
}

/* 축제가 없을 때 스타일 */
.no-festivals {
  text-align: center;
  padding: 3rem;
  color: #e0e0e0;
}

.no-festivals h3 {
  color: #87ceeb;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.no-festivals p {
  font-size: 1rem;
  opacity: 0.8;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
  .festival-grid-3col {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .festival-grid-3col {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .festival-item {
    padding: 1rem;
  }

  .festival-name {
    font-size: 1.32rem;
  }

  .festival-info p {
    font-size: 1.02rem;
  }
}

.festival-list-title {
  font-size: 1.8rem;
  color: #87ceeb;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(135, 206, 235, 0.3);
}

.festival-count-small {
  font-size: 0.75em; /* 75% of parent font size */
  color: #87ceeb; /* 괄호와 갯수 텍스트 모두 같은 색상 */
}

.festival-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.festival-card {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.festival-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(135, 206, 235, 0.2);
  border-color: rgba(135, 206, 235, 0.4);
}

.festival-card-header {
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
}

.festival-name {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.festival-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #4ecdc4;
  font-size: 0.9rem;
  font-weight: 500;
}

.date-icon {
  font-size: 1rem;
}

.festival-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.festival-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #e0e0e0;
  font-size: 0.9rem;
}

.location-icon {
  font-size: 1rem;
}

.festival-actions {
  margin-top: auto;
}

.festival-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #9c27b0, #673ab7);
  color: #ffffff;
  text-decoration: none;
  padding: 0.64rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(156, 39, 176, 0.3);
}

.festival-link:hover {
  background: linear-gradient(135deg, #7b1fa2, #512da8);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(156, 39, 176, 0.4);
  border-color: rgba(156, 39, 176, 0.6);
}

.link-icon {
  font-size: 1rem;
}

/* 축제가 없을 때 스타일 */
.no-festivals {
  text-align: center;
  padding: 3rem 1rem;
}

.no-festivals-message {
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.no-festivals-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.no-festivals-message p {
  color: #e0e0e0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.no-festivals-message p:last-child {
  color: #87ceeb;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* 오류 메시지 스타일 */
.error-message {
  text-align: center;
  padding: 2rem 1rem;
}

.error-content {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.error-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-content p {
  color: #f44336;
  font-size: 1rem;
  font-weight: 500;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
  .monthly-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .regional-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .festival-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .monthly-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
  }

  .regional-grid {
    grid-template-columns: repeat(5, 1fr);
  }

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

  .monthly-item,
  .season-item {
    padding: 0.75rem 0.5rem;
    border-radius: 5px;
    min-height: 60px;
  }

  .regional-item {
    padding: 0.5rem 0.5rem;
    min-height: 50px;
    font-size: 14px;
    min-height: 60px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .month-name,
  .region-name,
  .season-name {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
  }

  .festival-theme {
    font-size: 0.8rem;
  }

  .festival-count {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .monthly-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .month-name {
    font-size: 0.7rem !important;
  }
  .festival-theme {
    font-size: 0.5rem !important;
  }
  .regional-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .festival-detail-section {
    padding: 1rem;
  }

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

/* 오프라인 모드 메시지 */
.offline-message {
  background: linear-gradient(
    135deg,
    rgba(135, 206, 235, 0.1) 0%,
    rgba(70, 130, 180, 0.1) 100%
  );
  border: 1px solid rgba(135, 206, 235, 0.3);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  margin: 1rem 0;
  color: #e0e0e0;
}

.offline-content {
  max-width: 600px;
  margin: 0 auto;
}

.offline-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.offline-content h3 {
  color: #87ceeb;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.offline-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.offline-instructions {
  background: rgba(26, 26, 46, 0.5);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
}

.offline-instructions h4 {
  color: #87ceeb;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.offline-instructions ol {
  margin: 0;
  padding-left: 1.5rem;
}

.offline-instructions li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.offline-instructions code {
  background: rgba(135, 206, 235, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  color: #87ceeb;
}

.offline-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-refresh,
.btn-server {
  background: linear-gradient(135deg, #87ceeb 0%, #4682b4 100%);
  color: #1a1a2e;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
}

.btn-refresh:hover,
.btn-server:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(135, 206, 235, 0.4);
}

.btn-server {
  background: linear-gradient(135deg, #4682b4 0%, #1e3a8a 100%);
  color: #ffffff;
}

/* 페이지 콘텐츠 스타일 */
.page-content {
  padding: 2rem 0;
}

.content-placeholder {
  background: rgba(26, 26, 46, 0.8);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  border: 2px solid rgba(135, 206, 235, 0.3);
  backdrop-filter: blur(10px);
  margin: 2rem 0;
}

.content-placeholder h2 {
  color: #87ceeb;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.content-placeholder p {
  color: #e0e0e0;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.placeholder-info {
  background: rgba(135, 206, 235, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  margin-top: 2rem;
  border: 1px solid rgba(135, 206, 235, 0.2);
}

.placeholder-info p {
  color: #87ceeb;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.placeholder-info p:last-child {
  margin-bottom: 0;
}

/* 관리자 모드 스타일 */
.admin-buttons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.festival-card:hover .admin-buttons {
  opacity: 1;
}

.btn-edit,
.btn-delete {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-edit {
  background: rgba(34, 197, 94, 0.9);
  color: #ffffff;
}

.btn-edit:hover {
  background: rgba(34, 197, 94, 1);
  transform: translateY(-1px);
}

.btn-delete {
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
}

.btn-delete:hover {
  background: rgba(239, 68, 68, 1);
  transform: translateY(-1px);
}

/* 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.95),
    rgba(45, 26, 74, 0.95)
  );
  margin: 5% auto;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
  color: #87ceeb;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #e0e0e0;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: #87ceeb;
  box-shadow: 0 0 10px rgba(135, 206, 235, 0.3);
}

.error-message {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn-confirm,
.btn-cancel,
.btn-delete {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-confirm {
  background: linear-gradient(135deg, #4ecdc4, #45b7d1);
  color: #ffffff;
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-delete {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: #ffffff;
}

.btn-delete:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* 안내 메시지 스타일 */
.footer-message {
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  backdrop-filter: blur(5px);
}

/* 축제 리스트 스타일 */

.festival-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  transform: scale(0.95);
  transform-origin: top center;
}

.festival-card {
  background: linear-gradient(
    135deg,
    rgba(25, 25, 40, 0.95) 0%,
    rgba(35, 35, 55, 0.9) 100%
  );
  border: 1px solid rgba(102, 126, 234, 0.4);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.festival-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.festival-card:hover {
  border-color: rgba(102, 126, 234, 0.7);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.festival-header {
  margin-bottom: 1rem;
}

.festival-name {
  color: #8a9eff; /* #667eea보다 한단계 밝은 색상 */
  font-size: 1.728rem; /* 1.44rem * 1.2 = 120% 더 크게 */
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.festival-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  justify-content: center;
}

.festival-month,
.festival-region {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.3) 0%,
    rgba(118, 75, 162, 0.3) 100%
  );
  color: #87ceeb;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 1.02rem; /* 0.85rem * 1.2 = 120% */
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.festival-details {
  flex-grow: 1;
}

.festival-dates {
  color: #fff;
  margin: 0.5rem 0;
  font-size: 1.08rem; /* 0.9rem * 1.2 = 120% */
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.15) 0%,
    rgba(118, 75, 162, 0.15) 100%
  );
  padding: 0.75rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.festival-dates::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.festival-dates:hover::before {
  left: 100%;
}

.festival-dates:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.6);
}

.festival-dates p {
  margin: 0.25rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.festival-dates i {
  color: #87ceeb;
  font-size: 1.1em;
  text-shadow: 0 0 10px rgba(135, 206, 235, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(135, 206, 235, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(135, 206, 235, 0.8);
  }
}

.festival-homepage {
  margin: 0.5rem 0;
  text-align: center;
}

.festival-homepage a {
  color: #87ceeb;
  text-decoration: none;
  font-size: 1.08rem; /* 0.9rem * 1.2 = 120% */
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(102, 126, 234, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.festival-homepage a:hover {
  color: #ffffff;
  background: rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}

.festival-description {
  color: #e8e8e8;
  margin: 0.5rem 0;
  font-size: 1.08rem; /* 0.9rem * 1.2 = 120% */
  line-height: 1.4;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  border-radius: 8px;
  border-left: 3px solid rgba(102, 126, 234, 0.6);
}

.no-festivals {
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
}

.no-festivals-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.no-festivals h4 {
  color: #87ceeb;
  margin-bottom: 0.5rem;
  font-size: 1.44rem; /* 1.2rem * 1.2 = 120% */
}

.no-festivals p {
  color: #aaa;
  font-size: 1.08rem; /* 0.9rem * 1.2 = 120% */
  line-height: 1.5;
}

/* 반응형 디자인 - 축제 리스트 */
@media (max-width: 1200px) {
  .festival-grid {
    grid-template-columns: repeat(2, 1fr);
    transform: scale(0.95);
    transform-origin: top center;
  }
}

@media (max-width: 1200px) {
  .festival-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    justify-content: center;
  }

  .festival-item {
    width: 330px;
    height: 140px;
    max-width: 330px;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .festival-list {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
    justify-content: center;
  }

  .festival-item {
    width: 100%;
    height: 140px;
    max-width: 400px;
    margin: 0;
  }
}

/* 축제 목록 스타일 */
.festival-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 축제 배너 스타일 - 세로 정렬 및 가운데 정렬 */
.festival-banner {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 20px;
  padding: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.festival-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff69b4, #87ceeb, #ffd700);
  border-radius: 20px 20px 0 0;
}

.festival-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border-color: #ff69b4;
  background: linear-gradient(
    135deg,
    rgba(255, 105, 180, 0.2),
    rgba(135, 206, 235, 0.1)
  );
}

/* 축제명 스타일 */
.festival-banner-title {
  color: #ffd700;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
  width: 100%;
}

/* 축제 정보 스타일 - 세로 정렬 */
.festival-banner-info {
  color: #87ceeb;
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 4px 0;
}

.info-icon {
  font-size: 1.3em;
  min-width: 25px;
  text-align: center;
}

.info-label {
  font-weight: 600;
  color: #ffd700;
  min-width: 120px;
  text-align: left;
}

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

/* 홈페이지 링크 스타일 */
.homepage-link {
  color: #87ceeb;
  text-decoration: none;
  transition: all 0.3s ease;
  word-break: break-all;
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid rgba(135, 206, 235, 0.5);
  border-radius: 20px;
  background: rgba(135, 206, 235, 0.2);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  min-width: 120px;
}

.homepage-link:hover {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  text-decoration: none;
}

/* 데이터 없음 메시지 스타일 */
.no-data-message {
  text-align: center;
  padding: 60px 20px;
  color: #b0b0b0;
  width: 100%;
}

.no-data-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.no-data-message h3 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.no-data-message p {
  color: #87ceeb;
  font-size: 1.1rem;
}

/* 축제 선택 안내 메시지 */
.no-festivals {
  text-align: center;
  padding: 60px 20px;
  color: #b0b0b0;
  width: 100%;
}

.no-festivals-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.no-festivals h4 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.no-festivals p {
  color: #87ceeb;
  font-size: 1.1rem;
}

/* 반응형 디자인 - 태블릿 */
@media (max-width: 1024px) {
  .festival-list {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    padding: 15px;
  }

  .festival-banner {
    padding: 15px;
  }

  .festival-banner-title {
    font-size: 1.4rem;
  }

  .festival-banner-info {
    font-size: 1rem;
  }
}

/* 반응형 디자인 - 모바일 */
@media (max-width: 768px) {
  .festival-list {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 10px;
    gap: 15px;
  }

  .festival-banner {
    padding: 15px;
  }

  .festival-banner-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  .festival-banner-info {
    font-size: 0.9rem;
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .info-label {
    min-width: auto;
    text-align: center;
  }

  .no-festivals-icon,
  .no-data-icon {
    font-size: 3rem;
  }

  .no-festivals h4,
  .no-data-message h3 {
    font-size: 1.3rem;
  }

  .no-festivals p,
  .no-data-message p {
    font-size: 1rem;
  }
}

.festival-item {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  width: 330px;
  height: 140px;
  max-width: 330px;
  box-sizing: border-box;
  justify-content: space-between;
  margin-left: 0; /* 좌우 마진을 명시해 대칭 보장 (gap으로 간격 유지) */
  margin-right: 0;
}

.festival-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
}

.festival-name {
  color: #ffffff;
  font-size: 1.3rem;
  margin: 0;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.festival-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.festival-date-location {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.festival-date {
  color: #4caf50 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  text-align: center !important;
  margin: 0 0 4px 0 !important;
  padding: 4px 8px !important;
  background: rgba(76, 175, 80, 0.1) !important;
  border-radius: 8px !important;
  border: 1px solid rgba(76, 175, 80, 0.3) !important;
}

.festival-end-date {
  color: #ff6b6b !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  text-align: center !important;
  margin: 0 0 4px 0 !important;
  padding: 4px 8px !important;
  background: rgba(255, 107, 107, 0.1) !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 107, 107, 0.3) !important;
}

.festival-location {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.festival-homepage {
  text-align: center;
  margin-top: auto;
  padding-top: 0;
  margin-bottom: 0;
}

.homepage-link {
  color: #87ceeb !important;
  text-decoration: none !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  padding: 8px 16px !important;
  border: 2px solid rgba(135, 206, 235, 0.5) !important;
  border-radius: 20px !important;
  background: rgba(135, 206, 235, 0.2) !important;
  min-width: 100px !important;
  text-align: center !important;
}

.homepage-link:hover {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.no-homepage {
  color: #888 !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  font-style: italic !important;
  display: inline-block !important;
  padding: 8px 16px !important;
  border: 2px solid rgba(136, 136, 136, 0.5) !important;
  border-radius: 20px !important;
  background: rgba(136, 136, 136, 0.2) !important;
  min-width: 100px !important;
  text-align: center !important;
}

.info-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.homepage-link {
  color: #87ceeb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.homepage-link:hover {
  color: #ffd700;
  text-decoration: underline;
}

/* 데이터 없음 메시지 */
.no-data-message {
  text-align: center;
  padding: 40px 20px;
  color: #b0b0b0;
}

.no-data-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.no-data-message h3 {
  color: #ffffff;
  margin-bottom: 10px;
}

.admin-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.admin-link:hover {
  background: linear-gradient(135deg, #45a049, #4caf50);
  transform: translateY(-2px);
}

/* 활성화된 버튼 스타일 */
.monthly-item.active,
.regional-item.active {
  background: linear-gradient(135deg, #ff69b4, #ff1493) !important;
  color: #fff !important;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
  border: 2px solid #ff69b4;
}

.monthly-item.active .festival-icon,
.regional-item.active .festival-icon {
  transform: scale(1.2);
}

.monthly-item.active h3,
.regional-item.active h3 {
  color: #fff !important;
  font-weight: bold;
}

.monthly-item.active p,
.regional-item.active p {
  color: #fff !important;
}
