/* Styles for SEO Settings component */
.blog82ai-seo-settings {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* SEO Performance Overview - positioned at top */
.blog82ai-seo-performance {
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.blog82ai-seo-performance h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #23282d;
}

.blog82ai-performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.blog82ai-metric-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.blog82ai-metric-value {
    font-size: 32px;
    font-weight: 700;
    color: #0073aa;
    line-height: 1;
    margin-bottom: 8px;
}

.blog82ai-metric-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 5px;
}

.blog82ai-metric-change {
    font-size: 12px;
    font-weight: 500;
}

.blog82ai-metric-change.positive {
    color: #28a745;
}

.blog82ai-metric-change.negative {
    color: #dc3545;
}

/* Page Header */
.blog82ai-seo-settings .page-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 15px;
}

.blog82ai-seo-settings .page-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: #23282d;
}

.blog82ai-seo-settings .page-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Settings Form */
.blog82ai-seo-settings-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Settings Sections */
.blog82ai-settings-section {
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 25px;
}

.blog82ai-settings-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #23282d;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 10px;
}

/* Form Groups */
.blog82ai-form-group {
    margin-bottom: 20px;
}

.blog82ai-form-group:last-child {
    margin-bottom: 0;
}

.blog82ai-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #23282d;
    font-size: 14px;
}

.blog82ai-form-group label input[type="checkbox"] {
    margin-right: 8px;
}

.blog82ai-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

/* Form Row */
.blog82ai-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.blog82ai-form-row:last-child {
    margin-bottom: 0;
}

/* Form Inputs */
.blog82ai-form-group input[type="text"],
.blog82ai-form-group input[type="email"],
.blog82ai-form-group select,
.blog82ai-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}

.blog82ai-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.blog82ai-form-group input:focus,
.blog82ai-form-group select:focus,
.blog82ai-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Range Input Slider */
.blog82ai-range-input {
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog82ai-range-input input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #e1e1e1;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.blog82ai-range-input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.blog82ai-range-input input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.blog82ai-range-value {
    min-width: 50px;
    font-weight: 600;
    color: #0073aa;
    font-size: 14px;
}

/* Checkbox Groups */
.blog82ai-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.blog82ai-checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: normal;
}

.blog82ai-checkbox-group label input[type="checkbox"] {
    margin-right: 8px;
}

/* Integration Status */
.blog82ai-integration-status {
    margin-bottom: 20px;
}

.blog82ai-status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.blog82ai-status-item.status-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.blog82ai-status-item.status-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.blog82ai-status-item.status-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.blog82ai-status-icon {
    font-size: 16px;
}

.blog82ai-status-text {
    font-weight: 500;
    color: #155724;
}

.blog82ai-status-item.status-warning .blog82ai-status-text {
    color: #856404;
}

.blog82ai-status-item.status-error .blog82ai-status-text {
    color: #721c24;
}

/* Custom Rules */
.blog82ai-custom-rules {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 20px;
}

.blog82ai-rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.blog82ai-rule-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.blog82ai-rules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog82ai-rule {
    display: grid;
    grid-template-columns: 200px 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.blog82ai-rule select,
.blog82ai-rule input {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

/* Form Actions */
.blog82ai-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
}

.blog82ai-form-actions .button {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f7f7f7;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.blog82ai-form-actions .button:hover {
    background: #e7e7e7;
    border-color: #999;
}

.blog82ai-form-actions .button-primary {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.blog82ai-form-actions .button-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

.blog82ai-form-actions .button-secondary {
    background: #fff;
    color: #0073aa;
    border-color: #0073aa;
}

.blog82ai-form-actions .button-secondary:hover {
    background: #f0f8ff;
}

.blog82ai-form-actions .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog82ai-seo-settings {
        padding: 20px;
    }
    
    .blog82ai-form-row {
        grid-template-columns: 1fr;
    }
    
    .blog82ai-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .blog82ai-rule {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .blog82ai-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .blog82ai-performance-metrics {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .blog82ai-metric-value {
        font-size: 24px;
    }
}
