/* Shared Navigation and Breadcrumb Styles */

/* Navigation Bar */
.navbar {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-brand:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.brand-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: var(--radius);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.brand-logo {
    height: 40px;
    max-width: 150px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* Breadcrumb Section */
.breadcrumb-section {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
}

.breadcrumb-item:hover {
    color: var(--primary);
    background: var(--bg-secondary);
}

.breadcrumb-item.current {
    color: var(--text-primary);
    font-weight: 600;
    background: rgba(103, 126, 234, 0.1);
    border: 1px solid rgba(103, 126, 234, 0.2);
}

.breadcrumb-separator {
    color: var(--text-light);
    font-size: 0.8rem;
    margin: 0 0.25rem;
}

/* MODAL-STYLE MOBILE MENU - GUARANTEED TO BE ON TOP */

/* Create a new root container for mobile menu that bypasses all stacking contexts */
.mobile-menu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647; /* Maximum z-index value */
    pointer-events: none;
}

.mobile-menu-modal.active {
    display: block;
    pointer-events: all;
}

/* Modal backdrop */
.mobile-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-modal.active .mobile-menu-backdrop {
    opacity: 1;
}

/* Modal content panel */
.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.95), rgba(45, 55, 72, 0.95));
    backdrop-filter: blur(20px);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu-modal.active .mobile-menu-panel {
    transform: translateX(0);
}

/* Close button */
.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Menu header */
.mobile-menu-header {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.mobile-menu-brand {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mobile-menu-brand-icon {
    font-size: 1.5rem;
}

.mobile-menu-brand-logo {
    height: 50px;
    max-width: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Menu links container */
.mobile-menu-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

/* Individual menu links */
.mobile-menu-link {
    display: block;
    padding: 1.2rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu-link.active {
    background: linear-gradient(45deg, rgba(103, 126, 234, 0.8), rgba(139, 92, 246, 0.8));
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: 0 0 20px rgba(103, 126, 234, 0.4);
}

/* Mobile responsive behavior */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1000;
    }

    /* Hide default nav-links on mobile */
    .nav-links {
        display: none !important;
    }

    /* Prevent body scroll when menu is open */
    body.mobile-menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
}

@media (min-width: 769px) {
    .mobile-menu-modal {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: none !important;
    }
}