/* ===== CABEÇALHO - DESIGN MODERNO E MINIMALISTA ===== */

/* Reset básico para o header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 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: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Garante que a logo não encolha */
    white-space: nowrap; /* Impede quebra de linha no texto da logo */
    min-width: 120px; /* Garante um espaço mínimo para a logo */
}

.logo i {
    width: 24px;
    height: 24px;
    color: #10b981; /* Changed from #6366f1 (purple) to #10b981 (green) */
    transition: all 0.3s ease;
}

.logo:hover {
    color: #10b981; /* Changed from #6366f1 (purple) to #10b981 (green) */
    transform: translateY(-1px);
}

.logo:hover i {
    transform: rotate(15deg);
}

/* 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(16, 185, 129, 0.1), transparent); /* Changed from rgba(99, 102, 241, 0.1) (purple) to rgba(16, 185, 129, 0.1) (green) */
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(16, 185, 129, 0.1); /* Changed from rgba(99, 102, 241, 0.1) (purple) to rgba(16, 185, 129, 0.1) (green) */
    transform: translateY(-1px);
}

.nav-link.active {
    color: #10b981; /* Changed from #6366f1 (purple) to #10b981 (green) */
    background: rgba(16, 185, 129, 0.15); /* Changed from rgba(99, 102, 241, 0.15) (purple) to rgba(16, 185, 129, 0.15) (green) */
}

.nav-link.active i {
    color: #10b981; /* Changed from #6366f1 (purple) to #10b981 (green) */
}

/* 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: #10b981;
}

.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, #10b981 0%, #34d399 100%); /* Changed from #6366f1 and #8b5cf6 (purple) to #10b981 and #34d399 (green) */
    color: #ffffff;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #047857 0%, #10b981 100%); /* Changed from #5b21b6 and #6366f1 (purple) to #047857 and #10b981 (green) */
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3); /* Changed from rgba(99, 102, 241, 0.3) (purple) to rgba(16, 185, 129, 0.3) (green) */
}

.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;
    }
}