/* Navbar Component Styles - CRITICAL for correct menu rendering */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
}

.navbar-menu {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.navbar-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar-link {
    color: #b7b7c7;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.navbar-link:hover,
.navbar-link.active {
    color: #ef4444;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    transition: width 0.3s ease;
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

.navbar-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.navbar-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.navbar-btn-login {
    color: white;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.navbar-btn-login:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.navbar-btn-register {
    color: white;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
}

.navbar-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

/* User Menu Styles */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
}

.navbar-user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.navbar-user-name {
    color: white;
    font-weight: 600;
}

.navbar-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(20, 20, 30, 0.98);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    min-width: 200px;
    padding: 0.5rem 0;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.navbar-user:hover .navbar-dropdown {
    display: block;
}

.navbar-dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #b7b7c7;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.navbar-dropdown-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.navbar-dropdown-divider {
    height: 1px;
    background: rgba(239, 68, 68, 0.1);
    margin: 0.5rem 0;
}

/* Mobile Toggle */
.navbar-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.navbar-mobile-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.navbar-mobile-menu {
    display: none;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(239, 68, 68, 0.1);
    padding: 1rem;
}

.navbar-mobile-menu.active {
    display: block;
}

.navbar-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.navbar-mobile-link {
    color: #b7b7c7;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar-mobile-link:hover,
.navbar-mobile-link.active {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.navbar-mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(239, 68, 68, 0.1);
}

.navbar-mobile-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-links,
    .navbar-auth,
    .navbar-user {
        display: none;
    }
    
    .navbar-mobile-toggle {
        display: flex;
    }
}
