/* ========================================
   Modern Header Styles
   ======================================== */

/* Top Bar Styling */
.top-bar {
    font-size: 14px;
    transition: all 0.3s ease;
}

.top-bar a.hover-primary:hover {
    color: #007bff !important;
    transition: color 0.3s ease;
}

.top-bar .social-links a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.top-bar .social-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Main Header Styling */
.header-area {
    position: relative;
    z-index: 999;
    transition: all 0.3s ease;
    background-color: #1a1d20 !important;
}

.header-area .navigation {
    background: #1a1d20 !important;
}

.header-area .container,
.header-area .container-fluid {
    background: transparent !important;
}

#header-sticky.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1a1d20 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Navigation Styling */
.main-menu ul li {
    position: relative;
}

.main-menu .nav-link {
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 6px;
}

/* Hover State - Simple */
.main-menu .nav-link:hover {
    color: #007bff !important;
}

/* Active State - Simple */
.main-menu li.active .nav-link {
    color: #007bff !important;
}

.main-menu .nav-link i {
    font-size: 14px;
    opacity: 0.8;
}

/* Simple Blur Dropdown Styling */
.main-menu .dropdown {
    position: relative;
}

/* Dropdown Toggle Hover */
.main-menu .dropdown:hover > .nav-link {
    color: #007bff !important;
}

.main-menu .dropdown-menu.simple-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(26, 29, 32, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 10px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

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

.main-menu .dropdown-item {
    padding: 12px 18px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Dropdown Item Hover - Simple */
.main-menu .dropdown-item:hover {
    color: #007bff;
}

/* CTA Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

/* Search Button */
.search-trigger {
    transition: all 0.3s ease;
}

.search-trigger:hover {
    transform: scale(1.1);
    color: #007bff !important;
}

/* Mobile Navigation Sidebar */
.mobile-nav-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-nav-sidebar.show {
    visibility: visible;
    opacity: 1;
}

.mobile-nav-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav-sidebar.show .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-body {
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-body .hover-bg:hover {
    background-color: rgba(0, 123, 255, 0.05);
    color: #007bff !important;
}

.mobile-nav-body .hover-bg:hover i {
    color: #007bff;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .top-bar {
        display: none !important;
    }
    
    .header-inner-box {
        padding: 12px 0 !important;
    }
}

@media (max-width: 767px) {
    .mobile-nav-content {
        width: 280px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Utility Classes */
.hover-bg {
    transition: all 0.3s ease;
}

.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Removed complex animations for simpler navigation */

/* Dropdown Arrow Animation */
.main-menu .dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.main-menu .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Accessibility Improvements */
.btn:focus,
.nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .top-bar,
    .header-actions,
    .mobile-nav-sidebar {
        display: none !important;
    }
}
