* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

:root {
    --bg-dark: #0b0e14;
    --bg-card: #141a23;
    --primary-color: #ff3e3e; 
    --primary-hover: #e02c2c;
    --twitch-color: #9146FF;
    --youtube-color: #FF0000;
    --text-color: #ffffff;
    --text-muted: #94a3b8;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-color);
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(11, 14, 20, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary-color);
}

.navbar nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.navbar nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

.navbar nav ul li a:hover {
    color: var(--text-color);
}

.btn-discord-nav {
    background-color: #5865F2;
    padding: 10px 20px;
    border-radius: 5px;
    color: white !important;
}

/* PERFIL DO USUÁRIO LOGADO NA NAVBAR */
.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.user-profile-menu:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-profile-menu span {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

/* Coloca o item do usuário e o botão de logout alinhados na navbar */
.navbar nav ul li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-logout-icon {
    color: var(--text-muted);
    font-size: 16px;
    transition: color 0.3s;
    text-decoration: none;
    padding: 8px;
}

.btn-logout-icon:hover {
    color: var(--primary-color);
}

.btn-logout {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s;
    text-decoration: none;
    margin-left: 5px;
}

.btn-logout:hover {
    color: var(--primary-color);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px;
    background-color: #07090d;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ESTADO ATIVO DOS LINKS DA NAVBAR */
.navbar nav ul li a.active {
    color: #ffffff !important;
    font-weight: 700;
    position: relative;
}

/* Indicador visual (linha vermelha embaixo da página ativa) */
.navbar nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* CORES DAS PLATAFORMAS NO MENU */
.nav-twitch {
    color: var(--twitch-color) !important;
    transition: opacity 0.3s !important;
}
.nav-twitch:hover {
    opacity: 0.8;
}

.nav-youtube {
    color: var(--youtube-color) !important;
    transition: opacity 0.3s !important;
}
.nav-youtube:hover {
    opacity: 0.8;
}

/* ESTILO DOS BOTÕES EM CAIXINHA NA NAVBAR (TWITCH E YOUTUBE) */
.nav-card-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Caixa da Twitch (Roxo) */
.nav-card-twitch {
    background-color: rgba(145, 70, 255, 0.1);
    border: 1px solid rgba(145, 70, 255, 0.3);
    color: #b992ff !important;
}

.nav-card-twitch:hover {
    background-color: var(--twitch-color);
    color: #ffffff !important;
    border-color: var(--twitch-color);
    box-shadow: 0 0 15px rgba(145, 70, 255, 0.4);
    transform: translateY(-2px);
}

/* Caixa do YouTube (Vermelho) */
.nav-card-youtube {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b !important;
}

.nav-card-youtube:hover {
    background-color: var(--youtube-color);
    color: #ffffff !important;
    border-color: var(--youtube-color);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

.developer-credits a:hover {
    color: #fd1d1d !important;
    text-decoration: underline;
}

/* ========================================== */
/* CONFIGURAÇÃO DO MENU MOBILE / HAMBÚRGUER   */
/* ========================================== */

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.navbar-mobile-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

/* FORÇA O BOTÃO DE SAIR COM TEXTO A SUMIR NO COMPUTADOR */
.mobile-logout-item {
    display: none !important;
}

/* ========================================== */
/* RESPONSIVIDADE GLOBAL PARA CELULARES       */
/* ========================================== */

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    /* Ajusta containers e grades principais */
    .player-profile-container, 
    .store-container, 
    .container {
        padding: 10px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Perfil do usuário no mobile */
    .player-hero-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        padding: 20px !important;
    }

    .player-identity {
        flex-direction: column !important;
        align-items: center !important;
    }

    .player-info {
        text-align: center !important;
    }

    .ban-status-container {
        justify-content: center !important;
    }

    /* Transforma os grids de estatísticas em coluna única */
    .player-stats-grid, 
    .store-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Modais responsivos */
    .modal-content, 
    div[style*="width:440px"], 
    div[style*="width: 440px"] {
        width: 90% !important;
        max-width: 95vw !important;
        padding: 20px !important;
        box-sizing: border-box;
    }

    /* Botões de link e sincronização */
    .sync-accounts-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn-sync {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .hamburger-btn {
        display: block !important;
    }

    .navbar-mobile-actions {
        display: flex !important;
    }

    /* ESCONDE RIGOROSAMENTE OS ITENS DE DESKTOP NO CELULAR */
    .desktop-user-item {
        display: none !important;
    }

    .desktop-login-item {
        display: none !important;
    }

    /* MOSTRA O BOTÃO DE SAIR DENTRO DO MENU RETRÁTIL DO CELULAR */
    .mobile-logout-item {
        display: flex !important;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .btn-logout-mobile-link {
        color: #ff4757 !important;
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 16px;
    }

    .mobile-user-badge {
        padding: 4px 10px !important;
        font-size: 13px;
    }

    /* Transforma a lista de links em um menu drop/gaveta lateral */
    .navbar nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(11, 14, 20, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 30px;
        transition: left 0.3s ease-in-out;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
        overflow-y: auto;
    }

    .navbar nav.active {
        left: 0;
    }

    .navbar nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
        padding: 0 20px;
    }

    .navbar nav ul li {
        width: 100%;
        justify-content: center;
    }

    .navbar nav ul li a {
        font-size: 16px;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
}