/*
 * Estilos para a Tela de Exibição de Microfones (Modo Colunas Fortes)
 * Arquivo: style.css
 * Local: /telao/mics/style.css
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100vh;
    background-color: #000000;
    font-family: 'Arial Black', Arial, sans-serif; /* Fonte mais grossa por padrão */
    overflow: hidden;
    color: white;
}

.mic-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch; /* Faz todos esticarem até a altura total */
    flex-wrap: nowrap; 
    padding: 0; /* Sem bordas, vai de ponta a ponta */
    gap: 0; /* Colunas coladas umas nas outras */
}

.mic-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1; /* Divide o espaço igualmente */
    height: 100vh; /* Altura total da tela */
    transition: all 0.3s ease;
    border-radius: 0; /* Cantos retos para formar colunas */
    padding: 2vh;
}

.mic-wrapper.is-hidden {
    display: none;
}

/* --- TEMAS DE CORES FORTES --- */

/* Microfone PRETO (Fundo bem preto) */
.mic-wrapper.theme-preto {
    background-color: #000000;
    border-right: 1px solid #333; /* Pequena separação se tiver outro preto ao lado */
    color: #ffffff; /* Texto branco para contraste */
}
.mic-wrapper.theme-preto .mic-icon,
.mic-wrapper.theme-preto .mic-fixed-label { color: #ffffff; }

/* Microfone VERMELHO (Fundo vermelho forte) */
.mic-wrapper.theme-vermelho {
    background-color: #cc0000; /* Vermelho forte */
    color: #ffffff; /* Texto branco */
}
.mic-wrapper.theme-vermelho .mic-icon,
.mic-wrapper.theme-vermelho .mic-fixed-label { color: #ffffff; }

/* Microfone BRANCO (Fundo branco puro) */
.mic-wrapper.theme-branco {
    background-color: #ffffff;
    color: #000000; /* Texto PRETO para aparecer no fundo branco */
}
.mic-wrapper.theme-branco .mic-icon,
.mic-wrapper.theme-branco .mic-fixed-label { color: #000000; }

/* Microfone AZUL (Fundo azul forte) */
.mic-wrapper.theme-azul {
    background-color: #0044ff; /* Azul forte */
    color: #ffffff; /* Texto branco */
}
.mic-wrapper.theme-azul .mic-icon,
.mic-wrapper.theme-azul .mic-fixed-label { color: #ffffff; }


/* --- TIPOGRAFIA --- */

/* Nome Editável (EM CIMA) */
.mic-name {
    font-size: 3.5vw;
    font-weight: 900; /* Máximo negrito */
    margin-bottom: 6vh;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
    /* Sombra suave para ajudar na leitura se necessário */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Ícone (NO MEIO) */
.mic-icon {
    font-size: 15vw; /* Ícone maior para preencher a coluna */
    margin-bottom: 6vh;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

/* Rótulo Fixo (EMBAIXO) */
.mic-fixed-label {
    font-size: 2.5vw;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    width: 100%;
    opacity: 0.8; /* Ligeiramente menos chamativo que o nome principal */
}

/* Animação de Alerta Individual (Piscar Invertido para chamar mais atenção nos fundos coloridos) */
.mic-wrapper.is-alerting {
    animation: flash-bg 0.5s infinite; /* Pisca mais rápido */
}

@keyframes flash-bg {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.5; }
}

/* Botão de Admin (Oculto) */
#admin-btn { display: none; }

/* --- MODO DE ALERTA DE TROCA --- */
body.swap-alert-mode .mic-container {
    gap: 2vw; /* No modo troca, separa um pouco as colunas */
    padding: 2vw;
    background-color: #111; /* Fundo escuro atrás das colunas separadas */
}
body.swap-alert-mode .mic-wrapper {
    height: 90vh; /* Um pouco menores para caber a seta */
    border-radius: 2vh; /* Arredonda no modo troca para destacar */
    animation: flash-bg 0.8s infinite;
    flex: 0 0 35%; /* Largura fixa no modo troca */
}

.swap-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #f39c12; /* Laranja forte */
    animation: flash-bg 0.8s infinite;
    z-index: 10;
}
.swap-text { font-size: 5vw; font-weight: 900; margin-bottom: 2vh; text-transform: uppercase; }
.swap-indicator .fas { font-size: 12vw; }

/* Responsividade */
@media (max-width: 768px) {
    /* Em celulares, talvez seja melhor empilhar se forem muitos, 
       mas o pedido foi colunas. Vamos manter colunas mas ajustar fontes. */
    .mic-name { font-size: 5vw; }
    .mic-icon { font-size: 20vw; }
    .mic-fixed-label { font-size: 4vw; }
}