/* ===== 상세 페이지 스타일 ===== */

/* 상세 컨테이너 */
.event-detail-container { overflow: hidden; padding: 60px 0; opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s ease-out 0.6s forwards; }

/* 애니메이션 키프레임 */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* 헤더 */
.event-header { display: grid; grid-template-columns: 0.7fr 2fr; gap: 4rem; margin-bottom: 0; position: relative; }
.event-header > * { position: relative; z-index: 2; }
.event-header .event-header-title { font-size: 2.5rem; font-weight: 700; padding-bottom: 16px; color: #000000; line-height: 1.3; margin-bottom: 12px; letter-spacing: -0.02em; }
.event-subtitle { color: #333333; opacity: 0.95; margin-bottom: 20px; font-size: 1.1rem; line-height: 1.7; font-weight: 400; }

/* 이미지 갤러리 */
.event-image-gallery { display: flex; flex-direction: column; gap: 1.2rem; }
.main-image { width: 100%; height: 19vw; overflow: hidden; position: relative; border-radius: 12px; background: #f5f5f5; border: 1px solid #e0e0e0; }
.main-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; cursor: pointer; }
.main-image:hover img { transform: scale(1.05); }

/* 썸네일 이미지 */
.thumbnail-images { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.thumbnail { width: 80px; height: 80px; border-radius: 5px; cursor: pointer; transition: all 0.3s ease; border: 2px solid transparent; object-fit: cover; }
.thumbnail:hover { transform: scale(1.05); border-color: #000000; }
.thumbnail.active { border-color: #000000; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1); }

/* 이미지 팝업 모달 */
.image-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; background: rgba(0, 0, 0, 0.9); align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.image-modal.active { display: flex; opacity: 1; }
.image-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: pointer; }
.image-modal-content { position: relative; max-width: 90%; max-height: 90%; display: flex; align-items: center; justify-content: center; z-index: 10000; }
.image-modal-img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); }
.image-modal-close { position: absolute; top: -50px; right: 0; background: rgba(255, 255, 255, 0.9); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #000000; transition: all 0.3s ease; z-index: 10001; }
.image-modal-close:hover { background: #ffffff; transform: scale(1.1); }

/* 상태 배지 */
.event-status { position: absolute; top: 16px; right: 16px; padding: 8px 16px; border-radius: 24px; font-size: 0.85rem; font-weight: 600; color: #ffffff; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); z-index: 10; background: #666666; }
.event-status.ongoing { background: #4CAF50; color: #ffffff; }
.event-status.scheduled { background: #2196F3; color: #ffffff; }
.event-status.completed { background: #9E9E9E; color: #ffffff; }
.event-status.cancelled { background: #F44336; color: #ffffff; }

/* 정보 요약 */
.event-info-summary { display: flex; flex-direction: column; color: #000000; }
.event-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.meta-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #f8f9fa; border-radius: 12px; border: 1px solid #e0e0e0; transition: all 0.3s ease; }
.meta-item:hover { background: #f0f0f0; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.meta-item i { width: 20px; color: #333333; font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; opacity: 0.95; }
.meta-item label { font-size: 0.9rem; font-weight: 500; color: #666666; min-width: 70px; opacity: 0.9; }
.meta-item span { line-height: 1.5; color: #000000; font-size: 1rem; font-weight: 500; flex: 1; }

/* 목록 버튼 */
.detail-list-button-wrapper { display: flex; justify-content: center; align-items: center; padding: 60px 0; margin-top: 40px; }
.btn-list { padding: 16px 48px; background: #ffffff; color: #000000; border: 2px solid #000000; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; font-size: 1.1rem; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); min-width: 150px; }
.btn-list:hover { background: #000000; color: #ffffff; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); }
.btn-list:active { transform: translateY(-1px); }

/* 상세 내용 */
.event-detail-content { margin-bottom: 60px; overflow: hidden; }
.content-tabs { display: flex; justify-content: center; border-bottom: 1px solid #adadad; gap: 0; }
.tab-btn { padding: 20px 48px; background: none; border: none; font-size: 1.1rem; font-weight: 600; color: #666; cursor: pointer; transition: all 0.3s ease; border-bottom: 3px solid transparent; position: relative; }
.tab-btn:hover { color: #000000; background: #f8f8f8; }
.tab-btn.active { color: #000000; border-bottom-color: #000000; background: #ffffff; }
.tab-content { padding: 50px 0; display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.content-section { display: flex; flex-direction: column; gap: 0; }
.content-section .event-description img {max-width: 100%; }
.event-description { line-height: 1.9; color: #000000; font-size: 1.05rem; }
.event-description p { margin-bottom: 1.5rem; color: #333333; }
.event-description p:last-child { margin-bottom: 0; }

/* 정보 카드 */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 0; }
.info-card { padding: 32px 24px; background: #ffffff; border-radius: 16px; text-align: center; border: 2px solid #e0e0e0; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.info-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); border-color: #000000; background: #ffffff; }
.info-card:hover i, .info-card:hover h5, .info-card:hover p { color: #000000; }
.info-card i { font-size: 2.5rem; color: #333333; margin-bottom: 16px; transition: color 0.3s ease; }
.info-card h5 { font-size: 1rem; font-weight: 600; color: #000000; margin-bottom: 12px; letter-spacing: -0.01em; transition: color 0.3s ease; }
.info-card p { font-size: 1rem; color: #333333; margin: 0; font-weight: 500; line-height: 1.6; transition: color 0.3s ease; }

/* 반응형 - 상세 페이지 */
@media (max-width: 1024px) {
    .event-header { grid-template-columns: 1fr; gap: 3rem; }
    .event-header .event-header-title { font-size: 1.5rem;   margin-bottom: 0px;        padding-bottom: 0px; }
    .event-header .event-subtitle {margin-bottom: 20px; }
    .main-image { height: 400px !important; }
    .event-meta { grid-template-columns: 1fr; gap: 0.5rem; }
    .info-cards { grid-template-columns: repeat(2, 1fr); }
    .tab-content { padding: 40px 40px; }
}
@media (max-width: 768px) {
    .event-header { gap: 1rem;  }
    .event-detail-container {padding: 20px 0;}
    .event-header .event-header-title { font-size: 1.2rem; }
    .event-subtitle { font-size: 1rem; }
    .main-image { height:auto !important; }
    .thumbnail { width: 70px; height: 70px; }
    .tab-btn { padding:6px 10px; font-size: 1rem; flex: 1; }
    .tab-content { padding: 32px 0; }
    .info-cards { grid-template-columns: 1fr; gap: 16px; }
    .info-card { padding: 24px 20px; }
    .detail-list-button-wrapper { padding: 40px 0; padding: 10px 20px;}
    .btn-list { width: 100%; max-width: 300px; }
    .meta-item { padding: 10px 10px; gap: 5px;  font-size: 14px; align-items: center;}
    .meta-item i, .meta-item label, .meta-item span {font-size: 14px;    line-height: normal;}
    .event-description {line-height: 1.5; font-size: 0.8rem;}
}

/* ===== 나이트 모드 스타일 ===== */
html.color_change .event-header .event-header-title,
html.color_change .event-info-summary,
html.color_change .meta-item span,
html.color_change .tab-content,
html.color_change .info-card h5 { color: #ffffff; }
html.color_change .event-subtitle,
html.color_change .meta-item i,
html.color_change .event-description,
html.color_change .event-description p,
html.color_change .info-card p { color: #e0e0e0; }
html.color_change .main-image,
html.color_change .meta-item,
html.color_change .info-card { background: #1a1a1a; border-color: #444444; }
html.color_change .thumbnail:hover,
html.color_change .thumbnail.active { border-color: #ffffff; }
html.color_change .thumbnail.active { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2); }
html.color_change .meta-item:hover,
html.color_change .info-card:hover { background: #252525; }
html.color_change .meta-item label,
html.color_change .tab-btn,
html.color_change .info-card i { color: #b0b0b0; }
html.color_change .content-tabs { border-bottom-color: #555555; }
html.color_change .tab-btn:hover { color: #ffffff; background: #333333; }
html.color_change .tab-btn.active { color: #ffffff; border-bottom-color: #ffffff; background: #292723; }
html.color_change .info-card:hover { border-color: #ffffff; }
html.color_change .info-card:hover i,
html.color_change .info-card:hover h5,
html.color_change .info-card:hover p { color: #ffffff; }
html.color_change .btn-list { background: #292723; color: #ffffff; border-color: #ffffff; }
html.color_change .btn-list:hover { background: #ffffff; color: #000000; border-color: #ffffff; }
html.color_change .image-modal-close { background: rgba(0, 0, 0, 0.9); color: #ffffff; }
html.color_change .image-modal-close:hover { background: rgba(0, 0, 0, 1); }
