/* ============================================
   Modern Professional Navbar Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Navbar Base Styles */
.modern-navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

/* Brand Logo Styles */
.brand-logo {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-logo:hover .brand-text {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Links */
.modern-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    position: relative;
}

.modern-navbar .nav-link i {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.modern-navbar .nav-link:hover {
    color: #60a5fa !important;
    background: rgba(59, 130, 246, 0.1);
}

.modern-navbar .nav-link:hover i {
    opacity: 1;
}

/* Active link indicator */
.modern-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: #60a5fa;
    transition: transform 0.3s ease;
}

.modern-navbar .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease !important;
    border: none !important;
}

.cta-button::after {
    display: none !important;
}

.cta-button:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.4);
}

/* Admin Link Styling */
.admin-link {
    background: rgba(139, 92, 246, 0.15) !important;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.admin-link:hover {
    background: rgba(139, 92, 246, 0.25) !important;
    border-color: rgba(139, 92, 246, 0.5);
    color: #c4b5fd !important;
}

/* Dropdown Menu Styles */
.modern-dropdown {
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 250px;
}

.modern-dropdown .dropdown-header {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-dropdown .dropdown-header i {
    color: #60a5fa;
    font-size: 1.1rem;
}

.modern-dropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.modern-dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin: 0.25rem 0;
}

.modern-dropdown .dropdown-item i {
    color: #60a5fa;
    font-size: 1rem;
}

.modern-dropdown .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #ffffff;
    transform: translateX(4px);
}

/* Mobile Toggle Button */
.modern-navbar .navbar-toggler {
    padding: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.modern-navbar .navbar-toggler:hover {
    border-color: rgba(96, 165, 250, 0.5) !important;
    background: rgba(59, 130, 246, 0.1);
}

.modern-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

.modern-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .modern-navbar {
        padding: 0.5rem 0;
    }

    .modern-navbar .navbar-collapse {
        background: rgba(15, 23, 42, 0.98);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modern-navbar .nav-item {
        margin: 0.25rem 0;
    }

    .modern-navbar .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 0.5rem;
    }

    .cta-button {
        text-align: center;
        display: block;
        margin-top: 0.5rem;
    }

    .admin-link {
        margin-top: 0.5rem;
    }

    .modern-dropdown {
        background: rgba(15, 23, 42, 0.95);
        border: none;
        box-shadow: none;
        margin-top: 0.25rem;
    }
}

@media (min-width: 992px) {
    .modern-navbar .navbar-nav {
        gap: 0.25rem;
    }
}

/* Scrolled State */
.modern-navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Animation for dropdown */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-dropdown.show {
    animation: fadeIn 0.3s ease;
}

/* Accessibility - Focus States */
.modern-navbar .nav-link:focus-visible,
.modern-navbar .navbar-toggler:focus-visible,
.cta-button:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

/* Container Fluid Adjustments */
.modern-navbar .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Language Selector Styles */
.language-selector {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.language-selector:hover {
    background: rgba(59, 130, 246, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.5);
}

.language-selector .current-lang {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.language-dropdown {
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
}

.language-dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0;
}

.language-dropdown .dropdown-item .flag {
    font-size: 1.25rem;
}

.language-dropdown .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #ffffff;
    transform: translateX(4px);
}

.language-dropdown .dropdown-item.active,
.language-dropdown .dropdown-item:active {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

@media (max-width: 768px) {
    .modern-navbar .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .brand-text {
        font-size: 1.25rem;
    }

    .language-selector {
        margin-top: 0.5rem;
        justify-content: center;
    }

    .language-dropdown {
        background: rgba(15, 23, 42, 0.95);
        border: none;
        box-shadow: none;
        margin-top: 0.25rem;
    }
}
