/* --- VARIÁVEIS DE DESIGN --- */
:root {
    --bg-body: #0f1115;
    --bg-card: #1a1d23;
    --primary: #f9d342;
    --primary-hover: #ffdf65;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --accent: #2ecc71;
    --danger: #e74c3c;
    --divider: rgba(255, 255, 255, 0.08);
    --radius: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- NAVBAR & DROPDOWN --- */
.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--divider);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand { font-size: 1.4rem; font-weight: 900; letter-spacing: -1px; display: flex; align-items: center; gap: 8px; }
.brand-fc { color: var(--primary); }

.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-group { display: flex; align-items: center; gap: 1.2rem; }

.nav-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link:hover { color: var(--primary); }

.nav-item.dropdown { position: relative; }
.nav-item.dropdown::after {
    content: "";
    position: absolute;
    top: 100%; left: 0; width: 100%; height: 15px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-card);
    min-width: 220px;
    box-shadow: 0px 12px 40px rgba(0, 0, 0, 0.8);
    top: calc(100% + 10px);
    left: 0;
    border-radius: var(--radius);
    border: 1px solid var(--divider);
    padding: 8px 0;
    z-index: 1001;
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 10px 18px;
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    padding-left: 22px;
}

.nav-item.dropdown:hover .dropdown-content { display: block; }
.nav-divider { width: 1px; height: 24px; background: var(--divider); }
.nav-logout { font-size: 0.8rem; color: var(--danger); font-weight: 800; text-transform: uppercase; }

/* --- DASHBOARD WRAPPER & HEADER --- */
.dashboard-wrapper {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex: 1; /* Faz o wrapper ocupar o espaço disponível */
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
}

/* --- GUEST HERO & BOTÕES ATRAENTES --- */
.guest-hero { padding: 4rem 0; }
.guest-hero h1 { font-size: 2.8rem; font-weight: 900; margin-bottom: 0.5rem; }
.guest-hero p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 1.5rem; }
.guest-actions { display: flex; gap: 1.2rem; margin-top: 2rem; }

.nav-btn-register {
    background: var(--primary);
    color: #000 !important;
    padding: 14px 30px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(249, 211, 66, 0.2);
}

.nav-btn-register:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 211, 66, 0.4);
}

.guest-actions .btn-outline {
    background: transparent;
    color: var(--text-main);
    padding: 14px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--divider);
    font-size: 0.85rem;
    font-weight: 800;
    transition: var(--transition);
}

.guest-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

/* --- ELEMENTOS DO TIME LOGADO --- */
.status-tag {
    font-size: 0.6rem;
    background: rgba(46, 204, 113, 0.1);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 900;
}

.highlight-gold { color: var(--primary); }

.quick-stats-bar { display: flex; align-items: center; gap: 2rem; margin-top: 1.5rem; }
.stat-box .stat-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 800; display: block; }
.stat-main { display: flex; align-items: baseline; gap: 4px; }
.stat-number { font-size: 1.5rem; font-weight: 900; color: var(--text-main); }
.stat-trend { font-size: 0.8rem; color: var(--text-muted); }

.mini-status { font-size: 0.65rem; font-weight: 900; padding: 3px 8px; border-radius: 4px; background: rgba(255,255,255,0.05); border: 1px solid var(--divider); }
.mini-status.vivo { color: var(--accent); border-color: rgba(46, 204, 113, 0.3); }

.stat-divider { width: 1px; height: 40px; background: var(--divider); }

/* --- NEXT MATCH --- */
.next-match-display { text-align: right; display: flex; flex-direction: column; justify-content: center; }
.display-label { font-size: 0.7rem; font-weight: 800; color: var(--text-muted); margin-bottom: 10px; letter-spacing: 1px; }

.match-card-compact {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--divider);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.match-vs { display: flex; align-items: center; gap: 15px; }
.opponent-name { font-size: 1.1rem; font-weight: 900; }
.tag-comp { font-size: 0.6rem; background: var(--primary); color: #000; padding: 2px 6px; border-radius: 3px; font-weight: 900; }
.tag-fase { font-size: 0.65rem; color: var(--text-muted); font-weight: 700; }

/* --- DASHBOARD GRID --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dash-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--divider);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: var(--transition);
}
.dash-card:hover { border-color: var(--primary); transform: translateY(-3px); background: rgba(255, 255, 255, 0.02); }

.card-visual {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; font-size: 1.5rem;
}

.liga-gradient { color: #f9d342; background: rgba(249, 211, 66, 0.1); }
.copa-gradient { color: #e74c3c; background: rgba(231, 76, 60, 0.1); }
.liberta-gradient { color: #3498db; background: rgba(52, 152, 219, 0.1); }
.mercado-gradient { color: #2ecc71; background: rgba(46, 204, 113, 0.1); }

/* --- SIMULATION ZONE --- */
.live-sim-grid {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 1.5rem;
    margin-top: 2rem;
}

.sim-sidebar { background: rgba(255,255,255,0.01); border-radius: var(--radius); padding: 1rem; border: 1px solid var(--divider); }
.sidebar-title { font-size: 0.65rem; font-weight: 900; color: var(--text-muted); text-align: center; margin-bottom: 1rem; border-bottom: 1px solid var(--divider); padding-bottom: 8px; }

.match-strip {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 0.8rem;
}
.score { color: var(--primary); font-weight: 900; letter-spacing: 2px; }

.main-sim-panel {
    text-align: center; padding: 3rem 2rem;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}

.pulse-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }

.btn-simulate {
    background: var(--primary); color: #000; border: none;
    padding: 12px 28px; border-radius: 4px; font-weight: 900; font-size: 0.8rem;
    cursor: pointer; transition: var(--transition);
}
.btn-simulate:hover { background: var(--primary-hover); transform: scale(1.05); }

/* --- FOOTER ESTRUTURADO --- */
.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--divider);
    padding: 2rem 1.5rem;
    margin-top: auto; /* Garante que o footer fique sempre no rodapé */
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-footer { font-weight: 900; font-size: 1.1rem; letter-spacing: -1px; display: block; margin-bottom: 5px; }

.footer-content p { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--primary); }

/* --- GERAIS --- */
.card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--divider); }
.btn-outline { border: 1px solid var(--divider); padding: 8px 20px; border-radius: 4px; font-weight: 800; font-size: 0.75rem; transition: var(--transition); }

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 1024px) {
    .live-sim-grid { grid-template-columns: 1fr; }
    .sim-sidebar { display: none; }
    .dashboard-header { flex-direction: column; text-align: center; }
    .next-match-display { text-align: center; }
    .nav-container { flex-direction: column; gap: 1rem; }
    .guest-actions { justify-content: center; }
}

@media (max-width: 768px) {
    .footer-container { flex-direction: column; text-align: center; gap: 1.5rem; }
    .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
    .guest-actions { flex-direction: column; }
    .nav-btn-register, .guest-actions .btn-outline { width: 100%; text-align: center; }
}

.dropdown-header {
    padding: 8px 15px;
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    font-weight: bold;
    background: rgba(255,255,255,0.05);
}

.dropdown-header {
    padding: 8px 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 900;
    color: #888;
    background: rgba(255,255,255,0.05);
}

.highlight-gold {
    color: #ffd700 !important;
    font-weight: bold;
    border-left: 3px solid #ffd700;
}
/* Container dos ícones lado a lado */
.row-trophies {
    display: flex;
    justify-content: space-around; /* Distribui o espaço entre os ícones */
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05); /* Leve destaque de fundo */
    border-radius: 4px;
    margin: 0 5px;
}

.row-trophies a {
    font-size: 1.4rem; /* Deixa o emoji maior */
    padding: 5px !important;
    text-align: center;
    flex: 1;
    transition: transform 0.2s;
}

.row-trophies a:hover {
    transform: scale(1.2); /* Efeito de zoom ao passar o mouse */
    background: none !important;
}

/* Estilo para o Mundial */
.highlight-gold {
    color: #ffd700 !important; /* Dourado */
    font-weight: bold;
    border-left: 3px solid #ffd700;
}

/* Ajustes básicos do Dropdown se você não tiver */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #222; /* Cor padrão do Prancheta FC */
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-header {
    padding: 8px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
}

.dropdown-divider {
    height: 1px;
    background: #444;
    margin: 5px 0;
}
/* Estilo para os links dos continentes não parecerem links comuns */
.continent-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.continent-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.dropdown-header {
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #888;
}

/* Estilos estruturais para o funcionamento responsivo do Menu */
        .menu-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            z-index: 1001;
        }

        .menu-toggle span {
            display: block;
            width: 25px;
            height: 3px;
            background-color: var(--text, #fff);
            border-radius: 3px;
            transition: 0.3s;
        }

        /* Badge indicador da Temporada Atual */
        .season-badge {
            background-color: #ffd700;
            color: #000;
            font-size: 0.75rem;
            font-weight: 900;
            padding: 2px 6px;
            border-radius: 4px;
            margin-left: 8px;
            text-transform: uppercase;
            display: inline-block;
            vertical-align: middle;
        }

        /* Classes de animação do botão hambúrguer */
        .menu-toggle.open span:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }
        .menu-toggle.open span:nth-child(2) {
            opacity: 0;
        }
        .menu-toggle.open span:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

        @media (max-width: 768px) {
            .menu-toggle {
                display: flex;
            }

            .nav-menu {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: var(--bg-card, #1a1a1a);
                border-bottom: 1px solid var(--divider, #333);
                padding: 1rem;
                box-sizing: border-box;
                z-index: 1000;
            }

            .nav-menu.active {
                display: flex;
            }

            .nav-group {
                flex-direction: column;
                width: 100%;
                gap: 0.5rem;
            }

            .user-actions {
                margin-top: 1rem;
                padding-top: 1rem;
                border-top: 1px solid var(--divider, #333);
                width: 100%;
            }

            .nav-link, .nav-logout, .nav-btn-register {
                width: 100%;
                padding: 0.75rem 0.5rem;
                box-sizing: border-box;
            }

            .nav-divider {
                display: none;
            }

            /* Ajustes para os dropdowns no mobile */
            .dropdown {
                width: 100%;
            }

            .dropdown-content {
                position: relative;
                top: 0;
                box-shadow: none;
                padding-left: 1rem;
                background: rgba(0, 0, 0, 0.1);
                display: none;
                width: 100%;
                box-sizing: border-box;
            }

            .dropdown.active .dropdown-content {
                display: block;
            }
        }