@charset "utf-8";

/*
 * ROLE 서브페이지 전체 스타일
 * ---------------------------------------------------------
 * 적용 페이지: role_subpage/role_index.html
 *
 * 담당 영역:
 * 1. 상단 배경 이미지와 MPH HERO ROLE 타이틀
 * 2. 역할 필터 버튼과 영웅 카드 그리드
 * 3. 영웅 카드 hover 효과, 이미지 확대, 이름 영역
 * 4. 영웅 클릭 시 열리는 상세 팝업
 * 5. 상세 팝업 내부 영웅 이미지, 설명, 공식 페이지 버튼, 스킬 영상 탭
 * 6. ROLE 페이지 고유 색상인 하늘색 테마와 모바일 반응형
 *
 * 등장 애니메이션 keyframes는 role_subpage/css/animations.css에 있습니다.
 */

/*
 * MPH HERO ROLE 서브페이지 스타일
 * - 페이지 진입 카드 애니메이션
 * - 역할 필터와 영웅 카드 그리드
 * - 영웅 상세 팝업 및 스킬 영상
 * - 하늘색 ROLE 테마와 모바일 반응형
 */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Zen+Dots&display=swap');

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font: normal 17px/1.4 "Orbitron", sans-serif;
    letter-spacing: 1px;
    color: #ddd;
    background-color: #000;
    overflow-y: auto;
    /*세로 스크롤 자동 생성(내용이 넘칠때만 스크롤 생김)*/
    overflow-x: hidden;

}

/* =========================
   INTRO SCREEN
========================= */
/* =========================
   PAGE REVEAL
========================= */
.hero-title,
.filter-area,
.hero-card {
    opacity: 0;
    filter: blur(10px);
}

.hero-title,
.filter-area {
    transform: translateY(35px);
}

.hero-card {
    transform: translateY(45px) scale(.97);
}

body.role-ready .hero-title {
    animation: roleFadeUp .65s ease forwards;
}

body.role-ready .filter-area {
    animation: roleFadeUp .65s .12s ease forwards;
}

body.role-ready .hero-card {
    animation: roleCardReveal .6s ease forwards;
    animation-delay: calc(.22s + var(--card-delay, 0ms));
}

@media (prefers-reduced-motion: reduce) {

    .hero-title,
    .filter-area,
    .hero-card {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }
}

/* =========================
   HERO BACKGROUND
========================= */

.wrap {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 800px;
    /* 상단 배경 높이 */

    background-image: url(../images/bak.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: -1;
}

/* 이미지 어둡게 + 가독성 */
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.9));
}

/* =========================
   HERO TITLE
========================= */

.hero-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    padding-top: 420px;
    /* 배경 위치 맞춰 조절 */
    margin-bottom: 25px;
}

.hero-title h2 {
    font-size: 34px;
    font-weight: 900;

    letter-spacing: 4px;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.92);

    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.15),
        0 0 25px rgba(255, 170, 50, 0.2);
}

.subpage_title_link {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease, text-shadow .25s ease;
}

.subpage_title_link:hover {
    color: var(--point);
    text-shadow: 0 0 30px rgba(88, 207, 255, .48);
}

/* 화살표 */
.hero-arrow {
    width: 0;
    height: 0;

    margin-top: 14px;

    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 14px solid #ff9800;

    animation: arrowBlink 1.3s infinite;
    filter: drop-shadow(0 0 8px currentColor);
}

/* 깜빡 + 둥실 */

/* =========================
   FILTER BUTTONS
========================= */
.filter-area {
    width: 100%;
    height: 90px;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 50px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.filter-button {
    position: relative;
    min-width: 110px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.7);
    border-radius: 99px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.filter-button input {
    position: absolute;
    opacity: 0;
}

.filter-button .active-label {
    position: absolute;
    inset: 0;
    background-color: #fff;
    color: #111;
    border-radius: 99px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.filter-button input:checked+.active-label {
    opacity: 1;
}

/* =========================
   HERO CARD LIST
========================= */
.hero-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, 275px);
    justify-content: center;
    align-items: start;
    gap: 30px;
}

.hero-card {
    width: 275px;
    height: 350px;
}

.hero-card .card-inner {
    width: 100%;
    height: 100%;
}

.hero-card .card-inner>div {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: 0.4s;
}

.hero-card .card-inner>div:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow:
        0 0 20px rgba(240, 100, 20, 0.35),
        inset 0 0 20px rgba(240, 100, 20, 0.25);
}

.hero-card .card-image {
    height: 300px;
}

.hero-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.4s;
}

.hero-card:hover .card-image img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 20px rgba(240, 100, 20, 0.45));
}

.hero-card .card-name {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(110, 35, 255, 0.85);
}

.hero-card .card-name h2 {
    font-size: 18px;
    color: #fff;
}

/* =========================
   HERO DETAIL
========================= */

.hero-detail {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.hero-detail.active {
    display: flex;
}

.detail-box {
    width: 1100px;
    min-height: 560px;
    padding: 45px;
    border-radius: 28px;

    display: flex;
    align-items: flex-start;
    /* 추가 */

    gap: 45px;

    background: linear-gradient(135deg,
            rgba(22, 22, 28, 0.96),
            rgba(34, 24, 14, 0.96));

    border: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        0 0 45px rgba(255, 140, 0, 0.18);
}

.detail-left {
    width: 32%;
}

.small-hero {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(255, 140, 0, 0.35));
    margin-bottom: 18px;
}

.detail-left h2 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 15px;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 25px;
}

.detail-right {
    flex: 1;
}

.skill-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.skill-tab {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s;
}

.skill-tab.active,
.skill-tab:hover {
    background: #ff9800;
    color: #111;
    border-color: #ff9800;
}

.skill-video-box {
    width: 100%;
    height: 420px;
    /* 영상 높이 키움 */

    border-radius: 22px;
    overflow: hidden;

    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.skill-video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.official-btn {
    display: inline-flex;
    padding: 12px 22px;
    border-radius: 999px;
    background: #ff9800;
    color: #111;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: 0.25s;

}

.official-btn:hover {
    background: #fff;
    transform: translateY(-3px);
}

.close-btn {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.close-btn {
    position: fixed;
    top: 40px;
    right: 40px;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.12);

    color: white;
    font-size: 22px;

    cursor: pointer;
}

.official-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    /* margin-top: 35px; */
    padding: 14px 28px;

    border-radius: 999px;

    background: #ff9800;
    color: #111;

    font-size: 15px;
    font-weight: 900;
    text-decoration: none;

    transition: 0.3s;
}

.official-btn:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.5);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1800px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }

    .hero-list {
        grid-template-columns: repeat(5, 275px);
    }
}

@media (max-width: 1500px) {
    .hero-list {
        grid-template-columns: repeat(4, 275px);
    }
}

@media (max-width: 1200px) {
    .hero-list {
        grid-template-columns: repeat(3, 275px);
    }
}

@media (max-width: 900px) {
    .hero-list {
        grid-template-columns: repeat(2, 275px);
    }
}

@media (max-width: 600px) {
    .hero-list {
        grid-template-columns: repeat(1, 275px);
    }
}

@media (max-width: 550px) {
    .hero-title h2 {
        font-size: 20px;
    }

    .filter-button {
        min-width: 80px;
    }
}

body {
    font-family: "Zen Dots", sans-serif;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* MPH SUBPAGE THEME */
:root {
    --point: #58cfff;
}

body {
    background: #030a10;
}

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

.sub_nav {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    width: 100%;
    padding: 28px 4%;
    align-items: center;
    justify-content: space-between;
}

.sub_logo,
.sub_home {
    color: #fff;
    font-weight: 900;
    letter-spacing: 2px;
}

.sub_logo {
    font-size: 1.5rem;
}

.sub_home {
    padding: 10px 18px;
    border: 1px solid var(--point);
    border-radius: 30px;
    transition: .25s;
}

.sub_home:hover {
    color: #031018;
    background: var(--point);
    box-shadow: 0 0 22px rgba(88, 207, 255, .3);
}

.hero-bg {
    position: absolute;
    height: 730px;
    background-image: url("../images/bak.png");
    background-position: center top;
}

.hero-bg::after {
    background:
        linear-gradient(to bottom, rgba(3, 10, 16, .24), rgba(3, 10, 16, .52) 58%, #030a10 100%),
        linear-gradient(90deg, rgba(88, 207, 255, .1), transparent 55%);
}

.hero-title {
    min-height: 660px;
    padding-top: 0;
    justify-content: center;
    margin-bottom: 0;
}

.hero-title::before {
    content: none;
}

.subpage_eyebrow {
    margin-bottom: 22px;
    color: var(--point);
    font-size: 14px;
    letter-spacing: 3px;
}

.hero-title h2 {
    font-size: clamp(72px, 8vw, 118px);
    color: #fff;
    text-shadow: 0 0 30px rgba(88, 207, 255, .2);
}

.subpage_description {
    margin-top: 18px;
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
}

.hero-arrow {
    margin-top: 24px;
    border-top-color: var(--point);
}

.filter-area {
    position: relative;
    z-index: 10;
    height: auto;
    margin: -46px 0 55px;
}

.filter-buttons {
    padding: 10px;
    border: 1px solid rgba(88, 207, 255, .2);
    border-radius: 50px;
    background: rgba(4, 17, 27, .68);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
    backdrop-filter: blur(16px);
}

.filter-button {
    min-width: 120px;
    height: 46px;
    border: 1px solid rgba(88, 207, 255, .45);
    background: rgba(88, 207, 255, .04);
}

.filter-button:hover,
.filter-button:has(input:checked) {
    border-color: var(--point);
    background: var(--point);
    color: #031018;
    box-shadow: 0 0 22px rgba(88, 207, 255, .25);
}

.filter-button .active-label {
    background: var(--point);
    color: #031018;
}

.hero-list {
    width: min(1400px, 94%);
    margin: 0 auto 100px;
    gap: 18px;
}

.hero-card {
    overflow: hidden;
    border: 1px solid rgba(134, 224, 255, .18);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(88, 207, 255, .025)),
        rgba(5, 18, 28, .72);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
    backdrop-filter: blur(10px);
}

.hero-card:hover {
    border-color: rgba(88, 207, 255, .72);
    box-shadow: 0 0 26px rgba(88, 207, 255, .18), 0 22px 45px rgba(0, 0, 0, .3);
    transform: translateY(-5px) scale(1.015);
}

.hero-card .card-inner>div:hover {
    background-color: rgba(88, 207, 255, .13);
    box-shadow:
        0 0 20px rgba(88, 207, 255, .35),
        inset 0 0 20px rgba(88, 207, 255, .22);
}

.hero-card:hover .card-image img {
    filter: drop-shadow(0 0 20px rgba(88, 207, 255, .45));
}

.detail-box {
    background:
        linear-gradient(135deg, rgba(10, 20, 30, .97), rgba(4, 17, 27, .96));
    border-color: rgba(88, 207, 255, .24);
    box-shadow: 0 0 45px rgba(88, 207, 255, .18);
}

.small-hero {
    filter: drop-shadow(0 0 25px rgba(88, 207, 255, .35));
}

.skill-tab.active,
.skill-tab:hover,
.official-btn {
    background: var(--point);
    color: #031018;
    border-color: var(--point);
}

.official-btn:hover {
    background: #fff;
    color: #031018;
    box-shadow: 0 0 20px rgba(88, 207, 255, .5);
}

.close-btn:hover {
    background: var(--point);
    color: #031018;
    box-shadow: 0 0 22px rgba(88, 207, 255, .35);
}

@media (max-width: 1400px) {
    .hero-bg {
        height: 730px;
    }
}



@media (max-width: 1200px) {
    .hero-bg {
        height: 730px;
    }

    .hero-title h2 {
        font-size: clamp(72px, 6vw, 118px);
    }

    .sub_logo {
        font-size: 1.2rem;
    }

    .sub_home {
        padding: 7px 10px;
        border: 1px solid var(--point);
    }


    .detail-box {
        width: calc(100% - 48px);
        max-width: 980px;
        gap: 30px;
        padding: 34px;
    }

    .detail-left {
        width: 34%;
    }

    .detail-left h2 {
        font-size: 38px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .skill-video-box {
        height: 360px;
    }
}





@media (max-width: 960px) {
    .hero-bg {
        height: 730px;
    }

    .hero-title h2 {
        font-size: clamp(52px, 6vw, 118px);
    }

    .hero-title {
        min-height: 530px;
    }

    /* .filter-button {
    min-width: 85px;
    height: 40px;
    } */

}

@media (max-width: 850px) {
    .hero-detail {
        align-items: flex-start;
        overflow-y: auto;
        padding: 80px 18px 30px;
    }

    .detail-box {
        width: 100%;
        min-height: auto;
        flex-direction: column;
        gap: 26px;
        padding: 28px;
        border-radius: 22px;
    }

    .detail-left {
        width: 100%;
        text-align: center;
    }

    .small-hero {
        width: 140px;
        height: 140px;
        margin-bottom: 12px;
    }

    .detail-left h2 {
        font-size: 34px;
    }

    .hero-desc {
        max-width: 560px;
        margin: 0 auto 20px;
        font-size: 14px;
        line-height: 1.7;
    }

    .detail-right {
        width: 100%;
    }

    .skill-tabs {
        justify-content: center;
    }

    .skill-video-box {
        height: 320px;
    }

    .close-btn {
        top: 18px;
        right: 18px;
        width: 44px;
        height: 44px;
    }
}


@media (max-width: 700px) {

    .hero-bg {
        height: 730px;
    }

    .hero-title h2 {
        font-size: clamp(40px, 6vw, 118px);
    }

    .hero-title {
        min-height: 450px;
    }

    .filter-button {
        min-width: 80px;
        height: 35px;
    }

    .sub_nav {
        padding: 20px 22px;
    }



    .filter-area {
        margin-top: -24px;
        padding: 0 14px;
    }

    .filter-buttons {
        max-width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .filter-button {
        min-width: 105px;
    }


    .sub_logo {
        font-size: 1rem;
    }

    .sub_home {
        padding: 5px 8px;
        border: 1px solid var(--point);
    }
}

@media (max-width: 550px) {
    .hero-bg {
        height: 730px;
    }

    .hero-title h2 {
        font-size: clamp(10px, 6vw, 118px);
    }

    .filter-button {
        min-width: 75px;
        height: 35px;
    }
}

@media (max-width: 520px) {
    .hero-detail {
        padding: 70px 12px 24px;
    }

    .detail-box {
        padding: 20px;
        border-radius: 18px;
    }

    .small-hero {
        width: 110px;
        height: 110px;
    }

    .detail-left h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .hero-desc {
        font-size: 13px;
        line-height: 1.65;
    }

    .official-btn {
        width: 100%;
        justify-content: center;
        padding: 13px 16px;
        font-size: 12px;
    }

    .skill-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .skill-tab {
        width: 100%;
        padding: 10px 8px;
        font-size: 11px;
        text-align: center;
    }

    .skill-video-box {
        height: 220px;
        border-radius: 16px;
    }

    .close-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {

    /* 필터 버튼 영역을 Grid로 변경 */
    .filter-buttons {
        display: grid;
        /* 아래 3개 버튼을 동일한 크기 3열로 배치 */
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 10px;
        border: none;
        /* 외곽선 제거 */
        border-radius: 0;

        background: transparent;
        /* 회색 배경 제거 */

        box-shadow: none;
        /* 그림자 제거 */
        backdrop-filter: none;
        /* 블러 제거 */
    }

    .filter-button,
    .filter-button .active-label {
        font-size: 10px;
    }

    /* 첫 번째 버튼(ALL)을 한 줄 전체 사용 */
    .filter-button:first-child {
        grid-column: 1 / -1;
    }

    /* 버튼 크기 통일 */
    .filter-button {
        min-width: 0;
        width: 100%;
        height: 42px;
    }
}






@media (max-width: 320px) {

    .filter-buttons {
        padding: 10px;

        border: none;
        /* 외곽선 제거 */
        border-radius: 0;

        background: transparent;
        /* 회색 배경 제거 */

        box-shadow: none;
        /* 그림자 제거 */
        backdrop-filter: none;
        /* 블러 제거 */
    }



    .filter-button,
    .filter-button .active-label {
        font-size: 10px;

    }








    .detail-box {
        padding: 16px;
    }

    .subpage_eyebrow {
        font-size: 12px;
    }

    .detail-left h2 {
        font-size: 24px;
    }

    .skill-video-box {
        height: 190px;
    }

    .skill-tab {
        font-size: 10px;
    }

    .filter-area {
        margin-top: -105px;

    }
}