/* public/modules/robo/style.css */

/* =========================================
   ESTRUTURA GERAL
   ========================================= */
   body {
    overflow: hidden;
    user-select: none;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    background: radial-gradient(circle at center, #0b0b15 0%, #000000 100%);
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

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

.nav-back { display:flex; align-items:center; text-decoration:none; color:inherit; padding-left: 20px; transition: 0.3s; }
.app-header { z-index: 100; }

/* =========================================
   MENU DASHBOARD (NOVO)
   ========================================= */
.menu-content { display: flex; width: 90%; max-width: 1200px; height: 90%; gap: 40px; align-items: center; padding-bottom: 20px; }
.menu-info { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 20px; min-width: 300px; }

.game-logo-large h1 { font-family: 'Rajdhani', sans-serif; font-size: 3.5rem; line-height: 0.9; margin: 0; background: linear-gradient(to right, #fff, var(--neon-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 30px rgba(0, 243, 255, 0.3); }
.icon-float { font-size: 5rem; color: var(--neon-blue); margin-bottom: 10px; animation: floatIcon 3s ease-in-out infinite; }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Botão Neon */
.btn-neon { background: linear-gradient(90deg, var(--neon-blue), #0051ff); border: none; color: white; padding: 18px 30px; border-radius: 50px; font-size: 1.2rem; font-weight: 700; cursor: pointer; box-shadow: 0 0 20px rgba(0, 243, 255, 0.4); transition: 0.4s; width: 100%; max-width: 350px; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap:10px; }
.btn-neon:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(0, 243, 255, 0.6); }
.btn-neon.disabled { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.3); box-shadow: none; cursor: not-allowed; transform: none; }

/* Grid de Temas */
.themes-wrapper { flex: 1.5; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 30px; padding: 30px; height: 100%; display: flex; flex-direction: column; backdrop-filter: blur(10px); overflow: hidden; }
.themes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 15px; overflow-y: auto; padding-right: 5px;}
.themes-grid::-webkit-scrollbar { width: 6px; }
.themes-grid::-webkit-scrollbar-thumb { background: var(--neon-blue); border-radius: 10px; }

.theme-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 20px 10px; cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; align-items: center; text-align: center; }
.theme-card.selected { background: rgba(0, 243, 255, 0.15); border-color: var(--neon-blue); box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); }
.theme-icon { font-size: 2rem; margin-bottom: 10px; }
.theme-name { font-weight: 600; font-size: 0.9rem; color: white; margin-bottom: 5px; }

/* =========================================
   GAMEPLAY (MANTIDO O ORIGINAL)
   ========================================= */
.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; }

.hud-bar {
    width: 90%; max-width: 800px; display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 10px; z-index: 10;
}
.word-container {
    background: rgba(0,0,0,0.6); padding: 10px 20px; border-radius: 10px;
    font-size: 1.5rem; font-weight: bold; color: white; letter-spacing: 5px;
    border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(5px);
}
.score-box {
    background: rgba(0,0,0,0.6); padding: 8px 15px;
    border-radius: 20px; border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; gap: 8px; font-weight: bold; color: white;
}

.game-container {
    width: 100%; flex: 1; display: flex; align-items: center; justify-content: center;
    position: relative; padding: 10px; box-sizing: border-box;
}

canvas {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 5px solid #444;
    border-radius: 8px; box-shadow: 0 0 30px rgba(0, 243, 255, 0.15);
    max-width: 100%; max-height: 100%;
}

/* LETTERS STYLE */
.letter-done { color: var(--neon-green); opacity: 0.5; }
.letter-target { color: var(--neon-yellow); text-decoration: underline; animation: pulse 1s infinite; }
.letter-pending { color: white; opacity: 0.3; }
@keyframes pulse { 50% { opacity: 0.5; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.shake { animation: shake 0.3s; border-color: var(--neon-red) !important; }

/* CONTROLES MOBILE */
.mobile-controls {
    display: none; width: 100%; max-width: 600px; justify-content: space-between;
    padding: 10px; box-sizing: border-box; margin-bottom: 10px; z-index: 10;
}
.ctrl-btn {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.3);
    color: white; font-size: 2rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; backdrop-filter: blur(5px); transition: 0.1s;
}
.ctrl-btn:active { background: var(--neon-blue); color: black; transform: scale(0.9); }
.jump-btn { width: 80px; height: 80px; border-color: var(--neon-yellow); color: var(--neon-yellow); font-size: 1rem; flex-direction: column; gap: 5px; }

/* RESPONSIVO */
@media (max-width: 900px) {
    .menu-content { flex-direction: column; gap: 15px; padding: 10px; }
    .menu-info { align-items: center; text-align: center; padding: 10px 0; width: 100%; }
    .themes-wrapper { width: 100%; border-radius: 20px 20px 0 0; padding: 20px 10px; }
    .themes-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    
    .mobile-controls { display: flex; } /* Mostra controles no mobile */
}

/* MODAL */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); display: none;
    justify-content: center; align-items: center; z-index: 5000;
}
.modal-content {
    background: #1a1a2e; border: 2px solid var(--neon-green);
    padding: 30px; border-radius: 20px; text-align: center;
    width: 90%; max-width: 400px;
}