/**
* ENHANCED NAVIGATION
* Premium navigation styles and effects
* 2025/2026 Modern Navigation
*/

/* ============================================
  ENHANCED NAVBAR
  ============================================ */
.navbar-enhanced {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar-enhanced.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom-color: rgba(102, 126, 234, 0.2);
}

body.dark-mode .navbar-enhanced {
    background: rgba(0, 0, 0, 0.9);
    border-bottom-color: rgba(102, 126, 234, 0.2);
}

body.dark-mode .navbar-enhanced.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

/* ============================================
  NAVIGATION LINKS
  ============================================ */
.nav-link-enhanced {
    position: relative;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link-enhanced::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
}

.nav-link-enhanced:hover::before,
.nav-link-enhanced.active::before {
    width: 80%;
}

.nav-link-enhanced:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.nav-link-enhanced.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* ============================================
  MOBILE MENU
  ============================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 80px 30px 30px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

body.dark-mode .mobile-menu {
    background: rgba(0, 0, 0, 0.95);
}

/* ============================================
  BREADCRUMBS
  ============================================ */
.breadcrumbs-enhanced {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.breadcrumbs-enhanced a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs-enhanced a:hover {
    color: #667eea;
}

.breadcrumbs-enhanced .separator {
    color: var(--text-color-light);
    opacity: 0.5;
}

.breadcrumbs-enhanced .current {
    color: var(--text-color);
    font-weight: 600;
}

/* ============================================
  SIDEBAR NAVIGATION
  ============================================ */
.sidebar-nav {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 20px;
    background: var(--background-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.sidebar-nav-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.sidebar-nav-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateX(5px);
}

.sidebar-nav-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: #667eea;
    font-weight: 600;
    border-left: 3px solid #667eea;
}

/* ============================================
  PAGINATION
  ============================================ */
.pagination-enhanced {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.pagination-enhanced a,
.pagination-enhanced span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    background: var(--background-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-enhanced a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.pagination-enhanced .active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.pagination-enhanced .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
  TAB NAVIGATION
  ============================================ */
.tabs-enhanced {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
    overflow-x: auto;
}

.tab-enhanced {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-color-light);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.tab-enhanced::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.tab-enhanced:hover {
    color: #667eea;
}

.tab-enhanced:hover::after {
    width: 100%;
}

.tab-enhanced.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-enhanced.active::after {
    width: 100%;
}

/* ============================================
  RESPONSIVE DESIGN
  ============================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .navbar-enhanced .nav-links {
        display: none;
    }

    .sidebar-nav {
        position: relative;
        top: 0;
        max-height: none;
    }

    .tabs-enhanced {
        gap: 4px;
    }

    .tab-enhanced {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* ============================================
  ACCESSIBILITY
  ============================================ */
.nav-link-enhanced:focus,
.tab-enhanced:focus,
.pagination-enhanced a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .nav-link-enhanced,
    .sidebar-nav-item,
    .pagination-enhanced a,
    .tab-enhanced {
        transition: none;
    }

    .nav-link-enhanced:hover,
    .sidebar-nav-item:hover {
        transform: none;
    }
}

