/* Navigation Variables */
:root {
    --nav-bg: #ffffff;
    --nav-text: #2c3e50;
    --nav-hover: #3498db;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

/* Base Navbar */
.navbar {
    background: var(--nav-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand */
.brand-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.brand-icon {
    font-size: 1.8rem;
}

.brand-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--nav-hover);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--nav-hover);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Points Display */
.points-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.points-value.nav-points {
    font-size: unset;
    font-weight: bold;
}

.points-display i {
    color: #f39c12;
    font-size: 1.2rem;
}

.premium-badge {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.2rem;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-btn {
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.user-menu-btn:hover {
    background: #73b9ff;
}

.btn.btn-primary {
    text-decoration: none;
    background-color: #2d9cdb;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: white;
    transition: background 0.3s ease;
}

.btn.btn-primary:hover {
    background: #73b9ff;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;

}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--nav-text);
    transition: background 0.3s ease;
}

.user-dropdown a:nth-child(2) {
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
}

.user-dropdown a:nth-child(1) {
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
}

.user-dropdown a:hover {
    background: #ccc;
}


/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.mobile-link {
    display: block;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--nav-text);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.mobile-link:hover {
    background: #f8f9fa;
}

.user-info-mob {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 0rem;
}

.nav-points {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .user-dropdown.mob {
        box-shadow: var(--shadow-md);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .username {
        display: none;
    }

    .nav-container {
        padding: 0.75rem 1rem;
    }
}