/**
 * SD SEO Title & Description – Meta Box Styles
 *
 * @package SD_SEO_Title_Description
 */

.sdstd-meta-box-wrapper {
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sdstd-field-group {
    margin-bottom: 20px;
}

.sdstd-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #1d2327;
}

.sdstd-input-wrapper {
    position: relative;
}

.sdstd-input,
.sdstd-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.sdstd-input:focus,
.sdstd-textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.sdstd-textarea {
    resize: vertical;
    min-height: 80px;
}

.sdstd-char-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 4px;
    font-size: 12px;
    color: #50575e;
    gap: 4px;
}

.sdstd-char-count {
    font-weight: 600;
    transition: color 0.2s;
}

.sdstd-char-count.sdstd-status-good {
    color: #00a32a;
}

.sdstd-char-count.sdstd-status-warning {
    color: #dba617;
}

.sdstd-char-count.sdstd-status-error {
    color: #d63638;
}

.sdstd-help-text {
    margin-top: 4px;
    font-size: 12px;
    color: #787c82;
    font-style: italic;
}

.sdstd-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    cursor: pointer;
}

.sdstd-checkbox-label input[type="checkbox"] {
    margin: 0;
}

/* Image field */
.sdstd-image-field {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.sdstd-image-field .sdstd-input {
    flex: 1;
    min-width: 300px;
}

.sdstd-og-image-preview {
    margin-top: 10px;
}

.sdstd-og-image-preview img {
    max-width: 300px;
    max-height: 160px;
    border-radius: 4px;
    border: 1px solid #dcdcde;
}

/* Social section heading */
.sdstd-social-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f1;
    color: #1d2327;
}

.sdstd-social-section {
    margin-bottom: 30px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

/* Debugger links box */
.sdstd-debugger-box {
    background: #f0f6fc;
    border-color: #c5d9ed;
    margin-bottom: 0;
}

.sdstd-debugger-links-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sdstd-debugger-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #2271b1;
    background: #fff;
    border: 1px solid #c5d9ed;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sdstd-debugger-link:hover {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.sdstd-debugger-link:hover .dashicons {
    color: #fff;
}

.sdstd-debugger-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
    color: #50575e;
    transition: color 0.15s ease;
}

.sdstd-debugger-link .dashicons-facebook { color: #1877F2; }
.sdstd-debugger-link .dashicons-linkedin { color: #0A66C2; }
.sdstd-debugger-link .dashicons-twitter { color: #000; }
