/* ================================================
   KooKoa Folders — Breadcrumb & Subfolder Cards CSS
   Breadcrumb Bar (native + retro) + Subfolder Cards
   ================================================ */

/* ================================================
   Breadcrumb Bar — WordPress native style
   ================================================ */
.kookoawpf-breadcrumb-bar {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 12px;
    margin-bottom: 8px;
    background: #f0f0f1;
    border-bottom: 1px solid #c3c4c7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
    overflow-x: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.media-frame-content .kookoawpf-breadcrumb-bar {
    border-left: none;
    border-right: none;
    border-top: none;
}

/* No visual change when "active" — stays the same clean bar */
.kookoawpf-breadcrumb-bar.kookoawpf-breadcrumb-active {
    background: #f6f7f7;
}

.kookoawpf-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.kookoawpf-crumb {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 3px;
    color: #2271b1;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
    cursor: pointer;
    line-height: 1.4;
}

a.kookoawpf-crumb:hover {
    background: #dcdcde;
    color: #135e96;
}

a.kookoawpf-crumb:focus {
    outline: 1px solid #2271b1;
    outline-offset: 1px;
    box-shadow: none;
}

.kookoawpf-crumb-current {
    color: #1d2327;
    font-weight: 600;
    cursor: default;
}

.kookoawpf-crumb-root {
    color: #50575e;
}

a.kookoawpf-crumb-root:hover {
    color: #2271b1;
}

.kookoawpf-crumb-sep {
    color: #a7aaad;
    margin: 0 1px;
    font-size: 13px;
    user-select: none;
}

/* ================================================
   Breadcrumb Bar — Retro Dark style override
   ================================================ */
.kookoawpf-breadcrumb-retro.kookoawpf-breadcrumb-bar {
    background: var(--kookoawpf-bg);
    border-bottom-color: var(--kookoawpf-border);
    font-family: var(--kookoawpf-font);
}
/* Retro breadcrumb on post/page/CPT screens (not media library): add vertical spacing */
body:not(.upload-php) .kookoawpf-breadcrumb-retro.kookoawpf-breadcrumb-bar {
    margin-top: 20px;
    margin-bottom: 10px;
}
.kookoawpf-breadcrumb-retro.kookoawpf-breadcrumb-active {
    background: var(--kookoawpf-bg);
}
.kookoawpf-breadcrumb-retro .kookoawpf-crumb {
    color: #fff;
}
.kookoawpf-breadcrumb-retro a.kookoawpf-crumb:hover {
    background: var(--kookoawpf-hover);
    color: #fff;
}
.kookoawpf-breadcrumb-retro a.kookoawpf-crumb:focus {
    outline-color: var(--kookoawpf-green);
}
.kookoawpf-breadcrumb-retro .kookoawpf-crumb-current,
.kookoawpf-breadcrumb-retro .kookoawpf-crumb-root.kookoawpf-crumb-current {
    color: var(--kookoawpf-green);
}
.kookoawpf-breadcrumb-retro .kookoawpf-crumb-root {
    color: #fff;
}
.kookoawpf-breadcrumb-retro a.kookoawpf-crumb-root:hover {
    color: #fff;
}
.kookoawpf-breadcrumb-retro a.kookoawpf-crumb:hover {
    background: #30363d;
    color: var(--kookoawpf-green);
}
.kookoawpf-breadcrumb-retro .kookoawpf-crumb-sep {
    color: #fff;
}

/* ================================================
   Subfolder Cards — Dark cells, light container
   ================================================ */
.kookoawpf-subfolder-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
    font-family: var(--kookoawpf-font);
    font-size: 13px;
}

.media-frame-content .kookoawpf-subfolder-cards {
    border-left: none;
    border-right: none;
}

.kookoawpf-subfolder-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 5px;
    color: #e6edf3;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.12s;
    line-height: 1.4;
    max-width: 220px;
}

.kookoawpf-subfolder-card:hover,
.kookoawpf-subfolder-card.kookoawpf-hover-sync {
    background: #252d3a;
    border-color: var(--kookoawpf-green-dim);
    box-shadow: none;
    color: #39FF14;
}

.kookoawpf-subfolder-card:hover .kookoawpf-card-name,
.kookoawpf-subfolder-card.kookoawpf-hover-sync .kookoawpf-card-name {
    color: #39FF14;
}

.kookoawpf-subfolder-card:hover .kookoawpf-card-count,
.kookoawpf-subfolder-card.kookoawpf-hover-sync .kookoawpf-card-count {
    color: #39FF14;
}

.kookoawpf-subfolder-card:active {
    background: #0d1117;
}

.kookoawpf-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.kookoawpf-card-icon.kookoawpf-card-emoji {
    font-size: 15px;
}

.kookoawpf-card-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 130px;
    font-size: 13px;
    color: #ffffff;
}

.kookoawpf-card-count {
    margin-left: 20px;
    font-size: 13px;
    font-weight: 400;
    color: #ffffff;
    flex-shrink: 0;
}

.kookoawpf-card-has-children {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
    margin-right: 2px;
}

