@charset "UTF-8";
/* ----------------------------------------
 * COSFET21 Ticket (코스어 참여하기) Page Styles
 * Created : 202504
 * topbar 공통 스타일은 cosfet21.css 참고
 --------------------------------------- */

/* ===== PAGE WRAPPER ===== */
.ticket-page-wrap {
    width: 100%;
    min-height: calc(100vh - 80px);
    background-color: #fff;
    padding-bottom: 80px;
}

/* topbar padding-bottom 오버라이드 (전역 78px → ticket 42px) */
.ticket-page-wrap .cft21-topbar {
    padding-bottom: 42px;
}

/* ===== MAIN CONTENT: 2-column layout ===== */
.ticket-main {
    max-width: 948px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 52px;
    padding-bottom: 116px;
}

/* ===== 좌측: 티켓 이미지 ===== */
.ticket-img-wrap {
    flex: 0 0 321px;
    width: 321px;
}

.ticket-img-wrap img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.ticket-img-placeholder {
    width: 321px;
    height: 454px;
    background-color: #D9D9D9;
    border-radius: 10px;
}

/* ===== 우측: 티켓 정보 ===== */
.ticket-info {
    flex: 1;
    min-width: 0;
}

.ticket-info__title {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    margin-bottom: 28px;
}

/* 기본 정보 테이블 */
.ticket-info__meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 16px;
    margin-bottom: 24px;
}

.ticket-info__meta-label {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #A9A9A9;
    line-height: 30px;
    white-space: nowrap;
}

.ticket-info__meta-value {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    line-height: 30px;
}

/* ===== 입장권 옵션 ===== */
.ticket-option__label {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #A9A9A9;
    margin-bottom: 12px;
}

.ticket-option__list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 54px;
}

/* ===== 옵션 카드: 2행 컬럼 레이아웃 =====
 * 상단(top): badge + name + date
 * 하단(bottom): price (우측 정렬) — Figma 비율 환산
 */
.ticket-option__item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 77px;
    padding: 14px 16px 12px 20px;
    background-color: #fff;
    border: 1px solid #C4C4C4;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    position: relative;
    box-sizing: border-box;
}

.ticket-option__item.selected,
.ticket-option__item:has(input:checked) {
    background-color: #FFE5E5;
    border-color: #EAAEAE;
}

.ticket-option__item input[type="radio"] {
    display: none;
}

/* ===== 상단 행: badge + name + date ===== */
.ticket-option__top {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 뱃지 — Figma: 32.48×19.44px / radius 1.69px / #1A1A1A */
.ticket-option__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 20px;
    background-color: #1A1A1A;
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 대회 뱃지 — Figma: #F2668E */
.ticket-option__badge--competition {
    background-color: #F2668E;
}

/* 옵션명 — Figma: 18px, 400+600(bold) */
.ticket-option__name {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #000;
    line-height: 1;
    white-space: nowrap;
}

.ticket-option__name strong {
    font-weight: 600;
}

/* 날짜 — Figma: 11.57px / #656565 */
.ticket-option__date {
    font-family: 'Inter', sans-serif;
    font-size: 11.57px;
    font-weight: 400;
    color: #656565;
    line-height: 1;
    white-space: nowrap;
}

/* ===== 하단 행: price (우측 정렬) ===== */
.ticket-option__bottom {
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

/* 한정수량 라벨 — 대회 옵션 전용 */
.ticket-option__limited {
    font-family: 'Inter', sans-serif;
    font-size: 11.57px;
    font-weight: 500;
    color: #F1668E;
    line-height: 1;
}

/* 가격 — Figma: 18px / 600 */
.ticket-option__price {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    line-height: 1;
}

/* ===== 품절 옵션 카드 ===== */
.ticket-option__item.sold-out {
    background-color: #F5F5F5;
    border-color: #D9D9D9;
    cursor: not-allowed;
    opacity: 0.65;
}

.ticket-option__item.sold-out .ticket-option__name,
.ticket-option__item.sold-out .ticket-option__date,
.ticket-option__item.sold-out .ticket-option__price,
.ticket-option__item.sold-out .ticket-option__limited {
    text-decoration: line-through;
    color: #A9A9A9;
}

/* 품절 라벨 */
.ticket-option__soldout {
    font-family: 'Inter', sans-serif;
    font-size: 11.57px;
    font-weight: 700;
    color: #E04040;
    line-height: 1;
}

/* ===== 총 금액 + 구매 버튼 ===== */
.ticket-purchase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ticket-purchase__total-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ticket-purchase__total-label {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #A9A9A9;
    line-height: 38px;
}

.ticket-purchase__total-price {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #362F2F;
    line-height: 38px;
}

.ticket-purchase__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 39px;
    background: linear-gradient(90deg, #FF6255 0%, #EB288F 100%);
    border: none;
    border-radius: 5px;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.ticket-purchase__btn:hover {
    opacity: 0.85;
    color: #fff;
}

/* ===== 구분선 ===== */
.ticket-divider {
    max-width: 948px;
    margin: 0 auto;
    border: none;
    border-top: 1.5px solid #B8B8B8;
}

/* ===== 하단 탭 네비게이션 ===== */
.ticket-tab-nav {
    max-width: 948px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 0;
    border-bottom: 1.5px solid #B8B8B8;
    padding-bottom: 8px;
}

.ticket-tab-nav__item {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #8B8B8B;
    line-height: 38px;
    padding: 0 32px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
    background: none;
    border: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.ticket-tab-nav__item:first-child {
    padding-left: 32px;
}

.ticket-tab-nav__item:hover {
    color: #505050;
}

.ticket-tab-nav__item.active {
    font-weight: 700;
    color: #505050;
}

.ticket-tab-nav__item.active::after {
    content: '';
    position: absolute;
    bottom: -9.5px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #000;
}

.ticket-tab-nav__item:first-child.active::after {
    left: 0;
}

/* ===== 하단 탭 콘텐츠 ===== */
.ticket-tab-content {
    max-width: 948px;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 60px;
}

.ticket-tab-panel {
    display: none;
}

.ticket-tab-panel.active {
    display: block;
}

.ticket-full-img {
    width: 100%;
    height: auto;
    display: block;
}

.ticket-img-tab-placeholder {
    width: 100%;
    min-height: 560px;
    background-color: #D9D9D9;
    display: block;
}

/* ===== 모달 오버레이 ===== */
.ticket-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ticket-modal-overlay.is-open {
    display: flex;
}

/* ===== 모달 박스 ===== */
.ticket-modal {
    background-color: #fff;
    border-radius: 12px;
    padding: 32px 28px 24px;
    width: 320px;
    max-width: calc(100vw - 40px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ticket-modal__title {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.4;
    margin: 0;
}

.ticket-modal__body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #505050;
    line-height: 1.7;
    margin: 0;
}

.ticket-modal__footer {
    display: flex;
    justify-content: flex-end;
}

.ticket-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    height: 38px;
    background: linear-gradient(90deg, #FF6255 0%, #EB288F 100%);
    border: none;
    border-radius: 5px;
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ticket-modal__btn:hover {
    opacity: 0.85;
}

/* ================================================
   RESPONSIVE — Tablet (768px ~ 1199px)
   ================================================ */
@media only screen and (max-width: 1199px) {

    .ticket-main {
        padding: 0 24px 48px 24px;
        gap: 32px;
    }

    .ticket-img-wrap {
        flex: 0 0 240px;
        width: 240px;
    }

    .ticket-img-placeholder {
        width: 240px;
        height: 340px;
    }

    .ticket-info__title {
        font-size: 22px;
    }

    .ticket-divider {
        margin: 0 24px;
    }

    .ticket-tab-nav {
        padding: 0 24px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ticket-tab-nav::-webkit-scrollbar {
        display: none;
    }

    .ticket-tab-nav__item {
        font-size: 16px;
        padding: 0 18px;
    }

    .ticket-tab-nav__item:first-child {
        padding-left: 0;
    }

    .ticket-tab-content {
        padding: 16px 24px 48px 24px;
    }

    .ticket-img-tab-placeholder {
        min-height: 400px;
    }
}

/* ================================================
   RESPONSIVE — Mobile (~ 767px)
   ================================================ */
@media only screen and (max-width: 767px) {

    .ticket-main {
        flex-direction: column;
        padding: 0 16px 40px 16px;
        gap: 24px;
    }

    .ticket-img-wrap {
        flex: none;
        width: 100%;
    }

    .ticket-img-placeholder {
        width: 100%;
        height: 280px;
    }

    .ticket-info__title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .ticket-option__item {
        height: auto;
        min-height: 68px;
        padding: 12px 14px 10px 14px;
    }

    .ticket-option__name {
        font-size: 15px;
    }

    .ticket-option__date {
        font-size: 10px;
    }

    .ticket-option__price {
        font-size: 15px;
    }

    .ticket-option__limited {
        font-size: 10px;
    }

    .ticket-option__soldout {
        font-size: 10px;
    }

    .ticket-purchase {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ticket-purchase__btn {
        width: 100%;
        height: 44px;
        font-size: 15px;
    }

    .ticket-divider {
        margin: 0 16px;
    }

    .ticket-tab-nav {
        padding: 0 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ticket-tab-nav::-webkit-scrollbar {
        display: none;
    }

    .ticket-tab-nav__item {
        font-size: 14px;
        line-height: 36px;
        padding: 0 12px;
    }

    .ticket-tab-nav__item:first-child {
        padding-left: 0;
    }

    .ticket-tab-content {
        padding: 14px 16px 40px 16px;
    }

    .ticket-img-tab-placeholder {
        min-height: 260px;
    }

    .ticket-page-wrap {
        min-height: calc(100vh - 60px);
    }
}
