/**
 * Professional Navigation Bar with SVG Icons
 * Clean, centered, responsive design
 */

/* Reset and Base Styles */
.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 10000;
    padding: 0;
    margin: 0;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 16px 20px;
    gap: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* Language Switcher in Nav */
.nav-lang-switcher {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .nav-lang-switcher {
        position: fixed;
        top: 16px;
        right: 16px;
        transform: none;
        z-index: 10001;
    }
}

.nav-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #f8f9fa;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.nav-link:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(91, 81, 216, 0.15);
}

.nav-link.active {
    background: linear-gradient(135deg, #5B51D8 0%, #8B5CF6 100%);
    box-shadow: 0 4px 16px rgba(91, 81, 216, 0.3);
}

.nav-link.active .nav-icon path {
    fill: #ffffff !important;
}

.nav-icon {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
}

/* Tooltip */
.nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: #1a1a1a;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    z-index: 1001;
}

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

/* Add padding to body to prevent content from hiding under fixed nav */
body {
    padding-top: 84px !important;
}

/* Hide all other navigations */
.wp-block-navigation,
.icon-menu,
.bottom-nav,
nav:not(.main-navigation) {
    display: none !important;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 767px) {
    /* Hide desktop navigation on mobile */
    .main-navigation {
        display: none;
    }
    
    /* Show mobile bottom nav */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
        padding: 10px 12px 14px;
        z-index: 10000;
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-decoration: none;
        color: #6C757D;
        transition: all 0.3s ease;
        padding: 8px 10px;
        border-radius: 12px;
        min-width: 60px;
    }
    
    .mobile-nav-item.active {
        color: #5B51D8;
        background: rgba(91, 81, 216, 0.1);
    }
    
    .mobile-nav-item:hover {
        background: rgba(91, 81, 216, 0.08);
    }
    
    .mobile-nav-item svg {
        width: 26px;
        height: 26px;
    }
    
    .mobile-nav-item span {
        font-size: 10px;
        font-weight: 600;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    /* Add padding to body for mobile bottom nav */
    body {
        padding-top: 0 !important;
        padding-bottom: 72px !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .nav-menu {
        gap: 30px;
        padding: 14px 16px;
    }
    
    .nav-link {
        width: 48px;
        height: 48px;
    }
    
    .nav-icon {
        width: 26px;
        height: 26px;
    }
}

/* Large screen */
@media (min-width: 1400px) {
    .nav-menu {
        gap: 50px;
    }
    
    .nav-link {
        width: 56px;
        height: 56px;
    }
    
    .nav-icon {
        width: 30px;
        height: 30px;
    }
}

/* Smooth animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-navigation {
    animation: fadeInDown 0.5s ease;
}

/* Accessibility */
.nav-link:focus {
    outline: 2px solid #5B51D8;
    outline-offset: 2px;
}

.mobile-nav-item:focus {
    outline: 2px solid #5B51D8;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .main-navigation,
    .mobile-bottom-nav {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Fix Icon Size - Override WordPress Defaults */
.main-navigation .nav-icon,
.mobile-bottom-nav svg {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    display: block !important;
}

.mobile-bottom-nav svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
}

/* Fix Nav Link Size */
.main-navigation .nav-link {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    flex-shrink: 0 !important;
}

/* Override WordPress Image Defaults */
.main-navigation svg,
.mobile-bottom-nav svg {
    max-width: none !important;
    height: auto !important;
}
