/* ============================================
   ESTILOS GERAIS - MASTER REFEREE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    min-height: 100vh;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
}

/* ===== NAVBAR INTERATIVA ===== */
.navbar {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nav-item {
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.nav-item:hover, .nav-active {
    background: white;
    color: #764ba2;
    transform: translateY(-2px);
}

/* ===== CONTAINER PRINCIPAL ===== */
.container {
    width: 100%;
    max-width: 800px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

header h1 { font-size: 2.2em; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); }

/* ===== LOBBY DE SELEÇÃO DE QUADRAS ===== */
.court-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    padding: 20px;
}

/* Botões grandes para os Árbitros */
.btn-court {
    aspect-ratio: 1 / 1;
    font-size: 1.1em;
    font-weight: 900;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-court:hover {
    border-color: #667eea;
    color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ===== FORMULÁRIO E PLACAR ===== */
.game-info, .scoreboard {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-group label {
    display: block;
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 5px;
    font-size: 0.85em;
}

.info-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1em;
    outline: none;
}

/* ===== BOTÕES DE AÇÃO ===== */
.btn {
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-primary { background: #667eea; color: white; width: 100%; }
.btn-success { background: #48bb78; color: white; width: 100%; }
.btn-warning { background: #ed8936; color: white; }
.btn-danger { background: #f56565; color: white; }

/* ===== DASHBOARD (TV DO CLUBE) ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.mini-court {
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.court-label { font-size: 1.3em; font-weight: 900; margin-bottom: 5px; }
.team-name { font-size: 1.1em; font-weight: 700; margin: 5px 0; }
.mini-score { font-size: 1.8em; font-weight: 900; margin-left: 10px; }

/* Animação para jogos ao vivo */
.live-pulse {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(56, 161, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 161, 105, 0); }
}

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

/* Responsividade Celular */
@media (max-width: 600px) {
    body { padding: 10px; }
    header h1 { font-size: 1.6em; }
    .scoreboard { padding: 15px; }
    .score { font-size: 3em; }
}