/* ==========================================
   OFFEYES — CS2 PREMIER STYLE VETO SCREEN
   ========================================== */

/* VETO HEADER — CS2 Style centered */
.veto-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
    margin-bottom: 8px;
}

.veto-header::before { display: none; }

.vh-team-name {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 1;
    padding: 16px 32px;
    min-width: 240px;
    text-align: center;
}

.vh-team-name.team-a {
    color: #4fc3f7;
    background: linear-gradient(135deg, rgba(79,195,247,0.15) 0%, transparent 100%);
    border-left: 3px solid #4fc3f7;
    text-shadow: 0 0 20px rgba(79,195,247,0.4);
}

.vh-team-name.team-b {
    color: #ef5350;
    background: linear-gradient(225deg, rgba(239,83,80,0.15) 0%, transparent 100%);
    border-right: 3px solid #ef5350;
    text-shadow: 0 0 20px rgba(239,83,80,0.4);
}

.vh-status-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 1;
    padding: 12px 40px;
    position: relative;
}

.vh-action-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
}

.vh-timer {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: none;
}

/* ── MATCH ROOM GRID — CS2 centered layout ── */
.match-room-grid {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 16px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── TEAM PANELS — Minimal dark style ── */
.team-panel {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
}

.team-a-panel { border-top: 3px solid #4fc3f7; }
.team-b-panel { border-top: 3px solid #ef5350; }

.team-panel-head {
    padding: 12px 16px;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-weight: 700;
    font-size: 0.75rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.team-roster {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
}

.player-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.15s;
}

.player-row:hover {
    background-color: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
}

.pr-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    border: none;
    color: #fff;
}

.team-a-panel .pr-avatar { background-color: rgba(79,195,247,0.2); color: #4fc3f7; }
.team-b-panel .pr-avatar { background-color: rgba(239,83,80,0.2); color: #ef5350; }

.pr-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pr-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
}

.pr-elo {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
}

.pr-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    opacity: 0.7;
}

/* ══════════════════════════════════════════
   MAP VETO POOL — CS2 Premier Single Column
   ══════════════════════════════════════════ */
.veto-pool-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
}

.map-pool-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

/* ── MAP CARD — CS2 Premier horizontal strip ── */
.map-card {
    position: relative;
    width: 100%;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s ease;
    background-color: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
}

.map-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    transition: opacity 0.2s;
    z-index: 0;
}

.map-name {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1px;
    width: 100%;
    text-align: left;
    background: transparent;
    text-shadow: none;
    transition: color 0.2s;
}

/* ── HOVER — subtle blue glow like CS2 ── */
.map-card:not(.banned):not(.picked):hover {
    border-color: rgba(79,195,247,0.4);
    background-color: rgba(79,195,247,0.06);
    box-shadow: inset 3px 0 0 #4fc3f7;
    transform: none;
}

.map-card:not(.banned):not(.picked):hover img {
    opacity: 0.3;
}

.map-card:not(.banned):not(.picked):hover .map-name {
    color: #fff;
}

/* ── BANNED STATE — CS2 strikethrough style ── */
.map-card.banned {
    cursor: default;
    border-color: transparent;
    opacity: 1;
    filter: none;
    background-color: rgba(255,255,255,0.015);
}

.map-card.banned img {
    opacity: 0.05;
    filter: grayscale(100%);
}

.map-card.banned .map-name {
    color: rgba(255,255,255,0.2);
    text-decoration: line-through;
    text-decoration-color: rgba(239,83,80,0.6);
    text-decoration-thickness: 2px;
}

.map-card.banned::after {
    display: none;
}

/* Ban indicator — team color stripe on left */
.map-card.banned .ban-cross {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 3px;
    height: 100%;
    z-index: 2;
    transform: none;
    animation: slideIn 0.3s ease forwards;
}

.ban-cross::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #ef5350;
    border-radius: 0;
    box-shadow: 0 0 12px rgba(239,83,80,0.5);
    transform: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.ban-cross::after { display: none; }

/* Ban label */
.map-card.banned .ban-label {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(239,83,80,0.7);
    animation: fadeInLabel 0.3s ease forwards;
}

/* Team A ban = blue stripe */
.map-card.banned-by-a .ban-cross::before {
    background-color: #4fc3f7;
    box-shadow: 0 0 12px rgba(79,195,247,0.5);
}

.map-card.banned-by-a .ban-label {
    color: rgba(79,195,247,0.7);
}

/* ── PICKED STATE — CS2 golden highlight ── */
.map-card.picked {
    height: 120px;
    border: 2px solid #ffd54f;
    background-color: rgba(255,213,79,0.08);
    box-shadow: 0 0 40px rgba(255,213,79,0.15), inset 0 0 40px rgba(255,213,79,0.05);
    cursor: default;
    animation: mapReveal 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.map-card.picked img {
    opacity: 0.4;
    filter: none;
}

.map-card.picked .map-name {
    font-size: 1.8rem;
    text-align: center;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ffd54f;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(255,213,79,0.4);
    text-decoration: none;
}

/* ── SERVER PANEL ── */
.server-details-panel {
    margin-top: 24px;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,213,79,0.3);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(255,213,79,0.08);
    animation: fadeIn 0.8s ease 0.5s both;
    width: 100%;
}

.server-details-panel h3 {
    color: #ffd54f;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: none;
}

.server-details-panel p {
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.connect-box {
    display: flex;
    background-color: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 4px;
    align-items: center;
}

.connect-box code {
    flex-grow: 1;
    color: #ffd54f;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.95rem;
    padding: 10px 16px;
    text-align: left;
    user-select: all;
}

.btn-copy {
    background-color: rgba(255,213,79,0.15);
    color: #ffd54f;
    border: 1px solid rgba(255,213,79,0.3);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-copy:hover {
    background-color: rgba(255,213,79,0.25);
}

/* ── VOTING SYSTEM ── */
.map-vote-container {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    z-index: 2;
}

.vote-avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-color: rgba(79,195,247,0.2);
    border: 1px solid rgba(79,195,247,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    margin-left: -4px;
    box-shadow: none;
    color: #4fc3f7;
}

/* ── ANIMATIONS ── */
@keyframes slideIn {
    0% { height: 0; }
    100% { height: 100%; }
}

@keyframes fadeInLabel {
    0% { opacity: 0; transform: translateY(-50%) translateX(10px); }
    100% { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@keyframes stomp {
    0% { height: 0; opacity: 0; }
    100% { height: 100%; opacity: 1; }
}

@keyframes mapReveal {
    0% { opacity: 0; transform: scaleY(0.5); }
    100% { opacity: 1; transform: scaleY(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .match-room-grid {
        grid-template-columns: 1fr;
    }
    .veto-pool-panel {
        order: -1;
    }
    .vh-team-name {
        font-size: 1rem;
        padding: 12px 16px;
        min-width: auto;
    }
}
