/* ===== CABEÇALHO - DESIGN MODERNO E MINIMALISTA ===== */

/* Reset básico para o header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 10, 21, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

/* Logo */
.logo {
    display: inline-block; /* Mudar para inline-block ou flex */
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Mantém a logo de encolher em layouts flex */
}

.logo img {
    /* Define a altura, o navegador ajustará a largura automaticamente */
    height: 45px; /* Tamanho base para telas grandes */
    display: block; /* Remove espaços extras abaixo da imagem */
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px); /* Efeito de levantar ao passar o mouse */
}

.logo:hover img {
    opacity: 0.9; /* Leve efeito de transparência no hover */
}

/* --- Responsividade para a Logo --- */

/* Para tablets e telas menores */
@media (max-width: 768px) {
    .logo img {
        height: 40px; /* Diminui um pouco a altura */
    }
}

/* Para celulares */
@media (max-width: 480px) {
    .logo img {
        height: 35px; /* Diminui mais um pouco */
    }
}

/* Navegação Desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link i {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 50, 240, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(25, 50, 240, 0.1);
}

.nav-link.active {
    color: #1932F0;
    background: rgba(25, 50, 240, 0.15);
}

.nav-link.active i {
    color: #1932F0;
}

/* Seção de Autenticação */
.auth-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.balance-item i {
    width: 14px;
    height: 14px;
    color: #1932F0;
}

.balance-item.bonus i {
    color: #F59E0B;
}

.balance-value {
    color: #ffffff;
}

.balance-separator {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn i {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #1932F0 0%, #1932F0 100%);
    color: #ffffff;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1932F0 0%, #1932F0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(25, 50, 240, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Responsividade */
@media (max-width: 768px) {
    .header-container {
        height: 60px;
        padding: 0 15px;
        gap: 10px;
    }
    
    .logo {
        font-size: 1.1rem;
        flex-shrink: 0; /* Garante que a logo não encolha */
        min-width: 100px; /* Aumenta o espaço mínimo para a logo */
    }
    
    .nav-menu {
        display: none;
    }
    
    .auth-section {
        flex-grow: 1;
        justify-content: flex-end;
        gap: 8px;
    }

    .user-info {
        gap: 8px;
        flex-wrap: nowrap; /* Evita quebrar linha no user-info */
    }

    .balance-display {
        padding: 6px 8px;
        gap: 4px;
        flex-wrap: nowrap; /* Evita quebrar linha no balance-display */
        justify-content: flex-start; /* Alinha à esquerda */
        min-width: 0; /* Permite que o container encolha */
    }
    
    .balance-item {
        font-size: 0.75rem;
        white-space: nowrap; /* Impede quebra de linha dentro do item */
    }
    
    .balance-item i {
        width: 10px;
        height: 10px;
    }
    
    .balance-separator {
        height: 12px;
    }

    .btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .btn span {
        display: none;
    }
    
    .btn i {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
        gap: 8px;
    }
    
    .balance-display {
        flex-direction: row; /* Força a linha, mesmo em telas pequenas */
        gap: 2px;
        padding: 4px 6px;
    }
    
    .balance-separator {
        display: block; /* Garante que o separador apareça */
    }
    
    .balance-item {
        font-size: 0.7rem;
    }
    
    .btn {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .header-container {
        padding: 0 8px;
        gap: 5px;
    }
    .logo {
        font-size: 1rem;
        min-width: 80px; /* Ajuste para telas muito pequenas */
    }
    .balance-display {
        padding: 3px 5px;
        gap: 1px; /* Reduz ainda mais o gap */
    }
    .balance-item {
        font-size: 0.6rem; /* Reduz a fonte para caber */
    }
    .btn {
        padding: 4px 6px;
        font-size: 0.7rem;
    }
}