/* 
    ARENA WIN - Design System Premium (Glassmorphism)
    Desenvolvido por ZUKON TECH © 2026
*/

:root {
    /* Cores Premium HSL */
    --bg-dark: 215, 25%, 5%;        /* #090c10 */
    --card-bg: 215, 25%, 8%;       /* #0d1117 */
    --accent: 195, 100%, 50%;      /* #00d2ff */
    --accent-glow: 195, 100%, 50%, 0.3;
    --text-main: 210, 15%, 85%;    /* #c9d1d9 */
    --text-dim: 210, 10%, 60%;     /* #8b949e */
    --glass-bg: rgba(13, 17, 23, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

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

h1, h2, h3, .brand {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Layout Principal */
#app-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    width: 100%;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

/* Header & Branding */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: hsl(var(--accent));
    text-shadow: 0 0 15px var(--accent-glow);
}

/* Seletores de Modo */
.mode-selector {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 30px;
    width: 100%;
}

.mode-btn {
    flex: 1;
    min-width: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 12px 5px;
    border-radius: 15px;
    color: hsl(var(--text-main));
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.mode-btn span {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mode-btn i { font-size: 1.6rem; }

.mode-btn:hover {
    border-color: hsl(var(--accent));
    background: rgba(0, 210, 255, 0.05);
    transform: translateY(-5px);
}

.mode-btn.active {
    border-color: hsl(var(--accent));
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 0 20px var(--accent-glow);
}

.mode-btn i { font-size: 2rem; }

/* Display de Sorteio */
.draw-display {
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    font-weight: 700;
    text-align: center;
    color: white;
    background: radial-gradient(circle, rgba(0,210,255,0.15) 0%, transparent 70%);
    transition: all 0.5s ease;
    perspective: 1000px;
}

.draw-spinning {
    filter: blur(8px);
    opacity: 0.7;
    transform: scale(0.9);
    color: hsl(var(--accent));
}

.winner-anim {
    animation: winnerReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    text-shadow: 0 0 30px hsl(var(--accent)), 0 0 60px hsl(var(--accent));
    z-index: 10;
}

@keyframes winnerReveal {
    0% { transform: scale(0.5); opacity: 0; filter: blur(20px); }
    60% { transform: scale(1.2); filter: blur(0px); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseWinner {
    from { transform: scale(1); filter: brightness(1); }
    to { transform: scale(1.05); filter: brightness(1.3); }
}

/* Controles */
.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn-draw {
    background: hsl(var(--accent));
    color: hsl(var(--bg-dark));
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-draw:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Histórico Lateral */
.history-section {
    margin-top: 40px;
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.history-tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Footer Automático (ZUKON TECH) */
footer {
    margin-top: auto;
    padding: 30px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
}

/* Utilitários */
.hidden { display: none !important; }

/* Estilos Versão Galeria */
#result-img {
    max-height: 250px;
    max-width: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,210,255,0.3);
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#gallery-status {
    margin-top: 10px;
    font-size: 0.8rem;
    color: hsl(var(--accent));
    font-weight: 600;
}

.config-pane {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
