/* ===========================
   EVENT INDEX (screenshot style)
   path: static/event/css/index.css
=========================== */

/* reset */
* { margin:0; padding:0; box-sizing:border-box; }
ul { list-style:none; }
img { display:block; width:100%; border:0; }
a { text-decoration:none; color:inherit; }

/* base */
body{
    font-family: "Pretendard", sans-serif;
    background:#0f0f10;
    color:#fff;
}

/* 전체 section */
section{
    margin-top: 100px;
    margin-bottom: 100px;
    width:100%;
    padding: 0 0 90px;
    background: radial-gradient(ellipse at top, rgba(255,255,255,0.06), rgba(0,0,0,0) 55%),
    linear-gradient(#0f0f10, #0b0b0c);
}

/* 상단 타이틀 */
section .mainText{
    text-align:center;
    font-size:64px;
    font-weight:800;
    letter-spacing:2px;
    padding: 48px 0 44px;
    color:#ffffff;
}

/* 탭 바 */
section .topBtn{
    width: 80%;
    margin: 0 auto 34px;
    height: 84px;
    display:flex;
    background: #252525;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}

/* 버튼 탭(권장) */
section .topBtn .tab-btn{
    width:50%;
    border:0;
    background:transparent;
    color:#e9e9e9;
    font-size:22px;
    font-weight:700;
    cursor:pointer;
    transition: 0.2s;
}
section .topBtn .tab-btn + .tab-btn{
    border-left: 1px solid rgba(255,255,255,0.85);
}
section .topBtn .tab-btn:hover{
    color:#FF6D00;
}
section .topBtn .tab-btn.active{
    color:#FF6D00;
}

/* p 탭을 쓰는 경우도 지원 */
section .topBtn .tab{
    width:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#e9e9e9;
    font-size:22px;
    font-weight:700;
    cursor:pointer;
    transition: 0.2s;
}
section .topBtn .tab + .tab{
    border-left: 1px solid rgba(255,255,255,0.85);
}
section .topBtn .tab:hover{ color:#FF6D00; }
section .topBtn .tab.active{ color:#FF6D00; }

/* 콘텐츠 래퍼 */
section .eventWrap{ width:100%; }

/* 탭 토글 */
.section { display:none; }
.section.active { display:block; }

/* 카드 그리드 */
section ul.eventGrid{
    width: 80%;
    margin: 0 auto;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* 카드 */
section ul.eventGrid .eventBox{
    background:#242424;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
    transition: transform .18s ease, box-shadow .18s ease;
}
section ul.eventGrid .eventBox:hover{
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.65);
}

/* 이미지 영역 */
section ul.eventGrid .eventBox img{
    height: 360px;
    object-fit: cover;
    background:#111;
}

/* 제목 */
section ul.eventGrid .eventBox h1{
    margin-top: 24px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    color:#fff;
}

/* 기간 */
section ul.eventGrid .eventBox p{
    margin-top: 18px;
    font-size: 17px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

/* 혹시 남아있어도 안 보이게(안전장치) */
section ul.eventGrid .eventBox .statusText{ display:none; }

/* ✅ 배지 컨테이너 */
section ul.eventGrid .eventBox .statusBadges{
    margin-top: 10px;
    display:flex;
    gap: 10px;
    align-items:center;
}

/* ✅ 배지 공통 */
section ul.eventGrid .eventBox .status-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    height: 36px;
    padding: 0 18px;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.2px;

    color:#fff;
    border-radius: 0;
    white-space: nowrap;

    /* ❌ 여기엔 background 절대 넣지 않음 */
}

/* ✅ 상세(detail)과 동일 색상 */
section ul.eventGrid .eventBox .status-badge.end{
    background:#555 !important;
}
section ul.eventGrid .eventBox .status-badge.inactive{
    background:#6b0f0f !important;
}

/* ✅ 진행중 타겟 라벨(주황) */
section ul.eventGrid .eventBox .bgO,
section ul.eventGrid .eventBox .bg2,
section ul.eventGrid .eventBox .bg3,
section ul.eventGrid .eventBox .bg4{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top: 14px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color:#fff;
    background:#FF6D00;
    width:auto;
}

/* empty 상태 */
section .empty{
    width:80%;
    margin: 32px auto 0;
    padding: 22px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.78);
}

/* 반응형 */
@media (max-width: 980px){
    section .mainText{ font-size:48px; padding: 38px 0 30px; }
    section .topBtn{ width: calc(100% - 32px); height: 72px; }
    section .topBtn .tab-btn,
    section .topBtn .tab{ font-size:18px; }
    section ul.eventGrid{
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
        gap: 22px;
    }
    section ul.eventGrid .eventBox img{ height: 280px; }
}
