/**
 * 전체 섹션 오버레이 최적화 CSS
 * 각 섹션의 배경과 오버레이를 최적화
 */

/* 공통 섹션 오버레이 설정 */
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* 배경 이벤트 통과 */
}

/* Hero 섹션 오버레이 강화 - 헤더까지 완전 커버 */
.hero::before {
    content: '';
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Transcendence 섹션 배경 */
.transcendence {
    position: relative;
    background-color: #0a0a30; /* 좀 더 밝은 색상으로 변경 */
    overflow: hidden;
}

.transcendence::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(50, 180, 255, 0.15) 0%, /* 더 밝은 색상으로 변경 */
        rgba(0, 0, 0, 0) 70%
    );
    z-index: 1;
    pointer-events: none;
}

/* Gallery 아이템 오버레이 개선 - 더 밝게 */
.gallery-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%, /* 더 밝게 변경 */
        rgba(0, 0, 0, 0.3) 50%, /* 더 밝게 변경 */
        rgba(0, 0, 0, 0.05) 100% /* 더 밝게 변경 */
    );
    transition: opacity 0.4s ease;
}

/* Exhibition 섹션 배경 */
.exhibitions {
    position: relative;
    background-color: #f8f8f8;
}

.exhibitions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 150, 255, 0.05) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Character 섹션 배경 - 더 밝게 */
.character-section {
    position: relative;
    background-color: #f5faff; /* 약간 더 밝게 */
    overflow: hidden;
}

.character-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(
            circle at 20% 30%,
            rgba(100, 200, 255, 0.15) 0%, /* 약간 더 강하게 */
            rgba(100, 200, 255, 0) 60%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(200, 100, 255, 0.15) 0%, /* 약간 더 강하게 */
            rgba(200, 100, 255, 0) 60%
        );
    z-index: 1;
    pointer-events: none;
}

/* Character Guide 섹션 배경 - 추가 */
.character-guide {
    position: relative;
    background-color: #fff; /* 밝은 배경 */
}

.character-guide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(150, 200, 255, 0.1) 0%,
        rgba(150, 200, 255, 0) 60%
    );
    z-index: 1;
    pointer-events: none;
}

/* Character Story 섹션 배경 - 더 밝게 */
.character-story {
    position: relative;
    background-color: #2a2a6a; /* 더 밝은 색상으로 변경 */
    color: #fff;
    padding: 80px 0;
    overflow: hidden;
}

.character-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url('../images/star-pattern.png'),
        linear-gradient(
            135deg,
            rgba(60, 60, 160, 1) 0%, /* 더 밝은 색상으로 변경 */
            rgba(100, 80, 200, 0.8) 100% /* 더 밝은 색상으로 변경 */
        );
    background-blend-mode: screen;
    opacity: 0.15; /* 더 투명하게 해서 배경이 더 밝게 보이도록 */
    z-index: 1;
    pointer-events: none;
}

/* 스토리 타임라인 스타일 개선 */
.story-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.story-title {
    text-align: center;
    margin-bottom: 60px;
}

.story-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #64e0ff, #c264ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-shadow: 0 0 30px rgba(200, 220, 255, 0.2);
}

.story-title p {
    font-size: 1.2rem;
    color: #d0d6ff;
}

.story-timeline {
    position: relative;
}

.story-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #64e0ff, #c264ff);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(100, 224, 255, 0.4);
}

.story-item {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
}

.story-item:last-child {
    margin-bottom: 0;
}

.story-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #5468ff, #c264ff);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(100, 100, 255, 0.3);
    z-index: 5;
    min-width: 80px;
    text-align: center;
}

.story-content {
    width: 40%;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    margin-top: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.story-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

.story-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #64e0ff, #ff64b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.story-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e6ff;
}

.story-character {
    width: 20%;
    max-width: 150px;
    position: absolute;
    top: 50%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: all 0.5s ease;
}

.story-character:hover {
    transform: scale(1.1) rotate(5deg);
}

.story-item:nth-child(odd) .story-content {
    margin-left: auto;
    margin-right: 10%;
}

.story-item:nth-child(even) .story-content {
    margin-right: auto;
    margin-left: 10%;
}

.story-item:nth-child(odd) .story-character {
    right: 50%;
    margin-right: 80px;
}

.story-item:nth-child(even) .story-character {
    left: 50%;
    margin-left: 80px;
}

/* 반응형 스타일 */
@media (max-width: 992px) {
    .story-timeline::before {
        left: 30px;
    }
    
    .story-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .story-date {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .story-content {
        width: 80%;
        margin-left: 60px !important;
        margin-right: 0 !important;
    }
    
    .story-character {
        position: relative;
        top: 0;
        left: 60px !important;
        right: auto !important;
        margin: 20px 0 !important;
    }
}

@media (max-width: 768px) {
    .story-title h2 {
        font-size: 2.2rem;
    }
    
    .story-content {
        width: calc(100% - 60px);
    }
    
    .story-content h3 {
        font-size: 1.5rem;
    }
}

/* 애니메이션 효과 */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.story-item:nth-child(1) .story-character { animation: float 4s ease-in-out infinite; }
.story-item:nth-child(2) .story-character { animation: float 5s ease-in-out infinite 0.5s; }
.story-item:nth-child(3) .story-character { animation: float 4.5s ease-in-out infinite 1s; }
.story-item:nth-child(4) .story-character { animation: float 5.5s ease-in-out infinite 1.5s; }
.story-item:nth-child(5) .story-character { animation: float 4s ease-in-out infinite 2s; }

/* 티켓 안내 섹션 배경 - 추가 */
.tickets {
    position: relative;
    background-color: #f9f9f9; /* 밝은 배경 */
}

.tickets::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 0%, 
        rgba(0, 180, 255, 0.05) 0%, 
        rgba(0, 0, 0, 0) 70%
    );
    z-index: 1;
    pointer-events: none;
}

/* 티켓 카드에 그림자 추가로 더 밝게 보이게 */
.ticket-card {
    box-shadow: 0 5px 25px rgba(0, 150, 255, 0.1);
    background-color: #fff;
}

/* 관람 안내 섹션 배경 - 추가 */
.visit {
    position: relative;
    background-color: #f0f8ff; /* 밝은 하늘색 계열 배경 */
}

.visit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(200, 230, 255, 0.3) 0%,
        rgba(200, 230, 255, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* 관람 안내 카드 스타일 추가 */
.info-card {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 120, 255, 0.1);
}

/* News 섹션 배경 */
.news {
    position: relative;
    background-color: #fff;
}

.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        -45deg,
        rgba(0, 150, 255, 0.03) 0%,
        rgba(0, 0, 0, 0) 70%
    );
    z-index: 1;
    pointer-events: none;
}

/* 뉴스 아이템 오버레이 */
.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.6) 100% /* 약간 더 밝게 */
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-item:hover .news-image::after {
    opacity: 1;
}

/* 모바일 화면에서 오버레이 최적화 */
@media (max-width: 768px) {
    .hero::before {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.5) 0%, /* 약간 더 밝게 */
            rgba(0, 0, 0, 0.3) 50%, /* 약간 더 밝게 */
            rgba(0, 0, 0, 0.6) 100% /* 약간 더 밝게 */
        );
    }
    
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.7) 0%, /* 약간 더 밝게 */
            rgba(0, 0, 0, 0.3) 60%, /* 약간 더 밝게 */
            rgba(0, 0, 0, 0) 100%
        );
    }
    
    .news-image::after {
        opacity: 0.5;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.05) 0%, /* 약간 더 밝게 */
            rgba(0, 0, 0, 0.4) 100% /* 약간 더 밝게 */
        );
    }
} 