/* Modern Sitemap Styles */
.modern-sitemap {
    max-width: 1200px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.sitemap-item {
    margin-bottom: 0.5rem;
}

.sitemap-page {
    margin-bottom: 0.5rem;
    position: relative;
}

.sitemap-link {
    text-decoration: none;
    color: #1a73e8;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(26, 115, 232, 0.05);
}

.sitemap-link:hover {
    background: rgba(26, 115, 232, 0.1);
    transform: translateX(4px);
}

.page-title {
    font-size: 1rem;
    font-weight: 500;
}

/* Level specific styles */
.level-marker {
    width: 20px;
    height: 2px;
    background: rgba(26, 115, 232, 0.3);
    margin-right: 8px;
    display: inline-block;
}

.sitemap-page.level-0 .sitemap-link {
    font-weight: 600;
    background: rgba(26, 115, 232, 0.1);
}

.sitemap-page.level-1 .sitemap-link {
    background: rgba(26, 115, 232, 0.05);
}

.sitemap-page.level-2 .sitemap-link {
    background: rgba(26, 115, 232, 0.02);
}

.sitemap-children {
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(26, 115, 232, 0.2);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sitemap-item {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Hover effects */
.sitemap-link:hover .level-marker {
    background: rgba(26, 115, 232, 0.6);
}

/* Breadcrumbs Styles */
.modern-breadcrumbs {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: rgba(26, 115, 232, 0.05);
    border-radius: 5px;
    padding: 0.6rem 0.9rem;
    margin: 0.9rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.3rem;
    border: 1px solid rgba(26, 115, 232, 0.1);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    overflow-x: auto;
    width: auto;
    max-width: 100%;
}

.breadcrumb-item {
    color: #000000;  /* Changed to black for root links */
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.48rem;
    border-radius: 3px;
    background: transparent;
    margin: 0;
    white-space: nowrap;
}

.breadcrumb-item:not(.current):hover {
    color: #1557b0;  /* Keep hover state blue for better UX */
    background: rgba(26, 115, 232, 0.1);
    transform: translateY(-1px);
}

.breadcrumb-separator {
    color: rgba(26, 115, 232, 0.4);
    margin: 0 0.15rem;
    font-weight: 300;
    font-size: 0.9rem;
    display: inline-block;
    vertical-align: middle;
}

.breadcrumb-item.current {
    color: #1a73e8;  /* Keep current page blue for distinction */
    font-weight: 500;
    background: rgba(26, 115, 232, 0.1);
    box-shadow: 0 1px 2px rgba(26, 115, 232, 0.1);
    font-size: 0.9rem;
    margin: 0;
}

h4.breadcrumb-item.current {
    margin: 0;
    padding: 0.24rem 0.48rem;
    font-size: 0.9rem;
    line-height: normal;
}

/* Animation for breadcrumbs */
@keyframes fadeInBreadcrumb {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-breadcrumbs {
    animation: fadeInBreadcrumb 0.3s ease-out forwards;
}

/* Responsive handling */
@media (max-width: 768px) {
    .modern-breadcrumbs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem;
    }
    
    .breadcrumb-item {
        font-size: 0.75rem;
    }
}