@charset "utf-8";

/*
 * NOTICE 서브페이지 전체 스타일
 * ---------------------------------------------------------
 * 적용 페이지: notice_subpage/notice_index.html
 *
 * 담당 영역:
 * 1. 공지 서브페이지 공통 색상 변수와 배경
 * 2. 상단 네비게이션, MPH NOTICE 히어로 타이틀
 * 3. OVERWATCH / ESPORTS 채널 탭
 * 4. 이벤트 카드, 맵 변경 카드, e스포츠 카드
 * 5. 채널별 표시/숨김 상태와 hover 효과
 * 6. 초록색 NOTICE 테마와 모바일 반응형
 *
 * 패널 등장과 화살표 움직임 keyframes는 notice_subpage/css/animations.css에 있습니다.
 */

:root {
    --point-color: #56b65b;
    --page-background: #030b08;
    --hero-background-image: url("../../images/notice_subpage/notice_bg.png");
    --content-width: min(1400px, 94%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Zen Dots", sans-serif;
}

body {
    overflow-x: hidden;
    background: var(--page-background);
    color: #fff;
    scroll-behavior: smooth;
    transition: background-color 0.35s ease;
}

body.esports-channel {
    --point-color: #fff200;
    --page-background: #0d0802;
    --hero-background-image: url("../../images/notice_subpage/event_bg.png");
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.sub-navigation {
    position: absolute;
    top: 0;
    z-index: 10;
    display: flex;
    width: 100%;
    padding: 28px 4%;
    align-items: center;
    justify-content: space-between;
    font-size: 24px;
}

.home-button {
    padding: 10px 20px;
    border: 1px solid var(--point-color);
    border-radius: 30px;
    font-size: 12px;
    transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.home-button:hover {
    background: var(--point-color);
    color: var(--page-background);
    box-shadow: 0 0 22px color-mix(in srgb, var(--point-color) 35%, transparent);
}

.news-hero {
    position: relative;
    display: grid;
    height: 730px;
    min-height: 730px;
    max-height: 730px;
    place-items: center;
    background: var(--hero-background-image) center / cover no-repeat;
    transition: background-image 0.35s ease;
}

.news-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(3, 11, 8, 0.25), rgba(3, 11, 8, 0.58) 55%, var(--page-background));
}

.hero-copy {
    position: relative;
    width: min(92%, 1180px);
    text-align: center;
}

.hero-copy span,
.section-heading span {
    color: var(--point-color);
    font-size: 13px;
    letter-spacing: 3px;
}

.hero-copy h1 {
    margin: 22px 0;
    font-size: clamp(72px, 8vw, 118px);
    line-height: 1.05;
}

.hero-copy h1 a {
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.hero-copy h1 a:hover {
    color: var(--point-color);
    text-shadow: 0 0 30px color-mix(in srgb, var(--point-color) 45%, transparent);
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.down-arrow {
    display: block;
    width: 0;
    height: 0;
    margin: 28px auto 0;
    border-top: 16px solid var(--point-color);
    border-right: 13px solid transparent;
    border-left: 13px solid transparent;
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--point-color) 70%, transparent));
    animation: arrow-bounce 1.3s ease-in-out infinite;
}

.channel-tabs {
    position: absolute;
    bottom: 20px;
    z-index: 2;
    display: flex;
    gap: 14px;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--point-color) 35%, transparent);
    border-radius: 50px;
    background: rgba(5, 20, 13, 0.72);
    backdrop-filter: blur(15px);
}

.channel-tabs button {
    min-width: 190px;
    padding: 15px 24px;
    border: 1px solid color-mix(in srgb, var(--point-color) 65%, transparent);
    border-radius: 40px;
    background: transparent;
    color: #fff;
}

.channel-tabs button.active {
    background: var(--point-color);
    color: #031007;
}

.news-content {
    width: var(--content-width);
    margin: 0 auto;
    padding: 80px 0 120px;
}

.channel-panel {
    display: none;
}

.channel-panel.active {
    display: block;
    animation: panel-in 0.45s ease;
}

.section-heading {
    margin-bottom: 40px;
}

.section-heading h2 {
    margin-top: 12px;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.news-card {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--point-color) 35%, transparent);
    border-radius: 10px;
    background: rgba(6, 20, 14, 0.72);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 0 28px color-mix(in srgb, var(--point-color) 20%, transparent);
    transform: translateY(-5px);
}

.news-card img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.news-card-content {
    padding: 22px;
}

.news-card span {
    color: var(--point-color);
    font-size: 9px;
}

.news-card h3 {
    margin: 14px 0;
    font-size: 16px;
    line-height: 1.4;
}

.news-card p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    line-height: 1.7;
}

.map-update-section {
    margin-top: 100px;
}

.map-section-heading {
    text-align: center;
}

.map-comparison-list {
    display: grid;
    gap: 48px;
}

.map-comparison-card {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--point-color) 35%, transparent);
    border-radius: 12px;
    background: rgba(6, 20, 14, 0.72);
}

.map-comparison {
    --compare-position: 50%;

    position: relative;
    width: 100%;
    aspect-ratio: 32 / 9;
    overflow: hidden;
    cursor: ew-resize;
    touch-action: none;
    user-select: none;
}

.map-comparison img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.map-image-before {
    z-index: 1;
}

.map-image-after {
    z-index: 2;
    clip-path: inset(0 calc(100% - var(--compare-position)) 0 0);
}

.comparison-divider {
    position: absolute;
    top: 0;
    left: var(--compare-position);
    z-index: 3;
    width: 3px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
    transform: translateX(-50%);
}

.comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
}

.map-comparison-card > p {
    padding: 24px 28px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    line-height: 1.7;
}

.esports-heading span,
.esports-feature span,
.esports-grid .news-card span {
    color: #fff200;
}

.esports-feature {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    padding: 90px 7%;
    border: 1px solid rgba(255, 242, 0, 0.22);
    border-radius: 12px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 242, 0, 0.025)),
        rgba(25, 14, 4, 0.72);
}

.esports-feature h2 {
    margin: 18px 0;
    font-size: clamp(38px, 4.6vw, 64px);
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.esports-feature p {
    max-width: 550px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.8;
}

.esports-feature img {
    position: absolute;
    right: 1%;
    bottom: -18%;
    width: 42%;
}

.esports-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 70px;
}

.esports-grid .news-card {
    border-color: rgba(255, 242, 0, 0.22);
    background: rgba(25, 14, 4, 0.72);
}

@media (max-width: 900px) {
    .section-heading h2 {
        font-size: clamp(34px, 6.5vw, 54px);
    }

    .esports-feature h2 {
        font-size: clamp(32px, 6.5vw, 50px);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .map-comparison {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 600px) {
    .hero-copy h1 {
        font-size: clamp(42px, 13vw, 68px);
    }

    .hero-copy span,
    .section-heading span {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .section-heading h2 {
        font-size: clamp(26px, 7.8vw, 34px);
    }

    .map-section-heading h2 {
        font-size: clamp(24px, 7vw, 32px);
    }

    .esports-feature h2 {
        font-size: clamp(26px, 7.6vw, 36px);
        line-height: 1.22;
    }

    .channel-tabs {
        width: calc(100% - 24px);
        gap: 7px;
    }

    .channel-tabs button {
        min-width: 0;
        padding: 13px 8px;
        flex: 1;
        font-size: 9px;
    }

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

    .esports-feature {
        padding: 55px 24px 280px;
    }

    .esports-feature img {
        right: -8%;
        bottom: -10%;
        width: 72%;
    }

}
