/**
 * Poker Lobby - Estilo PokerStars
 * Layout: Izquierda (lista mesas) | Derecha (jugadores)
 */

/* Layout dividido */
.poker-pokerstars-layout .poker-lobby-split {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    height: calc(100vh - 250px);
}

/* IZQUIERDA: Lista de mesas */
.poker-tables-list {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.poker-tables-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr 1fr;
    gap: 10px;
    padding: 12px 20px;
    background: #252525;
    border-bottom: 2px solid #333;
    font-weight: 600;
    font-size: 13px;
    color: #aaa;
    text-transform: uppercase;
}

.poker-tables-body {
    overflow-y: auto;
    flex: 1;
}

.poker-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr 1fr;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid #2a2a2a;
    align-items: center;
    transition: background 0.2s;
    cursor: pointer;
}

.poker-table-row:hover {
    background: #252525;
}

.poker-table-row.active {
    background: #2a4a2a;
    border-left: 3px solid #00ff88;
}

.poker-table-col {
    color: #ddd;
    font-size: 14px;
}

.poker-table-name {
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-icon {
    color: #00ff88;
    font-size: 18px;
}

.badge-featured {
    color: #ffd700;
    font-size: 16px;
}

.poker-stakes {
    color: #00ff88;
    font-weight: 500;
}

.poker-players {
    color: #aaa;
}

.poker-players .players-count {
    color: #00ff88;
    font-weight: 600;
}

.poker-btn-join {
    background: #00a859;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s;
}

.poker-btn-join:hover {
    background: #00c966;
}

.poker-btn-join:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
}

/* DERECHA: Panel de jugadores */
.poker-players-panel {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.poker-players-header {
    background: #252525;
    padding: 15px 20px;
    border-bottom: 2px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.poker-players-header h3 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

.players-online {
    color: #00ff88;
    font-size: 13px;
}

.poker-players-list {
    overflow-y: auto;
    flex: 1;
    padding: 10px;
}

.poker-empty-players {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 14px;
}

.poker-player-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #2a2a2a;
    gap: 12px;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a859, #00ff88);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.player-info {
    flex: 1;
}

.player-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.player-seat {
    color: #aaa;
    font-size: 12px;
}

.player-stack {
    color: #00ff88;
    font-weight: 600;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
    .poker-lobby-split {
        grid-template-columns: 1fr;
    }
    
    .poker-players-panel {
        display: none;
    }
}

@media (max-width: 768px) {
    .poker-tables-header {
        grid-template-columns: 2fr 1fr 1fr;
        font-size: 11px;
    }
    
    .poker-table-row {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .poker-table-col:nth-child(2),
    .poker-table-col:nth-child(3) {
        display: none;
    }
}
