/* Header Component Styles */

/* Premium Navigation with Dynamic Background */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(253, 252, 250, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(196, 169, 98, 0.2);
}

/* Premium Gradient Accent */
.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--secondary-color) 20%, 
        var(--primary-color) 50%, 
        var(--secondary-color) 80%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.navbar.scrolled::before {
    opacity: 0.8;
}

/* Glow Effect on Scroll */
.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(196, 169, 98, 0.1) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.navbar.scrolled::after {
    opacity: 1;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
    position: relative;
    z-index: 1;
}

.nav-brand {
    position: relative;
    z-index: 2;
}

.nav-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: var(--transition-base);
}

.navbar.scrolled .nav-logo {
    filter: drop-shadow(0 4px 16px rgba(196, 169, 98, 0.3));
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    padding: 8px 12px;
    border-radius: 12px;
    transition: var(--transition-base);
}

.nav-brand a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 111, 142, 0.05), rgba(196, 169, 98, 0.05));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-brand a:hover {
    transform: translateY(-2px);
}

.nav-brand a:hover::before {
    opacity: 1;
}

.nav-brand a:hover .nav-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 20px rgba(139, 111, 142, 0.25));
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: center;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: var(--transition-base);
    position: relative;
    padding: 12px 16px;
    border-radius: 25px;
    overflow: hidden;
}

.navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 25px;
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s ease 0.1s;
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleX(1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scale(1);
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
}

.nav-link.active {
    color: white;
}

.navbar.scrolled .nav-link:hover {
    color: white;
}

.navbar.scrolled .nav-link.active {
    color: var(--secondary-color);
}

.nav-cta {
    background: var(--gradient-1);
    color: white !important;
    padding: 14px 32px !important;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(139, 111, 142, 0.25);
    border: 2px solid transparent;
}

.navbar.scrolled .nav-cta {
    background: var(--gradient-3);
    color: var(--dark-color) !important;
    box-shadow: 0 4px 25px rgba(196, 169, 98, 0.4);
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-3);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 30px;
}

.nav-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 111, 142, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar.scrolled .nav-cta:hover {
    box-shadow: 0 15px 40px rgba(196, 169, 98, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-cta:hover::before {
    opacity: 1;
}

.nav-cta:hover::after {
    transform: translate(-50%, -50%) scale(8);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--dark-color);
    transition: var(--transition-base);
    border-radius: 2px;
    position: relative;
}

.navbar.scrolled .nav-toggle span {
    background: var(--secondary-color);
}

.nav-toggle span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-toggle:hover span::before {
    transform: scaleX(1);
}

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

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

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

/* User Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 15px !important;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

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

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-link:hover {
    background: #f8f9fa;
    color: #6c5ce7;
}

.dropdown-link i {
    width: 16px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 8px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 85px;
        width: 100%;
        height: calc(100vh - 85px);
        background: rgba(28, 28, 30, 0.98);
        backdrop-filter: blur(20px);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        border-top: 2px solid var(--secondary-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 50px 30px;
        gap: 24px;
        align-items: stretch;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 16px 20px;
        text-align: center;
        border-radius: 15px;
        margin-bottom: 8px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .dropdown-link {
        color: white;
    }
    
    .dropdown-link:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #c4a962;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 20px;
        height: 75px;
    }
    
    .nav-logo {
        height: 38px;
    }
}