/* ♠️♥️♣️♦️ POKER TEXAS HOLD'EM - STYLES ♠️♥️♣️♦️ */

/* ==================== */
/* BOUTON PROMO POKER (dans casino) */
/* ==================== */

.poker-promo {
    background: linear-gradient(135deg, #1a472a 0%, #0e3320 100%);
    border: 5px solid #8b4513;
    text-align: center;
}

.btn-goto-poker {
    padding: 20px 50px;
    font-size: 1.5em;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    margin: 20px 0;
}

.btn-goto-poker:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.poker-promo-info {
    color: #ccc;
    font-size: 1.1em;
    margin-top: 15px;
    line-height: 1.6;
}

/* ==================== */
/* PAGE POKER */
/* ==================== */

.poker-page-header {
    text-align: center;
    margin-bottom: 30px;
}

.poker-page-header h2 {
    font-size: 2.5em;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.poker-tagline {
    font-size: 1.2em;
    color: #888;
}

/* ==================== */
/* LOBBY POKER */
/* ==================== */

.poker-lobby {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.poker-lobby h3 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.poker-lobby > p {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
}

.poker-lobby-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-poker-join,
.btn-poker-create {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-poker-join {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-poker-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-poker-create {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-poker-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* Tables disponibles */
.poker-tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.poker-table-card {
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #333;
}

.poker-table-card:hover:not(.full) {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #667eea;
}

.poker-table-card.full {
    opacity: 0.6;
    cursor: not-allowed;
}

.table-info h4 {
    margin-bottom: 10px;
    color: #fff;
}

.table-info p {
    margin: 5px 0;
    color: #ccc;
}

.table-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 10px;
}

.table-status.waiting {
    background: #ffd93d;
    color: #333;
}

.table-status.playing {
    background: #6bcf7f;
    color: #fff;
}

.btn-join-table {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-join-table:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.table-full {
    display: block;
    text-align: center;
    padding: 12px;
    margin-top: 15px;
    background: #444;
    color: #999;
    border-radius: 8px;
    font-weight: bold;
}

.no-tables,
.loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 1.1em;
}

/* ==================== */
/* TABLE DE POKER */
/* ==================== */

.poker-table-view {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.poker-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.poker-table-header h3 {
    font-size: 2em;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-leave-table {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-leave-table:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

/* Info de la table */
.poker-table-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.info-item .label {
    color: #888;
    font-size: 0.9em;
    text-transform: uppercase;
}

.info-item .value {
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
}

.pot-amount {
    color: #ffd93d;
    text-shadow: 0 2px 10px rgba(255, 217, 61, 0.5);
}

/* Zone principale de jeu */
.poker-table-main {
    background: linear-gradient(135deg, #1a472a 0%, #0e3320 100%);
    border: 10px solid #8b4513;
    border-radius: 200px;
    padding: 50px;
    min-height: 500px;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5),
                0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
}

/* Cartes communes */
.community-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    min-height: 120px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.no-cards {
    font-size: 3em;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 10px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* ==================== */
/* CARTES */
/* ==================== */

.poker-card {
    width: 80px;
    height: 112px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
    border: 2px solid #333;
}

.poker-card:hover {
    transform: translateY(-5px);
}

.poker-card.red {
    color: #e74c3c;
}

.poker-card.black {
    color: #2c3e50;
}

.card-value {
    font-size: 2em;
    font-weight: bold;
}

.card-suit {
    font-size: 2.5em;
}

.hidden-cards {
    font-size: 2.5em;
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== */
/* JOUEURS */
/* ==================== */

.poker-players {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.poker-player {
    background: linear-gradient(135deg, #2c2c2c, #1e1e1e);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

.poker-player.active {
    border-color: #ffd93d;
    box-shadow: 0 0 20px rgba(255, 217, 61, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 217, 61, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 217, 61, 0.8);
    }
}

.poker-player.me {
    border-color: #667eea;
}

.poker-player.folded {
    opacity: 0.4;
}

.folded-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 10px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #444;
    position: relative;
    border: 3px solid #667eea;
}

.dealer-button {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    background: #ffd93d;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.player-details {
    flex: 1;
}

.player-name {
    font-weight: bold;
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.player-chips {
    color: #6bcf7f;
    font-weight: bold;
}

.player-bet {
    color: #ffd93d;
    font-size: 0.9em;
    margin-top: 3px;
}

.player-cards {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ==================== */
/* ACTIONS DU JOUEUR */
/* ==================== */

.poker-actions {
    background: linear-gradient(135deg, #2c2c2c, #1e1e1e);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.poker-actions.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.waiting-turn {
    text-align: center;
    color: #888;
    font-size: 1.2em;
    padding: 20px;
}

/* Timer de tour */
#turnTimer {
    font-weight: bold;
    font-size: 1.3em;
    transition: color 0.3s ease;
}

/* Indicateur de tour */
.turn-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #ff6b6b, #ff4444);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    animation: pulse 1.5s infinite;
    z-index: 10;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.7);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

/* Dernière action du joueur */
.player-last-action {
    font-size: 0.85em;
    color: #ffd700;
    margin-top: 3px;
    font-weight: bold;
}

.player-bet {
    font-size: 0.9em;
    color: #4ecdc4;
    margin-top: 3px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-action {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 150px;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-fold {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-fold:hover {
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

.btn-check {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.btn-check:hover {
    box-shadow: 0 6px 15px rgba(149, 165, 166, 0.4);
}

.btn-call {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-call:hover {
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.btn-bet,
.btn-raise {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.btn-bet:hover,
.btn-raise:hover {
    box-shadow: 0 6px 15px rgba(243, 156, 18, 0.4);
}

.btn-allin {
    background: linear-gradient(135deg, #e74c3c, #ff6b6b);
    color: white;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 8px 20px rgba(231, 76, 60, 0.8);
    }
}

.btn-allin:hover {
    animation: none;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.6);
}

/* ==================== */
/* MESSAGES */
/* ==================== */

.waiting-players {
    text-align: center;
    padding: 30px;
    background: rgba(255, 217, 61, 0.1);
    border-radius: 10px;
    color: #ffd93d;
    font-size: 1.2em;
    margin-top: 20px;
}

.poker-loading {
    text-align: center;
    padding: 60px;
    color: #888;
    font-size: 1.3em;
}

/* ==================== */
/* RESPONSIVE */
/* ==================== */

@media (max-width: 768px) {
    .poker-table-main {
        border-radius: 100px;
        padding: 30px 20px;
    }

    .poker-players {
        grid-template-columns: 1fr;
    }

    .community-cards {
        gap: 8px;
    }

    .poker-card {
        width: 60px;
        height: 84px;
    }

    .card-value {
        font-size: 1.5em;
    }

    .card-suit {
        font-size: 2em;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
    }

    .poker-lobby-actions {
        flex-direction: column;
    }

    .btn-poker-join,
    .btn-poker-create {
        width: 100%;
    }
}

/* ==================== */
/* ANIMATIONS */
/* ==================== */

@keyframes cardDeal {
    from {
        transform: translateY(-100px) rotateY(180deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotateY(0);
        opacity: 1;
    }
}

.poker-card {
    animation: cardDeal 0.5s ease-out;
}

@keyframes chipSlide {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.player-bet {
    animation: chipSlide 0.3s ease-out;
}

