/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    /* 붉은색 ~ 검은색 그라데이션으로 변경하여 너무 어둡지 않게 설정 */
    background: linear-gradient(135deg, #4a0000 0%, #2b0000 50%, #1a0505 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow-x: hidden;
}

/* ===== 배경 이미지 (붉은 필터 적용) ===== */
.background-div {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 페스티벌 군중 이미지 */
    background-image: url("https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?w=1920&q=80");
    background-size: cover;
    background-position: center;
    /* 붉은색을 강조하고 약간 어둡게 처리 */
    background-blend-mode: multiply;
    background-color: rgba(139, 0, 0, 0.6);
    filter: blur(3px) contrast(1.1);
    z-index: -2;
}

/* ===== 무대 조명 효과 (Red & White) ===== */
.stage-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.beam {
    position: absolute;
    top: -20%;
    width: 120px;
    height: 150%;
    filter: blur(20px);
    transform-origin: top center;
    mix-blend-mode: screen;
}

/* 1번: 붉은색 조명 */
.beam-1 {
    left: 20%;
    background: linear-gradient(to bottom, rgba(255, 0, 0, 0.6) 0%, transparent 80%);
    animation: swing 5s infinite ease-in-out alternate;
}

/* 2번: 흰색/주황 조명 (포인트) */
.beam-2 {
    left: 80%;
    background: linear-gradient(to bottom, rgba(255, 100, 0, 0.5) 0%, transparent 80%);
    animation: swing 6s infinite ease-in-out alternate-reverse;
}

/* 3번: 중앙 하이라이트 */
.beam-3 {
    left: 50%;
    width: 200px;
    background: linear-gradient(to bottom, rgba(255, 50, 50, 0.3) 0%, transparent 60%);
    animation: pulseBeam 4s infinite ease-in-out;
}

@keyframes swing {
    0% {
        transform: rotate(-15deg);
        opacity: 0.4;
    }

    100% {
        transform: rotate(15deg);
        opacity: 0.7;
    }
}

@keyframes pulseBeam {
    0% {
        opacity: 0.2;
        transform: scaleX(1);
    }

    50% {
        opacity: 0.5;
        transform: scaleX(1.2);
    }

    100% {
        opacity: 0.2;
        transform: scaleX(1);
    }
}

/* ===== 불티(Ember) 효과 ===== */
.embers {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.ember {
    position: absolute;
    bottom: -10%;
    width: 4px;
    height: 4px;
    background: #ffaa00;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff0000;
    animation: rise 10s infinite linear;
    opacity: 0;
}

/* 불티 위치 랜덤화 효과 (CSS만으로 간단 구현) */
.ember:nth-child(1) {
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.ember:nth-child(2) {
    left: 30%;
    animation-duration: 12s;
    animation-delay: 2s;
}

.ember:nth-child(3) {
    left: 50%;
    animation-duration: 7s;
    animation-delay: 1s;
}

.ember:nth-child(4) {
    left: 70%;
    animation-duration: 11s;
    animation-delay: 3s;
}

.ember:nth-child(5) {
    left: 90%;
    animation-duration: 9s;
    animation-delay: 4s;
}

.ember:nth-child(6) {
    left: 20%;
    animation-duration: 13s;
    animation-delay: 5s;
}

@keyframes rise {
    0% {
        bottom: -10%;
        opacity: 0;
        transform: translateX(0);
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(50px);
    }
}

/* ===== Navigation Bar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 0, 0, 0.9);
    /* 붉은 끼가 도는 검정 */
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #800000;
    /* 진한 빨강 테두리 */
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.2);
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ff3333;
    /* 밝은 빨강 */
    letter-spacing: 0.05em;
    font-style: italic;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: #cc9999;
    /* 톤다운된 분홍/회색 */
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
    text-transform: uppercase;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
    background-color: #8b0000;
    /* 활성화 시 짙은 빨강 배경 */
    border-radius: 4px;
    box-shadow: 0 0 10px #ff0000;
}

/* ===== 메인 컨테이너 ===== */
.container {
    background: rgba(40, 0, 0, 0.7);
    /* 붉은 톤의 반투명 배경 */
    backdrop-filter: blur(15px);
    max-width: 1000px;
    width: 100%;
    padding: 70px 50px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 50px rgba(139, 0, 0, 0.4);
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 헤더 섹션 ===== */
.header-section {
    margin-bottom: 60px;
}

.genre-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 0.1em;
    font-style: italic;
    /* 텍스트 이중 그림자로 강렬함 표현 */
    text-shadow:
        3px 3px 0 #8b0000,
        0 0 20px #ff0000;
}

.genre-desc {
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.8;
    white-space: pre-line;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

.highlight {
    color: #ff4d4d;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

/* ===== 아티스트 리스트 ===== */
.artist-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* ===== 아티스트 카드 ===== */
.artist-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #550000;
    /* 어두운 빨강 테두리 */
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 카드 호버 효과 */
.artist-card:hover {
    transform: translateY(-5px);
    border-color: #ff3333;
    /* 호버 시 밝은 빨강 */
    background: rgba(50, 0, 0, 0.8);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.3);
}

/* 아티스트 이미지 */
.artist-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #8b0000;
    transition: all 0.3s ease;
}

.artist-card:hover .artist-img {
    border-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 15px #ff0000;
}

/* 아티스트 정보 */
.artist-info {
    text-align: center;
    width: 100%;
}

.artist-name {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.artist-name:hover {
    color: #ff3333;
    text-shadow: 0 0 10px #ff0000;
}

.artist-desc {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .genre-title {
        font-size: 3rem;
    }

    .artist-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .genre-title {
        font-size: 2.2rem;
    }

    .container {
        padding: 40px 20px;
    }
}