/* ---------------------------------------------------------
   COMPONENT: Breadcrumbs (Single Box / Pill Container)
   --------------------------------------------------------- */

/* The "Single Box" Container */
.pe-breadcrumb {
    display: inline-flex;       /* Shrink to fit content */
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50px;        /* Full Pill Shape */
    padding: 10px 24px;         /* Padding inside the box */
    
    margin: 20px 0 40px;
    list-style: none;
    box-shadow: 0 2px 10px var(--shadow-color);
    
    /* Glass Effect for Dark Mode */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Dark Mode Override */
[data-theme="dark"] .pe-breadcrumb {
    background: rgba(30, 41, 59, 0.6); /* Semi-transparent dark */
    border-color: rgba(255, 255, 255, 0.1);
}

/* Items (Links) - Clean, no boxes */
.pe-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    
    transition: color 0.2s ease;
}

/* Hover State */
a.pe-breadcrumb-item:hover {
    color: var(--primary);
}

/* Icons */
.pe-breadcrumb-item svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5px;
    opacity: 0.7;
    margin-top: -1px; 
}

/* Separator (Chevron) */
.pe-breadcrumb-sep {
    display: flex;
    align-items: center;
    color: var(--text-light);
    opacity: 0.5;
}
.pe-breadcrumb-sep svg {
    width: 14px;
    height: 14px;
}

/* Current Item */
.pe-breadcrumb-item.current {
    color: var(--text-main);
    font-weight: 700;
    cursor: default;
    pointer-events: none;
}
[data-theme="dark"] .pe-breadcrumb-item.current {
    color: #ffffff;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 600px) {
    .pe-breadcrumb {
        display: flex; /* Full width on mobile usually looks better */
        width: 100%;
        box-sizing: border-box;
        padding: 10px 15px;
        border-radius: 12px; /* Less rounded on mobile */
        overflow-x: auto;    /* Scrollable if too long */
        white-space: nowrap;
        flex-wrap: nowrap;
        
        /* Hide Scrollbar */
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }
    .pe-breadcrumb::-webkit-scrollbar { display: none; }
    
    .pe-breadcrumb-item {
        font-size: 0.85rem;
        flex-shrink: 0;
    }
}