/* Casino Elementor Pro - Estilos Principais */

:root {
    /* Cores principais */
    --casino-primary: #ffcc00;
    --casino-secondary: #ff3366;
    --casino-accent: #3366ff;
    --casino-success: #00cc66;
    --casino-danger: #ff3333;
    --casino-dark: #0a2e38;
    --casino-darker: #061c24;
    --casino-light: #f8f9fa;
    
    /* Sombras */
    --casino-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --casino-glow: 0 0 20px rgba(255, 204, 0, 0.5);
    --casino-inner-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
    
    /* Transições */
    --casino-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset e base */
.casino-elementor-widget {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.casino-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: var(--casino-darker);
    color: white;
    border-radius: 20px;
    box-shadow: var(--casino-shadow);
}

/* Loading */
.casino-loading {
    text-align: center;
    padding: 60px 20px;
    background: var(--casino-darker);
    border-radius: 20px;
}

.casino-loading .spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 204, 0, 0.3);
    border-top-color: var(--casino-primary);
    border-radius: 50%;
    animation: casino-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes casino-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Temas */
.casino-theme-dark .casino-container {
    background: linear-gradient(135deg, var(--casino-darker) 0%, #1a1a2e 100%);
    border: 2px solid var(--casino-primary);
}

.casino-theme-light .casino-container {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #333;
    border: 2px solid var(--casino-accent);
}

.casino-theme-luxury .casino-container {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    border: 3px solid gold;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
}

/* Painel de Controle */
.casino-control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--casino-primary);
}

.casino-balance {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--casino-primary);
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.casino-balance-amount {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    border: 2px solid var(--casino-primary);
    animation: balance-pulse 2s infinite;
}

@keyframes balance-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 204, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 204, 0, 0.6); }
}

.casino-buttons {
    display: flex;
    gap: 15px;
}

.casino-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--casino-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.casino-btn-primary {
    background: linear-gradient(135deg, var(--casino-primary) 0%, #ff9900 100%);
    color: #000;
}

.casino-btn-secondary {
    background: linear-gradient(135deg, var(--casino-accent) 0%, #6633ff 100%);
    color: white;
}

.casino-btn-success {
    background: linear-gradient(135deg, var(--casino-success) 0%, #00a854 100%);
    color: white;
}

.casino-btn-danger {
    background: linear-gradient(135deg, var(--casino-danger) 0%, #cc0000 100%);
    color: white;
}

.casino-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.casino-btn:active {
    transform: translateY(-1px);
}

/* Área de Jogo */
.casino-game-area {
    padding: 30px;
    min-height: 500px;
}

/* Roleta */
.casino-roulette {
    text-align: center;
}

.roulette-wheel {
    width: 300px;
    height: 300px;
    margin: 0 auto 40px;
    position: relative;
    border-radius: 50%;
    background: #1a1a1a;
    border: 10px solid #333;
    overflow: hidden;
}

.roulette-ball {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.roulette-table {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 2px;
    max-width: 600px;
    margin: 0 auto;
    background: #1a7c3a;
    padding: 20px;
    border-radius: 10px;
    border: 3px solid #8b4513;
}

.roulette-number {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: var(--casino-transition);
    border-radius: 4px;
}

.roulette-number:hover {
    transform: scale(1.1);
}

.roulette-number.green { background: #00a854; }
.roulette-number.red { background: #ff3333; }
.roulette-number.black { background: #333; }

/* Slots */
.casino-slots {
    text-align: center;
}

.slots-machine {
    max-width: 500px;
    margin: 0 auto 40px;
    background: #222;
    padding: 30px;
    border-radius: 15px;
    border: 5px solid var(--casino-primary);
}

.slots-reels {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    perspective: 1000px;
}

.slots-reel {
    width: 100px;
    height: 100px;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 3px solid #444;
}

.slots-symbol {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: absolute;
    top: 0;
    left: 0;
}

.slots-lever {
    width: 60px;
    height: 120px;
    background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
    margin: 0 auto;
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    transition: var(--casino-transition);
}

.slots-lever:hover {
    background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
}

.slots-lever:active {
    transform: translateY(20px);
}

/* Blackjack */
.casino-blackjack {
    max-width: 800px;
    margin: 0 auto;
}

.blackjack-table {
    background: #1a7c3a;
    padding: 40px;
    border-radius: 20px;
    border: 5px solid #8b4513;
    position: relative;
    overflow: hidden;
}

.blackjack-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.blackjack-hands {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.blackjack-hand {
    min-height: 120px;
}

.blackjack-cards {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.blackjack-card {
    width: 80px;
    height: 120px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.blackjack-card.hearts,
.blackjack-card.diamonds {
    color: #ff3333;
}

.blackjack-card.clubs,
.blackjack-card.spades {
    color: #000;
}

.blackjack-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Painel de Apostas */
.casino-bet-panel {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
}

.bet-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.bet-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--casino-primary);
    min-width: 100px;
    text-align: center;
}

.bet-buttons {
    display: flex;
    gap: 10px;
}

.bet-quick {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--casino-primary);
    color: var(--casino-primary);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--casino-transition);
}

.bet-quick:hover {
    background: var(--casino-primary);
    color: #000;
}

/* Animação de Vitória */
@keyframes win-celebration {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.casino-win-animation {
    animation: win-celebration 0.5s ease-in-out 3;
}

/* Modal */
.casino-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.casino-modal.active {
    display: flex;
    animation: modal-fade-in 0.3s;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--casino-darker);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    border: 3px solid var(--casino-primary);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
    .casino-control-panel {
        flex-direction: column;
        gap: 20px;
    }
    
    .roulette-wheel {
        width: 250px;
        height: 250px;
    }
    
    .roulette-table {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .slots-reel {
        width: 70px;
        height: 70px;
    }
    
    .blackjack-card {
        width: 60px;
        height: 90px;
        font-size: 1.5rem;
    }
    
    .casino-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .casino-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Notificações */
.casino-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: var(--casino-success);
    color: white;
    border-radius: 10px;
    box-shadow: var(--casino-shadow);
    z-index: 10001;
    animation: slide-in 0.3s, slide-out 0.3s 2.7s;
    max-width: 300px;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Efeitos Sonoros */
.casino-sound-control {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.sound-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--casino-primary);
    color: var(--casino-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--casino-transition);
}

.sound-toggle:hover {
    background: var(--casino-primary);
    color: #000;
}

/* Animações de texto */
@keyframes text-glow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 204, 0, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 204, 0, 0.8); }
}

.casino-glow-text {
    animation: text-glow 2s infinite;
}

/* Progress bars */
.casino-progress {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin: 20px 0;
}

.casino-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--casino-primary) 0%, #ff9900 100%);
    border-radius: 5px;
    transition: width 0.3s;
}

/* Tooltips */
[data-casino-tooltip] {
    position: relative;
    cursor: help;
}

[data-casino-tooltip]:hover::before {
    content: attr(data-casino-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}