/**
 * Estilos para notificaciones WebSocket en Lobby
 */

/* Notificación de jugador */
.poker-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    max-width: 300px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: auto;
}

.poker-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Variante: Jugador se unió */
.poker-notification-joined {
    border-left: 4px solid #28a745;
    background: #f0f9f6;
}

.poker-notification-joined .notification-icon {
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

.poker-notification-joined .notification-text {
    color: #1a5f3f;
}

/* Variante: Jugador se fue */
.poker-notification-left {
    border-left: 4px solid #ffc107;
    background: #fff9f0;
}

.poker-notification-left .notification-icon {
    color: #ffc107;
    font-weight: bold;
    font-size: 16px;
}

.poker-notification-left .notification-text {
    color: #8b6f13;
}

/* Actualizar mesa en tiempo real */
.poker-table-card {
    transition: all 0.3s ease;
}

.poker-table-card.updating {
    animation: pulse-card 0.5s ease;
}

@keyframes pulse-card {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Badge de mesa llena */
.poker-info-value.full-table {
    color: #dc3545;
    font-weight: bold;
}

/* Estado de botón cuando mesa está llena */
.join-table-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.join-table-btn:disabled:hover {
    background: #6c757d;
}

/* Indicador de actualización en vivo */
.poker-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
}

.poker-live-indicator::before {
    content: '●';
    animation: pulse-dot 1.5s ease-in-out infinite;
}

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

/* Estado de carga */
.poker-section.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Mensaje de estado de WebSocket */
.poker-ws-status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: none;
    gap: 8px;
    align-items: center;
    z-index: 9998;
}

.poker-ws-status.connected {
    display: flex;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.poker-ws-status.disconnected {
    display: flex;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.poker-ws-status::before {
    content: '●';
    font-size: 8px;
}

.poker-ws-status.disconnected::before {
    animation: none;
}

.poker-ws-status.connected::before {
    animation: pulse-dot 1.5s ease-in-out infinite;
}
