/**
 * Blog Template Editor Styles - Premium UI
 *
 * Styles for the Blog Grid template settings panel in Gutenberg.
 * Compact, modern design with button-style controls.
 *
 * @package Blog_Over
 */

/* Premium Panel Styling */
.blog-over-premium-panel .components-panel__body-toggle {
    font-weight: 600;
}

.blog-over-premium-panel>.components-panel__body-title {
    border-bottom: 1px solid #e2e4e7;
}

/* Control Groups - Compact spacing */
.blog-over-control-group {
    margin-bottom: 16px;
}

.blog-over-control-group:last-child {
    margin-bottom: 0;
}

/* Control Label */
.blog-over-control-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1e1e1e;
    margin-bottom: 8px;
}

/* Button Group Control */
.blog-over-button-group-control {
    width: 100%;
}

.blog-over-button-group {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.blog-over-button-group .components-button {
    font-size: 12px;
    font-weight: 500;
    padding: 8px 4px;
    min-height: 32px;
    border-radius: 0 !important;
    border: 1px solid #949494;
    margin: 0 !important;
    justify-content: center;
    flex: 1;
}

.blog-over-button-group .components-button:first-child {
    border-radius: 4px 0 0 4px !important;
}

.blog-over-button-group .components-button:last-child {
    border-radius: 0 4px 4px 0 !important;
}

.blog-over-button-group .components-button:not(:first-child) {
    margin-left: -1px !important;
}

.blog-over-button-group .components-button.is-secondary {
    background: #fff;
    color: #1e1e1e;
    border-color: #949494;
}

.blog-over-button-group .components-button.is-secondary:hover {
    background: #f0f0f0;
    color: #1e1e1e;
}

.blog-over-button-group .components-button.is-primary,
.blog-over-button-group .components-button.is-active {
    background: #3858e9;
    color: #fff;
    border-color: #3858e9;
    z-index: 1;
}

.blog-over-button-group .components-button.is-primary:hover {
    background: #2145e6;
}

/* Divider */
.blog-over-divider {
    border: none;
    border-top: 1px solid #e2e4e7;
    margin: 16px 0;
}

/* Compact Range Control */
.blog-over-range-compact .components-range-control {
    margin-bottom: 0;
}

.blog-over-range-compact .components-base-control__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.blog-over-range-compact .components-range-control__wrapper {
    margin-top: 0;
}

/* Compact Select Control */
.blog-over-select-compact .components-base-control {
    margin-bottom: 0;
}

.blog-over-select-compact .components-base-control__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-over-select-compact .components-select-control__input {
    min-height: 32px;
    font-size: 13px;
}

/* Compact Toggle */
.blog-over-compact-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.blog-over-toggle-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-over-toggle-icon {
    color: #757575;
}

.blog-over-toggle-label {
    font-size: 13px;
    color: #1e1e1e;
}

.blog-over-compact-toggle .components-toggle-control {
    margin-bottom: 0;
}

.blog-over-compact-toggle .components-base-control__field {
    margin-bottom: 0;
}

.blog-over-compact-toggle .components-toggle-control__label {
    display: none;
}

/* Collapsible Categories */
.blog-over-collapsible-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    color: #1e1e1e;
    background: none;
    border: none;
    cursor: pointer;
}

.blog-over-collapsible-header:hover {
    color: #3858e9;
}

.blog-over-collapsible-header .components-button__icon {
    margin-left: auto;
}

.blog-over-cat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    margin-left: 8px;
    background: #3858e9;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 9px;
}

/* Category List - Compact */
.blog-over-category-list {
    max-height: 160px;
    overflow-y: auto;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e2e4e7;
    margin-top: 8px;
}

.blog-over-category-list .components-checkbox-control {
    margin-bottom: 4px;
}

.blog-over-category-list .components-checkbox-control:last-child {
    margin-bottom: 0;
}

.blog-over-category-list .components-checkbox-control__label {
    font-size: 12px;
}

.blog-over-category-list .components-base-control__field {
    margin-bottom: 0;
}

.blog-over-cat-note {
    margin: 8px 0 0;
    font-size: 11px;
    color: #757575;
    font-style: italic;
}

/* Panel Icon Color */
.blog-over-template-settings-panel .components-panel__icon {
    color: #3858e9;
}

/* Remove extra padding from panel body */
.blog-over-premium-panel .components-panel__body>.components-panel__body-title+* {
    margin-top: 0;
}

/* Scrollbar Styling */
.blog-over-category-list::-webkit-scrollbar {
    width: 6px;
}

.blog-over-category-list::-webkit-scrollbar-track {
    background: #e2e4e7;
    border-radius: 3px;
}

.blog-over-category-list::-webkit-scrollbar-thumb {
    background: #949494;
    border-radius: 3px;
}

.blog-over-category-list::-webkit-scrollbar-thumb:hover {
    background: #757575;
}