/**
 * Expressions Theme - Customizer Styles
 * Blocksy-like typography control styling
 */

/* ===== TYPOGRAPHY CONTROL ===== */
.expressions-typography-control {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Panel Container */
.typography-panel {
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.typography-panel.active {
    display: block;
}

/* Panel Header */
.panel-header {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    background: #f7f7f7;
    display: flex;
    align-items: center;
}

.back-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #0073aa;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.back-button:hover {
    color: #005a87;
}

.back-arrow {
    font-size: 16px;
    line-height: 1;
}

/* Preview Row */
.preview-row {
    padding: 15px;
}

.preview-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.preview-field:last-child {
    border-bottom: none;
}

.preview-field:hover {
    background-color: #f9f9f9;
}

.field-label {
    color: #666;
    font-weight: 500;
    min-width: 60px;
}

.field-value {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0073aa;
    font-weight: 500;
}

.toggle-icon {
    color: #999;
    font-size: 10px;
}

/* Search Container */
.search-container {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.font-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    box-sizing: border-box;
}

.font-search:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Font List */
.font-list {
    max-height: 300px;
    overflow-y: auto;
}

.font-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.font-item:hover {
    background-color: #f5f5f5;
}

.font-item:last-child {
    border-bottom: none;
}

.font-item-name {
    color: #333;
    font-size: 13px;
}

/* Weight List */
.weight-list {
    max-height: 300px;
    overflow-y: auto;
}

.weight-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.weight-item:hover {
    background-color: #f5f5f5;
}

.weight-item:last-child {
    border-bottom: none;
}

.weight-item-name {
    color: #333;
    font-size: 13px;
}

/* Responsive Tabs */
.responsive-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    background: #f7f7f7;
    padding: 10px 15px;
    gap: 2px;
}

.tab-button {
    flex: 1;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 8px 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tab-button:first-child {
    border-radius: 3px 0 0 3px;
}

.tab-button:last-child {
    border-radius: 0 3px 3px 0;
}

.tab-button.active {
    background: #fff;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    z-index: 1;
}

.tab-button:hover:not(.active) {
    background: #f0f0f0;
}

.device-icon {
    fill: #666;
}

.tab-button.active .device-icon {
    fill: #0073aa;
}

/* Device Controls */
.device-controls {
    display: none;
    padding: 15px;
}

.device-controls.active {
    display: block;
}

.control-group {
    margin-bottom: 20px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 13px;
}

/* Range Controls */
.range-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.range-slider {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.range-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.value-display {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 100px;
}

.size-input {
    width: 60px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    text-align: center;
}

.unit {
    color: #666;
    font-size: 12px;
    min-width: 30px;
}

.unit-select {
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    background: #fff;
}

.text-transform-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    background: #fff;
    box-sizing: border-box;
}

/* Focus States */
.size-input:focus,
.unit-select:focus,
.text-transform-select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Customizer Specific */
.customize-control .customize-control-title {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #23282d;
}

/* Hidden Input */
.typography-value {
    display: none;
}