@import url("./seat-grid.css?v=20261007-2");

/* 자리 화면 공통 레이아웃. trap에서도 사용하므로 기존 URL을 유지한다. */
:root {
    --seat-bg: #090d16;
    --seat-panel: rgba(20, 28, 44, .94);
    --seat-panel-soft: rgba(255, 255, 255, .045);
    --seat-line: rgba(255, 255, 255, .1);
    --seat-text: #f7f9ff;
    --seat-muted: #9ca8bd;
    --seat-accent: #ffcc4d;
    --seat-accent-2: #ff8a5b;
    --seat-gok: #ffcf4a;
    --seat-gov: #7fc7ff;
}

* {
    box-sizing: border-box;
}

.seat-page-body {
    min-height: 100vh;
    margin: 0;
    color: var(--seat-text);
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 176, 66, .14), transparent 28rem),
        radial-gradient(circle at 90% 10%, rgba(72, 137, 255, .12), transparent 30rem),
        var(--seat-bg);
    font-family: Pretendard, "Noto Sans KR", Arial, sans-serif;
}

.seat-page {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 34px 0 70px;
}

.seat-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 30px;
    border: 1px solid var(--seat-line);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(31, 40, 60, .96), rgba(15, 21, 34, .96));
    box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

.seat-hero::after {
    position: absolute;
    right: -80px;
    bottom: -130px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 198, 71, .09);
    content: "";
}

.seat-hero-copy,
.seat-hero-logo {
    position: relative;
    z-index: 1;
}

.seat-eyebrow {
    margin: 0 0 7px;
    color: var(--seat-accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .16em;
}

.seat-hero h1 {
    margin: 0;
    font-size: clamp(28px, 5vw, 46px);
    letter-spacing: -.04em;
}

.seat-hero-copy > p:last-child {
    margin: 10px 0 0;
    color: var(--seat-muted);
}

.seat-hero-logo {
    width: min(240px, 34vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .25));
}

.seat-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 18px 0 12px;
}

.seat-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 58px;
    padding: 10px 14px;
    border: 1px solid var(--seat-line);
    border-radius: 16px;
    color: var(--seat-muted);
    background: var(--seat-panel);
    text-decoration: none;
    transition: border-color .16s ease, color .16s ease, transform .16s ease, background .16s ease;
}

.seat-tab:hover {
    color: var(--seat-text);
    border-color: rgba(255, 204, 77, .36);
    transform: translateY(-1px);
}

.seat-tab.is-active {
    color: #2b2107;
    border-color: transparent;
    background: linear-gradient(135deg, var(--seat-accent), #ffae4a);
    box-shadow: 0 10px 28px rgba(255, 174, 74, .18);
}

.seat-tab-alliance {
    min-width: 36px;
    padding: 4px 7px;
    border-radius: 999px;
    color: #101622;
    background: var(--seat-gok);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.seat-tab[href*="GOV"] .seat-tab-alliance {
    background: var(--seat-gov);
}

.seat-tab.is-active .seat-tab-alliance {
    background: rgba(255, 255, 255, .7);
}

.seat-tab-copy {
    min-width: 0;
}

.seat-tab-copy strong {
    display: block;
    font-size: clamp(.7rem, 1.4vw, .9rem);
    line-height: 1.15;
    word-break: keep-all;
}

.seat-tab-trap {
    display: block;
    margin-top: 3px;
    color: var(--seat-muted);
    font-size: .72rem;
    font-weight: 500;
}

.seat-tab.is-active .seat-tab-trap {
    color: rgba(43, 33, 7, .7);
}

.seat-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px 12px 18px;
    margin-bottom: 12px;
    border: 1px solid var(--seat-line);
    border-radius: 18px;
    background: rgba(13, 18, 29, .88);
    backdrop-filter: blur(14px);
}

.seat-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: #55df9b;
    box-shadow: 0 0 0 5px rgba(85, 223, 155, .09);
}

.seat-toolbar-copy {
    margin-left: 7px;
    color: var(--seat-muted);
    font-size: 13px;
}

.seat-links {
    display: flex;
    gap: 7px;
}

.seat-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--seat-line);
    border-radius: 11px;
    color: var(--seat-text);
    background: var(--seat-panel-soft);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.seat-link:hover {
    background: rgba(255, 255, 255, .09);
}

.seat-link img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
}

.seat-map-card {
    overflow: hidden;
    padding: 28px 20px 17px;
    border: 1px solid var(--seat-line);
    border-radius: 22px;
    background:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
        var(--seat-panel);
    background-size: 24px 24px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

.seat-map-scroll {
    overflow: auto;
    min-height: 900px;
    padding: 130px 140px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .025);
    scrollbar-color: rgba(255, 204, 77, .45) transparent;
}

.seat-map-help {
    margin: 14px 0 0;
    color: var(--seat-muted);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 820px) {
    .seat-page {
        width: min(100% - 18px, 1180px);
        padding-top: 12px;
    }

    .seat-hero {
        padding: 22px 20px;
        border-radius: 19px;
    }

    .seat-hero-logo {
        width: 125px;
    }

    .seat-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .seat-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .seat-links {
        width: 100%;
    }

    .seat-link {
        flex: 1;
    }

    .seat-map-card {
        padding: 10px 8px 14px;
    }

    .seat-map-scroll {
        position: relative;
        overflow: hidden;
        width: 100%;
        min-height: 0;
        padding: 0;
    }

    .rotate-wrapper {
        position: absolute;
        display: block;
        margin: 0;
        transform: rotate(45deg) scale(var(--seat-map-scale, 1));
        transform-origin: center center;
        will-change: transform;
    }

    .grid-table {
        table-layout: fixed;
    }
}

@media (max-width: 520px) {
    .seat-hero-logo {
        display: none;
    }

    .seat-tab {
        gap: 6px;
        padding: 8px;
        font-size: 13px;
    }

    .seat-toolbar-copy {
        display: block;
        margin: 5px 0 0 19px;
    }

    .seat-link {
        padding: 0 7px;
        font-size: 11px;
    }
}
