/* SuperNOVA UI: Breadcrumbs */

.nova-breadcrumbs {
    container-type: inline-size;
    min-width: 0;
    color: var(--text-secondary);
}

.nova-breadcrumbs__list {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow-x: auto;
    margin: 0;
    padding: 4px;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) transparent;
    white-space: nowrap;
}

.nova-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.nova-breadcrumbs__content {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 220px;
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    transition:
        color 150ms ease,
        border-color 150ms ease,
        background 150ms ease,
        box-shadow 150ms ease;
}

.nova-breadcrumbs a.nova-breadcrumbs__content:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}

.nova-breadcrumbs a.nova-breadcrumbs__content:focus-visible {
    outline: none;
    border-color: var(--border-accent-soft);
    color: var(--text-primary);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.nova-breadcrumbs__item--current .nova-breadcrumbs__content {
    color: var(--text-primary);
    background: var(--surface-active);
}

.nova-breadcrumbs__item--disabled .nova-breadcrumbs__content {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: var(--disabled-opacity);
}

.nova-breadcrumbs__label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.nova-breadcrumbs__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.nova-breadcrumbs__icon-svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.nova-breadcrumbs__separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.nova-breadcrumbs__separator > svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.nova-breadcrumbs__item--overflow {
    display: none;
}

.nova-breadcrumbs__overflow-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    border: 1px solid var(--border-subtle);
    border-radius: 9px;
    color: var(--text-muted);
    background: var(--surface-subtle);
    font-weight: 750;
}

.showcase-breadcrumbs-grid {
    display: grid;
    gap: 20px;
}

.showcase-breadcrumbs-narrow {
    width: min(100%, 430px);
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-subtle);
}

.nova-page-demo-breadcrumbs {
    width: 100%;
    margin-bottom: 10px;
}

@container (max-width: 520px) {
    .nova-breadcrumbs__item--intermediate {
        display: none;
    }

    .nova-breadcrumbs__item--overflow {
        display: inline-flex;
    }

    .nova-breadcrumbs__item--current {
        flex: 1 1 auto;
        overflow: hidden;
    }

    .nova-breadcrumbs__item--current .nova-breadcrumbs__content {
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .nova-breadcrumbs__item--intermediate {
        display: none;
    }

    .nova-breadcrumbs__item--overflow {
        display: inline-flex;
    }

    .nova-breadcrumbs__item--current {
        flex: 1 1 auto;
        overflow: hidden;
    }
}
