/* Archivo: css/casino.css */
/* Estilos para páginas de casino y juegos */

/* ==================== CONTAINER PRINCIPAL ==================== */
.casino-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.casino-header {
    text-align: center;
    margin-bottom: 40px;
}

.casino-header h1 {
    font-size: 2.5rem;
    color: #00ff88;
    margin-bottom: 10px;
}

.casino-header p {
    color: #707a8a;
    font-size: 1.1rem;
}

/* ==================== FILTROS ==================== */
.casino-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.casino-filters select,
.casino-filters input {
    padding: 10px 15px;
    background-color: #161a1e;
    border: 1px solid #2d3339;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    min-width: 200px;
}

.casino-filters input[type="search"] {
    flex: 1;
    min-width: 250px;
}

.casino-filters select:focus,
.casino-filters input:focus {
    outline: none;
    border-color: #00ff88;
}

/* ==================== GRID DE JUEGOS ==================== */
#games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.game-card {
    background: linear-gradient(135deg, #161a1e 0%, #1a1f24 100%);
    border: 1px solid #2d3339;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.game-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #0b0e11;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff0040 0%, #ff4d4d 100%);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 0, 64, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 0, 64, 0.8);
    }
}

.game-info {
    padding: 15px;
}

.game-title {
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0 0 8px 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-provider {
    color: #00ff88;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-actions {
    display: flex;
    gap: 10px;
    padding: 0 15px 15px;
}

.btn-play-real,
.btn-play-demo {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-play-real {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6f 100%);
    color: #053d2d;
}

.btn-play-real:hover {
    background: linear-gradient(135deg, #00cc6f 0%, #00ff88 100%);
    transform: scale(1.05);
}

.btn-play-demo {
    background: transparent;
    color: #00ff88;
    border: 1px solid #00ff88;
}

.btn-play-demo:hover {
    background: rgba(0, 255, 136, 0.1);
}

/* ==================== MODAL DEL JUEGO ==================== */
#game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

#game-modal.active {
    display: flex;
}

.game-modal-content {
    width: 95%;
    height: 90%;
    max-width: 1400px;
    background: #0b0e11;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.game-modal-header {
    background: linear-gradient(135deg, #053d2d 0%, #032a1f 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #00ff88;
}

#game-modal-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0 10px;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    color: #ff4d4d;
    transform: scale(1.2);
}

#game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000000;
}

.game-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ff88;
    font-size: 1.5rem;
    z-index: 10;
}

/* ==================== ESTADOS ==================== */
#games-grid .loading-spinner,
#games-grid .no-games,
#games-grid .error-message {
    text-align: center;
    padding: 60px 20px;
    color: #707a8a;
    font-size: 1.2rem;
}

#games-grid .loading-spinner {
    color: #00ff88;
}

#games-grid .error-message {
    color: #ff4d4d;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .casino-header h1 {
        font-size: 2rem;
    }

    #games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .game-image {
        height: 120px;
    }

    .game-title {
        font-size: 0.95rem;
    }

    .casino-filters {
        flex-direction: column;
    }

    .casino-filters select,
    .casino-filters input {
        width: 100%;
        min-width: auto;
    }

    .game-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .game-modal-header {
        padding: 12px 15px;
    }

    #game-modal-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .game-actions {
        flex-direction: column;
    }

    .btn-play-real,
    .btn-play-demo {
        width: 100%;
    }
}