@charset "utf-8";
/**
 * 신규 이벤트 시스템 - 프론트 전용 스타일
 *
 * 네이밍 규칙
 *   - 기존 쇼핑몰 CSS와의 충돌 방지를 위해 모든 클래스에 `event-` 접두어 사용
 *   - 구성요소는 BEM 스타일 (block__element--modifier)
 *   - Desktop / Mobile(max-width:768px) 영역을 명확히 분리하여 관리
 *
 * 구조
 *   1) DESKTOP (기본)
 *   2) MOBILE  (@media max-width:768px)
 */

/* =========================================================
   1) DESKTOP (기본)
   ========================================================= */

.event-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 80px;
}

/* ----- 페이지 제목 ----- */
.event-title {
    margin: 20px 0 30px 0;
    font-size: 28px;
    font-weight: bold;
    color: #222;
    text-align: center;
}

/* ----- 진행 상태 탭 ----- */
.event-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #e5e5e5;
}

.event-tab__item {
    position: relative;
    padding: 12px 4px 16px;
    font-size: 18px;
    color: #888;
    background: none;
    border: 0;
    cursor: pointer;
    transition: color .15s ease;
}

.event-tab__item:hover {
    color: #555;
}

/* 활성 탭 (요구 스펙 색상) */
.event-tab__item--active {
    color: #1DB9EE !important;
    font-weight: bold;
}

.event-tab__item--active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #1DB9EE;
}

/* ----- 카테고리 버튼 ----- */
.event-category {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
}

.event-category__btn {
    padding: 8px 18px;
    font-size: 14px;
    color: #555;
    background: #fff;
    border: 1px solid #fff;   /* 기본 */
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s ease, color .15s ease;
}

.event-category__btn:hover {
    color: #333;
    border-color: #ddd;
}

/* 선택된 카테고리 (요구 스펙: 테두리 #fff → #333) */
.event-category__btn--active {
    color: #333;
    font-weight: bold;
    border: 1px solid #333;
}

/* ----- 이벤트 카드 목록 (Desktop: 한 줄 4개) ----- */
.event-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px 24px;
}

/* ----- 이벤트 카드 ----- */
.event-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.event-card__thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 245 / 222;   /* 권장 썸네일 비율 유지 */
    overflow: hidden;
    border-radius: 8px;
    background: #f2f2f2;
}

.event-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;         /* 비율 깨짐 방지 */
    display: block;
    transition: transform .2s ease;
}

.event-card__link:hover .event-card__thumb {
    transform: scale(1.03);
}

.event-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    border-radius: 12px;
}

.event-card__badge--ongoing { background: #1DB9EE; }
.event-card__badge--ended   { background: #999; }

.event-card__body {
    padding: 12px 2px 0;
}

.event-card__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: bold;
    color: #222;
    line-height: 1.4;
}

.event-card__subtitle {
    margin: 0 0 6px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.event-card__period {
    margin: 0;
    font-size: 13px;
    color: #999;
}

/* 종료된 이벤트 카드는 시각적으로 흐리게 */
.event-card--ended .event-card__thumb { opacity: .55; }
.event-card--ended .event-card__title { color: #666; }

/* ----- 데이터 없음 ----- */
.event-empty {
    padding: 80px 20px;
    text-align: center;
    font-size: 15px;
    color: #999;
}

/* =========================================================
   2) MOBILE (max-width:768px)
   ※ 12단계에서 모바일 전용 UI 구현 예정
   ========================================================= */
