/* ==========================================================
   STYLE.CSS - VERSÃO 3.1 FINAL (APENAS PARA A ROLETA)
   ========================================================== */

:root {
    --primary: #FFD700; 
    --secondary: #00ff88; 
    --danger: #e74c3c;
    --dark: #101015;
    --darker: #0A0A0C;
    --text-light: #EAEAEA;
    --text-muted: #999;
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --header-height: 70px;
    --main-padding: 24px;
    --border-radius: 12px;
    --info-column-width: 380px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--dark);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- EFEITOS DE FUNDO --- */
.dynamic-bg, .particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.gradient-overlay { position: absolute; width: 200%; height: 200%; top: -50%; left: -50%; background: radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.08) 0%, transparent 25%), radial-gradient(circle at 75% 75%, rgba(0, 255, 136, 0.08) 0%, transparent 25%); animation: gradientMove 20s ease-in-out infinite alternate; }
@keyframes gradientMove { from { transform: translate(0, 0); } to { transform: translate(-25%, -25%); } }

/* --- CABEÇALHO --- */
.header { height: var(--header-height); display: flex; align-items: center; justify-content: center; background-color: var(--darker); border-bottom: 1px solid var(--glass-border); flex-shrink: 0; }
.header h1 { font-family: 'Oswald', sans-serif; font-size: 2rem; color: var(--primary); text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }

/* --- ESTRUTURA DO GRID PRINCIPAL --- */
.main-container { display: grid; grid-template-columns: 1fr var(--info-column-width) var(--info-column-width); gap: var(--main-padding); padding: var(--main-padding); flex-grow: 1; max-width: 1920px; margin: 0 auto; height: calc(100vh - var(--header-height)); justify-content: center; }

/* --- COLUNA 1: ROLETA --- */
.roulette-section { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; min-width: 0; }
.roulette-container { position: relative; width: 100%; max-width: 80vh; aspect-ratio: 1 / 1; display: grid; place-items: center; animation: idleRouletteFloat 6s ease-in-out infinite alternate; }
#wheelCanvas { width: 100%; height: 100%; display: block; border: 14px solid #3a2a1e; border-radius: 50%; box-shadow: inset 0 0 40px #000, 0 0 50px rgba(0, 0, 0, 0.8); }
.pointer { position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%) rotate(180deg); width: 45px; height: 45px; z-index: 10; animation: pointerGlow 2.5s ease-in-out infinite alternate; }
.pointer svg polygon { fill: var(--secondary); }
#center-roulette-number { position: absolute; font-family: 'Oswald', sans-serif; font-size: clamp(3rem, 10vw, 6rem); font-weight: 700; color: white; text-shadow: 0 0 20px white; z-index: 5; }
#game-status-display { font-size: 1.3rem; font-weight: 600; color: var(--primary); background: var(--darker); padding: 10px 25px; border-radius: 8px; border: 1px solid var(--primary); text-shadow: 0 0 8px var(--primary); text-align: center; }
.spin-button { display: none; }

/* --- COLUNAS 2 E 3 (INFORMAÇÕES) --- */
.middle-column, .history-card { display: flex; flex-direction: column; gap: var(--main-padding); overflow: hidden; height: 100%; }
.history-card { gap: 0; }
.info-card { background: transparent; border: 1px solid var(--glass-border); border-radius: var(--border-radius); padding: 20px; width: 100%; display: flex; flex-direction: column; overflow: hidden; }
.info-card h2 { font-size: 1.1rem; font-weight: 600; color: var(--text-light); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--glass-border); display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.info-card ul { list-style: none; padding: 0; margin: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--secondary) transparent; }
.info-card ul::-webkit-scrollbar { width: 5px; }
.info-card ul::-webkit-scrollbar-track { background: transparent; }
.info-card ul::-webkit-scrollbar-thumb { background-color: var(--secondary); border-radius: 5px; }
.prize-info { flex-shrink: 0; }
.prize-info ul li { padding: 6px 0; font-size: 0.9rem; display: flex; justify-content: space-between; color: var(--text-muted); }
.prize-multiplier { font-weight: 700; color: var(--secondary); }
.current-draw { flex-shrink: 0; }
.draw-details { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.9rem; color: var(--text-muted); }
.winners-section, .history-card { flex-grow: 1; min-height: 0; }
.winners-section ul, .history-list { padding: 5px; }
.winners-section li, .history-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 8px; margin-bottom: 8px; font-size: 0.85rem; color: var(--text-muted); background: rgba(255,255,255,0.03); border-radius: 6px; }
.history-draw-id { font-weight: bold; color: var(--text-light); }
.history-time { font-size: 0.8rem; }
.history-numbers-container, .current-draw-numbers-container { display: flex; gap: 8px; }
.current-draw-number-box, .history-number-box { width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.1rem; font-weight: 700; background-color: var(--darker); border: 1px solid var(--secondary); border-radius: 6px; color: var(--text-light); flex-shrink: 0; }

/* --- NOTIFICAÇÃO TOAST --- */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 1001; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.toast { background: linear-gradient(135deg, #00ff88, #27ae60); color: #fff; padding: 15px 25px; border-radius: 10px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6); text-shadow: 1px 1px 2px rgba(0,0,0,0.3); font-weight: 600; border-left: 4px solid #fff; opacity: 0; transform: translateX(120%); transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); }
.toast.show { opacity: 1; transform: translateX(0); }

/* --- NOTIFICAÇÃO DE SORTEIO GIGANTE --- */
.draw-notification-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; text-align: center; animation: fadeInOverlay 0.5s ease-out; }
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
.draw-notification-overlay h2 { font-size: 2.5rem; color: var(--primary); text-shadow: 0 0 15px var(--primary); margin-bottom: 30px; text-transform: uppercase; letter-spacing: 2px; }
.draw-notification-numbers { display: flex; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; justify-content: center; }
.draw-notification-number-box { background: var(--darker); border: 3px solid var(--secondary); border-radius: 15px; width: 120px; height: 120px; display: flex; justify-content: center; align-items: center; font-size: 4rem; font-weight: 700; font-family: 'Oswald', sans-serif; color: var(--secondary); text-shadow: 0 0 20px var(--secondary); box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 15px rgba(0, 255, 136, 0.2); transform: translateY(20px) scale(0.8); opacity: 0; animation: popInNumber 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards; }
.draw-notification-number-box:nth-child(1) { animation-delay: 0.2s; }
.draw-notification-number-box:nth-child(2) { animation-delay: 0.4s; }
.draw-notification-number-box:nth-child(3) { animation-delay: 0.6s; }
.draw-notification-number-box:nth-child(4) { animation-delay: 0.8s; }
.draw-notification-number-box:nth-child(5) { animation-delay: 1.0s; }
@keyframes popInNumber { to { transform: translateY(0) scale(1); opacity: 1; } }

/* --- ANIMAÇÕES GERAIS --- */
@keyframes idleRouletteFloat { from { transform: scale(1) translateY(0); } to { transform: scale(1.01) translateY(-8px); } }
@keyframes pointerGlow { from { filter: drop-shadow(0 0 6px var(--secondary)); } to { filter: drop-shadow(0 0 16px var(--secondary)); } }
@keyframes pulse { 0% { box-shadow: 0 0 8px var(--primary); transform: scale(1); } 50% { box-shadow: 0 0 16px var(--primary); transform: scale(1.03); } 100% { box-shadow: 0 0 8px var(--primary); transform: scale(1); } }

/* --- RESPONSIVIDADE --- */
@media (max-width: 1280px) { body { overflow-y: auto; } .main-container { grid-template-columns: 1fr; height: auto; } .roulette-section { max-width: 500px; margin: 0 auto; order: -1; } .middle-column, .history-card { order: 1; } }
@media (max-width: 768px) { :root { --main-padding: 15px; } .roulette-section { max-width: 400px; } .current-draw-number-box, .history-number-box { width: 38px; height: 38px; font-size: 1rem; } .draw-notification-overlay h2 { font-size: 1.8rem; } .draw-notification-number-box { width: 60px; height: 60px; font-size: 2rem; } }