/* public/modules/complete/style.css */

/* === GERAL === */
body {
    overflow: hidden; 
    user-select: none;
    display: flex; 
    flex-direction: column; 
    height: 100vh;
    background: radial-gradient(circle at center, #051a1a 0%, #000000 100%);
    margin: 0; 
    font-family: var(--font-main);
}

.hub-container { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    position: relative; 
    overflow: hidden; 
    align-items: center; 
}

.app-header { z-index: 100; }
.btn-config-header { 
    color: white; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    margin-left: 20px; 
}

/* === TELAS === */
.screen { 
    display: none; 
    width: 100%; 
    height: 100%; 
    flex-direction: column; 
    align-items: center; 
    opacity: 0; 
    transition: opacity 0.3s; 
}
.screen.active { display: flex; opacity: 1; }

/* === SETUP & MENU === */
.menu-content { 
    display: flex; 
    width: 90%; 
    max-width: 1200px; 
    height: 90%; 
    gap: 30px; 
    padding-bottom: 20px; 
}
.menu-info { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    padding: 20px; 
    background: rgba(255,255,255,0.03); 
    border-radius: 20px; 
    border: 1px solid rgba(0, 255, 255, 0.1); 
    overflow-y: auto; 
}
.side-panel-container { 
    flex: 0.8; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    overflow-y: auto; 
}

.section-title { 
    color: var(--neon-cyan); 
    font-family: var(--font-gamer); 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
    border-bottom: 1px solid rgba(0, 255, 255, 0.2); 
    padding-bottom: 10px; 
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.game-logo-large h1 {
    font-family: var(--font-gamer);
    font-size: 4rem; 
    line-height: 0.9;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 0 5px #00ffff, 0 0 15px rgba(0, 255, 255, 0.6);
    letter-spacing: 2px;
}

.icon-float { 
    font-size: 5rem; 
    color: var(--neon-cyan); 
    margin-bottom: 10px; 
    filter: drop-shadow(0 0 10px var(--neon-cyan));
    animation: floatIcon 3s ease-in-out infinite; 
}

/* === INPUTS === */
.checklist-area { 
    max-height: 200px; 
    overflow-y: auto; 
    background: rgba(0,0,0,0.4); 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 8px; 
    padding: 10px; 
    display: grid; 
    gap: 5px; 
    margin-bottom: 15px; 
}
.checklist-area label { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
    padding: 8px; 
    border-radius: 4px; 
    transition: 0.2s; 
    font-size: 1rem; 
    color: #fff; 
    background: rgba(255,255,255,0.05); 
    margin-bottom: 2px; 
}
.checklist-area label:hover { 
    background: rgba(0, 255, 255, 0.1); 
    border: 1px solid rgba(0, 255, 255, 0.3); 
}
.checklist-area input[type="checkbox"] { 
    accent-color: var(--neon-cyan); 
    width: 18px; 
    height: 18px; 
}

/* === GAMEPLAY === */
.game-area { 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    height: 100%; 
    align-items: center; 
    justify-content: center; 
}
.hud-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 90%; 
    max-width: 900px; 
    margin-bottom: 20px; 
    background: rgba(0, 20, 30, 0.9); 
    padding: 15px 25px; 
    border-radius: 30px; 
    border: 2px solid var(--neon-cyan); 
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2); 
}
.player-turn-badge { 
    color: var(--neon-yellow); 
    font-weight: bold; 
    font-family: var(--font-gamer); 
    text-transform: uppercase; 
    font-size: 1.2rem; 
}

/* NOVO: Placar na HUD */
.score-badge {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 5px 15px;
    border-radius: 20px;
    font-family: var(--font-gamer);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 5px var(--neon-green);
    min-width: 80px;
    text-align: center;
}

.main-stage { 
    display: flex; 
    flex-direction: column; 
    width: 95%; 
    max-width: 800px; 
    height: 70%; 
    gap: 40px; 
    align-items: center; 
    justify-content: center; 
}

/* FRASE */
.sentence-box { 
    font-size: 2rem; 
    color: white; 
    text-align: center; 
    line-height: 2.2; 
    background: rgba(0, 20, 20, 0.6); 
    padding: 40px; 
    border-radius: 15px;
    width: 100%; 
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    text-shadow: 1px 1px 2px black;
}

/* LACUNA */
.blank-slot {
    display: inline-block;
    min-width: 80px; 
    border-bottom: 3px solid var(--neon-cyan);
    margin: 0 5px;
    color: var(--neon-cyan);
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    vertical-align: baseline; 
    padding: 0 5px;
    transition: 0.2s;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 4px 4px 0 0;
}
.blank-slot:hover { background: rgba(0, 255, 255, 0.2); }
.blank-slot.filled { border-bottom-color: var(--neon-green); color: var(--neon-green); background: rgba(0, 255, 0, 0.1); }
.blank-slot.correct { color: #fff; background: var(--neon-green); border-bottom: none; border-radius: 4px; box-shadow: 0 0 15px var(--neon-green); border: 2px solid #fff; padding: 2px 10px; }
.blank-slot.wrong { color: #fff; background: var(--neon-red); border-bottom: none; border-radius: 4px; animation: shake 0.5s; padding: 2px 10px; }

/* BANCO DE PALAVRAS */
.options-panel { width: 100%; }
.word-bank-grid { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; }
.word-chip {
    background: #000; border: 2px solid var(--neon-cyan); color: var(--neon-cyan);
    padding: 12px 25px; border-radius: 30px; cursor: pointer; font-size: 1.4rem; font-weight: bold; font-family: 'Rajdhani', sans-serif;
    transition: 0.2s; box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}
.word-chip:hover { transform: translateY(-5px); background: var(--neon-cyan); color: #000; box-shadow: 0 0 20px var(--neon-cyan); }
.word-chip.used { opacity: 0.2; pointer-events: none; border-color: #555; color: #555; transform: scale(0.9); }

/* === LISTAS E MODAIS === */
.room-item {
    display: flex; justify-content: space-between; align-items: center; padding: 10px; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.room-actions { display: flex; gap: 8px; }

.icon-btn-small {
    background: none; border: none; font-size: 1.3rem; cursor: pointer; transition: 0.2s; padding: 5px;
}
.icon-btn-small:hover { transform: scale(1.2); filter: drop-shadow(0 0 5px white); }

.pending-item { display:flex; justify-content:space-between; align-items:center; padding:10px; border-bottom:1px solid #333; }
.btn-approve { background:none; border:1px solid var(--neon-green); color:var(--neon-green); border-radius:5px; cursor:pointer; margin-right:5px; padding:5px 10px; }
.btn-approve:hover { background:var(--neon-green); color:black; }
.btn-reject { background:none; border:1px solid var(--neon-red); color:var(--neon-red); border-radius:5px; cursor:pointer; padding:5px 10px; }
.btn-reject:hover { background:var(--neon-red); color:white; }

/* MODAL GERAL */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); display: none; justify-content: center; align-items: center; z-index: 5000; }
.modal-content { background: #0b2e29; border: 2px solid var(--neon-cyan); padding: 30px; border-radius: 20px; text-align: center; box-shadow: 0 0 50px rgba(0, 255, 255, 0.2); width: 85%; max-width: 400px; }
.room-code-big { font-size: 4rem; color: var(--neon-yellow); margin: 10px 0; letter-spacing: 5px; font-family: var(--font-gamer); text-shadow: 0 0 10px var(--neon-yellow); }

.rank-item.online { border-left: 3px solid var(--neon-green); background: rgba(0, 255, 136, 0.1); margin-bottom: 5px; padding:10px; display:flex; justify-content:space-between; }
.rank-item.offline { border-left: 3px solid var(--neon-red); background: rgba(255, 0, 0, 0.1); opacity: 0.7; padding:10px; display:flex; justify-content:space-between; }

/* === ANIMAÇÕES === */
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }


/* === RESPONSIVIDADE (MEDIA QUERIES) === */

/* Menu Mobile e Tablets pequenos */
@media (max-width: 768px) {
    /* Menu Principal em Coluna */
    .menu-content {
        flex-direction: column;
        height: 100%;
        overflow-y: auto;
        padding-bottom: 80px;
        width: 95%;
    }

    .menu-info, .side-panel-container {
        width: 100%;
        flex: none;
        max-height: none;
        overflow: visible;
    }

    .game-logo-large h1 { font-size: 2.5rem; }
    .icon-float { font-size: 3rem; margin-bottom: 5px; }
    .section-title { font-size: 1.2rem; }
    
}

/* Celulares (Gameplay e HUD) */
@media (max-width: 600px) {
    /* Ajustes da Frase */
    .sentence-box { font-size: 1.4rem; padding: 20px; }
    .blank-slot { min-width: 50px; height: auto; padding: 0 2px; }
    .word-chip { padding: 10px 15px; font-size: 1.1rem; }

    /* Ajuste da HUD (Placar) */
    .hud-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }
    .player-turn-badge { width: 100%; text-align: center; font-size: 1rem; margin-bottom: 5px; order: -1; }
    .score-badge { order: 1; }
    #level-display { order: 2; }
    .icon-btn { order: 3; margin-left: auto; }
}