/* ============================================================
   Smart Breadcrumbs — All 8 Display Styles
   Version 1.0.0
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
.sbc-trail {
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.sbc-trail a {
    color: inherit;
    text-decoration: none;
}

.sbc-trail a:hover {
    text-decoration: underline;
}

.sbc-trail .sbc-item {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.sbc-trail .sbc-current {
    font-weight: 500;
}

/* ── Separator shared ─────────────────────────────────────── */
.sbc-sep {
    display: inline-block;
    margin: 0 4px;
    color: #aaa;
    font-size: 0.8em;
    user-select: none;
}

/* ============================================================
   Style 1 — Classic › Arrows
   ============================================================ */
.sbc-style-1 {
    color: #555;
}
.sbc-style-1 .sbc-item a {
    color: #2271b1;
}
.sbc-style-1 .sbc-item a:hover {
    color: #135e96;
}
.sbc-style-1 .sbc-current {
    color: #1d2327;
}
.sbc-style-1 .sbc-sep {
    color: #bbb;
}

/* ============================================================
   Style 2 — Slash separator
   ============================================================ */
.sbc-style-2 {
    color: #555;
}
.sbc-style-2 .sbc-item a {
    color: #2271b1;
}
.sbc-style-2 .sbc-item a:hover {
    color: #135e96;
    text-decoration: underline;
}
.sbc-style-2 .sbc-sep--slash {
    margin: 0 6px;
    color: #ccc;
    font-size: 1em;
    font-weight: 300;
}
.sbc-style-2 .sbc-current {
    color: #1d2327;
}

/* ============================================================
   Style 3 — Pill Badges
   ============================================================ */
.sbc-style-3 {
    gap: 6px;
}
.sbc-style-3 .sbc-item {
    gap: 0;
}
.sbc-style-3 .sbc-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: #f0f0f1;
    border: 1px solid #ddd;
    color: #555;
    font-size: 0.8125rem;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.sbc-style-3 .sbc-pill:hover {
    background: #e0e0e0;
    color: #1d2327;
    text-decoration: none;
}
.sbc-style-3 .sbc-pill--active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    font-weight: 500;
}

/* ============================================================
   Style 4 — Bold current + middot
   ============================================================ */
.sbc-style-4 {
    color: #555;
}
.sbc-style-4 .sbc-item a {
    color: #2271b1;
}
.sbc-style-4 .sbc-item a:hover {
    color: #135e96;
}
.sbc-style-4 .sbc-sep--dot {
    margin: 0 5px;
    color: #bbb;
    font-size: 1.1em;
    line-height: 1;
}
.sbc-style-4 .sbc-current {
    color: #1d2327;
    font-weight: 600;
}

/* ============================================================
   Style 5 — Connected Step bar
   ============================================================ */
.sbc-style-5 {
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
}
.sbc-style-5 .sbc-item {
    gap: 0;
}
.sbc-style-5 .sbc-step {
    display: inline-block;
    padding: 5px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-right: none;
    color: #555;
    font-size: 0.8125rem;
    white-space: nowrap;
    transition: background 0.15s;
}
.sbc-style-5 .sbc-item:first-child .sbc-step {
    border-radius: 6px 0 0 6px;
}
.sbc-style-5 .sbc-item:last-child .sbc-step {
    border-right: 1px solid #ddd;
    border-radius: 0 6px 6px 0;
}
.sbc-style-5 a.sbc-step {
    color: #2271b1;
}
.sbc-style-5 a.sbc-step:hover {
    background: #f0f6fc;
    text-decoration: none;
}
.sbc-style-5 .sbc-step--active {
    background: #f6f7f7;
    color: #1d2327;
    font-weight: 500;
    border-right: 1px solid #ddd !important;
}

/* ============================================================
   Style 6 — Underline hover
   ============================================================ */
.sbc-style-6 {
    color: #555;
}
.sbc-style-6 .sbc-item a.sbc-underline {
    color: #555;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s, color 0.2s;
}
.sbc-style-6 .sbc-item a.sbc-underline:hover {
    text-decoration-color: #2271b1;
    color: #2271b1;
}
.sbc-style-6 .sbc-sep--angle {
    margin: 0 6px;
    color: #ccc;
}
.sbc-style-6 .sbc-current {
    color: #1d2327;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #2271b1;
    text-underline-offset: 3px;
}

/* ============================================================
   Style 7 — Numbered Steps
   ============================================================ */
.sbc-style-7 {
    gap: 8px;
    align-items: center;
}
.sbc-style-7 .sbc-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sbc-style-7 .sbc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f0f0f1;
    border: 1px solid #ccc;
    color: #555;
    flex-shrink: 0;
}
.sbc-style-7 .sbc-num-label {
    font-size: 0.875rem;
}
.sbc-style-7 .sbc-item a.sbc-num-label {
    color: #2271b1;
}
.sbc-style-7 .sbc-item a.sbc-num-label:hover {
    color: #135e96;
}
.sbc-style-7 .sbc-current .sbc-num {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}
.sbc-style-7 .sbc-current .sbc-num-label {
    color: #1d2327;
    font-weight: 600;
}
.sbc-style-7 .sbc-connector {
    display: inline-block;
    width: 18px;
    height: 1px;
    background: #ccc;
    flex-shrink: 0;
}

/* ============================================================
   Style 8 — Minimal dots
   ============================================================ */
.sbc-style-8 {
    gap: 6px;
    align-items: center;
}
.sbc-style-8 .sbc-item {
    gap: 6px;
    align-items: center;
}
.sbc-style-8 .sbc-minimal-link {
    color: #999;
    font-size: 0.8125rem;
}
.sbc-style-8 a.sbc-minimal-link {
    color: #777;
    transition: color 0.15s;
}
.sbc-style-8 a.sbc-minimal-link:hover {
    color: #2271b1;
}
.sbc-style-8 .sbc-current .sbc-minimal-link {
    color: #1d2327;
    font-size: 0.875rem;
    font-weight: 600;
}
.sbc-style-8 .sbc-sep--mdot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 2px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ============================================================
   Responsive — collapse on small screens
   ============================================================ */
@media (max-width: 480px) {
    .sbc-trail {
        font-size: 0.8125rem;
    }
    /* On very small screens hide intermediate items in style-5 / style-7 */
    .sbc-style-5 .sbc-item:not(:first-child):not(:last-child):not(:nth-last-child(2)),
    .sbc-style-7 .sbc-item:not(:first-child):not(:last-child):not(:nth-last-child(2)) {
        display: none;
    }
}

/* ============================================================
   Screen-reader text helper
   ============================================================ */
.sbc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
