/* /var/www/html/public/css/roleta.css */
.roleta-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    background: linear-gradient(180deg, #111625 0%, #080c14 100%);
    border: 2px solid #daa520;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.2), inset 0 0 30px rgba(0, 0, 0, 0.8);
    font-family: 'Cinzel', serif, sans-serif;
    color: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.roleta-header {
    text-align: center;
    padding: 15px;
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.15), transparent);
    border-bottom: 1px solid rgba(218, 165, 32, 0.3);
}

.roleta-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    margin: 0;
}

.roleta-subtitle {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 5px;
}

.roleta-grid-wrapper {
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.roleta-grid {
    display: grid;
    grid-template-columns: repeat(3, 64px);
    grid-template-rows: repeat(3, 64px);
    gap: 6px;
    width: 204px;
    height: 204px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.roleta-slot {
    width: 64px;
    height: 64px;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(218, 165, 32, 0.4);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.9);
    position: relative;
    overflow: hidden;
}

.roleta-slot img {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.9));
    transition: transform 0.3s ease;
    z-index: 2;
}

/* Animações e Efeitos */
@keyframes spin-down {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

@keyframes spin-up {
    0% { transform: translateY(100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

/* Coluna 0: Para Baixo */
.spinning-col-0 .roleta-slot:nth-child(3n+1) img {
    animation: spin-down 0.12s infinite linear;
}
.slowing-col-0 .roleta-slot:nth-child(3n+1) img {
    animation: spin-down 0.4s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Coluna 1: Para Cima (Alternado) */
.spinning-col-1 .roleta-slot:nth-child(3n+2) img {
    animation: spin-up 0.12s infinite linear;
}
.slowing-col-1 .roleta-slot:nth-child(3n+2) img {
    animation: spin-up 0.4s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Coluna 2: Para Baixo */
.spinning-col-2 .roleta-slot:nth-child(3n+3) img {
    animation: spin-down 0.12s infinite linear;
}
.slowing-col-2 .roleta-slot:nth-child(3n+3) img {
    animation: spin-down 0.4s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.roleta-slot.winner {
    background: rgba(218, 165, 32, 0.2);
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.3);
}

.roleta-slot.winner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 8px;
    box-shadow: inset 0 0 10px #fff;
    animation: pulseGlow 1.5s infinite;
    z-index: 1;
}

@keyframes pulseGlow {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Painel de Aposta */
.roleta-controls {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(218, 165, 32, 0.3);
}

.roleta-info-bar {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.roleta-info-bar strong {
    color: #ffd700;
}

.bet-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-bet {
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.5);
    color: #ffd700;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-bet:hover:not(:disabled) {
    background: rgba(218, 165, 32, 0.3);
    box-shadow: 0 0 8px rgba(218, 165, 32, 0.4);
}

.btn-bet:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bet-input {
    width: 80px;
    height: 35px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(218, 165, 32, 0.5);
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
}

.quick-bets {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.btn-quick {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-quick:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-quick.max {
    background: rgba(218, 165, 32, 0.2);
    border-color: rgba(218, 165, 32, 0.5);
    color: #ffd700;
}

.btn-spin {
    width: 100%;
    padding: 15px;
    background: linear-gradient(180deg, #d4af37 0%, #aa8014 100%);
    border: 1px solid #ffdf00;
    color: #000;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 2px 5px rgba(255,255,255,0.4);
    transition: all 0.2s;
    font-family: 'Cinzel', serif;
}

.btn-spin:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(218, 165, 32, 0.4), inset 0 2px 5px rgba(255,255,255,0.6);
}

.btn-spin:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-spin:disabled {
    background: linear-gradient(180deg, #555 0%, #333 100%);
    border-color: #666;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

/* Overlay Bloqueado */
.roleta-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.roleta-overlay p {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Cinzel', serif;
}

.btn-login {
    background: #28a745;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid #1e7e34;
}

/* Histórico e Modal */
.roleta-footer {
    padding: 10px;
    text-align: center;
    background: rgba(0,0,0,0.6);
    border-top: 1px solid #222;
}

.btn-modal {
    background: transparent;
    border: none;
    color: #cbd5e1;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
}

.roleta-msg-box {
    text-align: center;
    min-height: 25px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
}
.msg-win { color: #4ade80; text-shadow: 0 0 5px #4ade80; }
.msg-lose { color: #9ca3af; }
.msg-error { color: #f87171; }
