﻿/* ========================================
   CSS Variables - Paleta de Cores
   ======================================== */
:root {
    --cor-principal: #007bff;
    --cor-principal-escuro: #0056b3;
    --cor-secundaria: #ff8c00;
    --cor-secundaria-escuro: #e07b00;
    --fundo-claro: #f5f7fa;
    --fundo-branco: #ffffff;
    --txt-principal: #2d2d2d;
    --txt-secundario: #5a5a5a;
    --borda: #dde4eb;
    --sombra: 0 2px 8px rgba(0, 0, 0, 0.06);
    --sombra-hover: 0 4px 16px rgba(0, 0, 0, 0.1);
    --transicao: all 0.3s ease;
}

/* ========================================
   Reset Global
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--fundo-claro);
    color: var(--txt-principal);
    line-height: 1.6;
    padding-top: 70px;
}

h1, h2, h3 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transicao);
}

.header.scrolled {
    height: 60px;
    box-shadow: var(--sombra);
}

.logo {
    height: 60px;
    width: auto;
    transition: var(--transicao);
}

.header.scrolled .logo {
    height: 50px;
    width: 50px;
}

.header .hhh a{
    display: flex;
    align-items: center;
}

.header .hhh a .vozes{
    line-height: 16px;
    margin-top:-6px;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    font-size: 15px;
    color: var(--txt-principal);
    font-weight: 500;
    transition: var(--transicao);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cor-principal);
    transition: var(--transicao);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a:hover {
    color: var(--cor-principal);
}

.nav a.active {
    font-weight: 700;
    color: var(--cor-principal);
}

.hhh{
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ========================================
   Main Container
   ======================================== */
.container {
    padding: 0 10%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   Game Controls
   ======================================== */
.game-controls {
    text-align: center;
    padding: 40px 0 30px;
}

.game-controls h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.game-subtitle {
    color: var(--txt-secundario);
    margin-bottom: 20px;
}

.controls-hint {
    color: var(--txt-secundario);
    font-size: 14px;
    margin-top: 6px;
}

/* ========================================
   Game Panel
   ======================================== */
.game-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
}

#loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 16px;
}

.loading-bar {
    width: 300px;
    height: 12px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.loading-fill {
    height: 100%;
    width: 0%;
    background: #4a90e2;
    border-radius: 10px;
    animation: fill 4s ease-in-out forwards;
}

@keyframes fill {
    to { width: 90%; }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #050509;
    color: #f5f5f5;
    padding: 40px 48px 20px;
    margin-top: 40px;
}

.footer-top {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-info {
    max-width: 450px;
}

.footer-info h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: white;
}

.footer-info p {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 8px;
    transition: var(--transicao);
}

.footer-column a:hover {
    color: white;
}

.footer-column p {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.6;
    max-width: 260px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #aaaaaa;
}

.footer-bottom span:first-child {
    font-style: italic;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }
    
    .footer {
        padding: 30px 20px 20px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 25px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }

    .mobile-controls {
        display: flex;
    }

    #gameCanvas {
        max-width: 100%;
    }

    .python-game {
        height: 560px;
    }
}
