/* 
    ARENA MATCH - Design System Premium (Glassmorphism)
    Especializado para Amigo Secreto em Tempo Real
    Desenvolvido por ZUKON TECH © 2026
*/

:root {
    /* Cores Premium HSL - Tom Esmeralda/Dourado para Match */
    --bg-dark: 215, 25%, 5%;        
    --accent: 142, 70%, 50%;       /* Esmeralda */
    --accent-glow: 142, 70%, 50%, 0.3;
    --text-main: 210, 15%, 85%;    
    --text-dim: 210, 10%, 60%;     
    --glass-bg: rgba(13, 17, 23, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gold: 45, 100%, 50%;
}

* { 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;
}

#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 {
    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);
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.5s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.status-badge.connected {
    background: rgba(142, 70%, 50%, 0.1);
    color: hsl(var(--accent));
    border: 1px solid rgba(142, 70%, 50%, 0.2);
}
.status-badge.connected::before { background: hsl(var(--accent)); box-shadow: 0 0 8px hsl(var(--accent)); }
.status-badge.connecting {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
    animation: pulse 1.5s infinite;
}
.status-badge.connecting::before { background: var(--text-dim); }
.status-badge.disconnected {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 0, 0, 0.2);
}
.status-badge.disconnected::before { background: #ff4d4d; }

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

/* Modos Iniciais */
.welcome-screen {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.action-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.action-card:hover {
    border-color: hsl(var(--accent));
    background: rgba(142, 70%, 50%, 0.05);
    transform: translateY(-5px);
}

.action-card i { font-size: 3rem; }
.action-card h2 { font-size: 1.4rem; color: white; }
.action-card p { font-size: 0.9rem; color: var(--text-dim); }

/* QR Code & Admin */
#qrcode-container {
    background: white;
    padding: 15px;
    border-radius: 12px;
    display: inline-block;
    margin: 20px 0;
}

.session-badge {
    background: hsl(var(--accent));
    color: hsl(var(--bg-dark));
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Lista de Participantes */
.participant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.participant-tag {
    background: rgba(142, 70%, 50%, 0.1);
    border: 1px solid rgba(142, 70%, 50%, 0.3);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Formulários */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
}

input[type="text"] {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    padding: 12px 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: hsl(var(--accent));
    outline: none;
}

/* Botões */
.btn-primary {
    background: hsl(var(--accent));
    color: hsl(var(--bg-dark));
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

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

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
}

/* Resultado Final */
.reveal-box {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 1s ease;
}

.match-name {
    font-size: 3.5rem;
    font-weight: 800;
    color: hsl(var(--gold));
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    margin: 20px 0;
    display: block;
}

footer {
    margin-top: auto;
    padding: 30px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
}

.hidden { display: none !important; }

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