/**
 * Breadcrumb Navigation Styles
 * SEO-friendly breadcrumb component
 *
 * @package ExamBlaze
 * @version 1.0
 */

/* Breadcrumb Container */
.breadcrumb-nav {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
}

/* Breadcrumb List */
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

/* Breadcrumb Item */
.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Breadcrumb Link */
.breadcrumb-item a {
    display: inline-flex;
    align-items: center;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 4px 0;
}

.breadcrumb-item a:hover {
    color: #f97316;
}

.breadcrumb-item a span {
    position: relative;
}

.breadcrumb-item a:hover span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: #f97316;
}

/* Active/Current Page */
.breadcrumb-item.active span {
    color: #f1f5f9;
    font-weight: 500;
}

/* Separator */
.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    color: #475569;
    font-size: 10px;
}

.breadcrumb-separator i {
    opacity: 0.7;
}

/* Home Icon (Optional) */
.breadcrumb-home-icon {
    margin-right: 6px;
    font-size: 13px;
}

/* Truncate long breadcrumb names on mobile */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 10px 0;
    }

    .breadcrumb-list {
        font-size: 13px;
    }

    .breadcrumb-separator {
        padding: 0 6px;
        font-size: 9px;
    }

    /* Truncate middle items if too many */
    .breadcrumb-item:not(:first-child):not(:last-child) span {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .breadcrumb-list {
        font-size: 12px;
    }

    .breadcrumb-separator {
        padding: 0 5px;
    }

    /* On very small screens, only show first and last */
    .breadcrumb-item:not(:first-child):not(:last-child) {
        display: none;
    }

    /* Show ellipsis instead */
    .breadcrumb-item:first-child::after {
        content: '...';
        padding: 0 8px;
        color: #475569;
        font-size: 12px;
    }
}

/* Dark theme adjustment (if needed) */
.breadcrumb-nav.light-theme {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

.breadcrumb-nav.light-theme .breadcrumb-item a {
    color: #64748b;
}

.breadcrumb-nav.light-theme .breadcrumb-item a:hover {
    color: #f97316;
}

.breadcrumb-nav.light-theme .breadcrumb-item.active span {
    color: #1e293b;
}

.breadcrumb-nav.light-theme .breadcrumb-separator {
    color: #cbd5e1;
}

/* Sticky breadcrumbs (optional) */
.breadcrumb-nav.sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

/* Animation on load */
.breadcrumb-list {
    animation: breadcrumbFadeIn 0.3s ease-out;
}

@keyframes breadcrumbFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
