/* Aura CMS — Theme panel (reuses cms-settings-group from panel.css) */
#view-theme .cms-settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#view-theme .cms-settings-group__head {
    align-items: center;
}

#view-theme .cms-settings-group__head .cms-badge {
    flex-shrink: 0;
}

.theme-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.theme-catalog-filters {
    margin-bottom: 12px;
}

.theme-catalog-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.theme-catalog__filter {
    max-width: 220px;
}

.theme-tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.theme-tag-pill {
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid var(--cms-border, #e2e8f0);
    background: var(--cms-surface, #fff);
    font-size: 12px;
    font-weight: 600;
    color: var(--cms-text-secondary, #64748b);
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
}

.theme-tag-pill:hover {
    border-color: var(--cms-accent, #0f172a);
    color: var(--cms-accent, #0f172a);
}

.theme-tag-pill.is-active {
    background: var(--cms-accent, #0f172a);
    color: #fff;
    border-color: var(--cms-accent, #0f172a);
}

.theme-catalog__card {
    border: 1px solid var(--cms-border, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
    background: var(--cms-surface, #fff);
}

.theme-catalog__card.is-active {
    border-color: var(--cms-accent, #0f172a);
}

.theme-catalog__preview {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #f1f5f9;
}

.theme-catalog__preview--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.theme-catalog__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-catalog__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.theme-catalog__desc {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    min-height: 2.6em;
}

.theme-catalog__card.has-update {
    border-color: var(--cms-accent, #0f172a);
}

.theme-catalog__ver {
    font-size: 11px;
    color: #94a3b8;
}

.theme-catalog__update-hint {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--cms-accent, #0f172a);
}

.theme-catalog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.theme-catalog__apply,
.theme-catalog__update {
    align-self: flex-start;
}

.theme-catalog__badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.theme-catalog__vip-badge {
    background: #fef3c7;
    color: #92400e;
}

.theme-catalog__owned-badge {
    background: #dbeafe;
    color: #1e40af;
}

.theme-catalog__user-badge {
    background: #ede9fe;
    color: #5b21b6;
}

.theme-upload-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.theme-catalog__free-badge {
    background: #dcfce7;
    color: #166534;
}

.theme-catalog__lang-badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.theme-catalog__cat-badge {
    background: #f1f5f9;
    color: #334155;
}

.theme-catalog__card.is-vip-locked {
    opacity: 0.96;
}

.theme-catalog__vip-hint {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #92400e;
}

.theme-catalog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.theme-catalog__store {
    text-decoration: none;
}
