/* ========== HEADER & NAVIGATION STYLES ========== */

/* User Menu Wrapper */
.user-menu-wrapper {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    background: none;
    border: none;
    color: #00C853;
    cursor: pointer;
    font-weight: 600;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.user-menu-btn:hover {
    opacity: 0.8;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    margin-top: 0.5rem;
    overflow: hidden;
}

/* Show dropdown on hover - IMPORTANT */
.user-menu-wrapper:hover .user-dropdown {
    display: block !important;
}

/* Show dropdown on click */
.user-dropdown.show {
    display: block !important;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: rgba(0, 200, 83, 0.1);
    color: #00C853 !important;
    padding-left: 1.2rem;
}

.user-dropdown a.logout-link {
    color: #ff4444;
}

.user-dropdown a.logout-link:hover {
    color: #ff6666 !important;
    background: rgba(255, 68, 68, 0.1);
}

/* Active Link Styling */
nav a.active {
    color: var(--neon-green) !important;
    position: relative;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

.mobile-nav a.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green) !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--neon-green);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: var(--dark-card);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-menu.active {
    display: block;
    max-height: 600px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav a {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    background: rgba(0, 255, 136, 0.05);
    padding-left: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}