/*
 * File Path: assets/css/admin/classification/classification-genre-picker.css
 * Classification metabox -- Genre Picker 3-level cascade:
 * steps, Layer 0 group buttons, Layer 1 category buttons, Layer 2 genre chips.
 * Component of mbs-admin-classification.css (R-015).
 */

/* ── Genre Picker steps ──────────────────────────────────────── */

.mbs-genre-picker .mbs-genre-step {
    margin-bottom: 10px;
}

.mbs-genre-picker .mbs-genre-step:last-child {
    margin-bottom: 0;
}

.mbs-genre-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #3c434a;
    margin-bottom: 6px;
}

/* ── Layer 0: Group buttons ──────────────────────────────────── */

.mbs-group-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mbs-group-btn {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    height: auto;
    line-height: 1.5;
    transition: background 0.1s, border-color 0.1s, color 0.1s;
}

.mbs-classification-metabox .mbs-group-btn--active,
.mbs-classification-metabox .mbs-group-btn--active:hover,
.mbs-classification-metabox .mbs-group-btn--active:focus {
    background: var(--mbs-status-info) !important;
    border-color: var(--mbs-status-info) !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none;
}

/* ── Layer 1: L1 category buttons ────────────────────────────── */

.mbs-l1-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mbs-l1-btn {
    font-size: 11px;
    padding: 3px 9px;
    height: auto;
    line-height: 1.5;
    transition: background 0.1s, border-color 0.1s, color 0.1s;
}

.mbs-classification-metabox .mbs-l1-btn--active,
.mbs-classification-metabox .mbs-l1-btn--active:hover,
.mbs-classification-metabox .mbs-l1-btn--active:focus {
    background: var(--mbs-status-info) !important;
    border-color: var(--mbs-status-info) !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none;
}

/* ── Layer 2: Genre option chips ─────────────────────────────── */

.mbs-genre-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mbs-genre-chips--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
}

.mbs-genre-option {
    font-size: 12px;
    padding: 3px 10px;
    height: auto;
    line-height: 1.5;
    transition: background 0.1s, border-color 0.1s, color 0.1s;
    position: relative;
}

.mbs-classification-metabox .mbs-genre-option--selected,
.mbs-classification-metabox .mbs-genre-option--selected:hover,
.mbs-classification-metabox .mbs-genre-option--selected:focus {
    background: var(--mbs-status-info-dark) !important;
    border-color: var(--mbs-status-info-dark) !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none;
    padding-left: 24px;
}

/* Checkmark indicator on selected genre chips */
.mbs-genre-option--selected::before {
    content: '\2713';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
}

