/**
 * SD SEO Title & Description – Social Media Preview Styles
 *
 * @package SD_SEO_Title_Description
 */

.sdstd-social-preview {
    margin-top: 16px;
    padding: 16px;
    background: #f6f7f7;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.sdstd-social-preview h5 {
    font-size: 12px;
    font-weight: 600;
    color: #787c82;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

/* OG / Facebook / LinkedIn Card */
.sdstd-og-card {
    background: #fff;
    border: 1px solid #dadde1;
    border-radius: 4px;
    overflow: hidden;
    max-width: 500px;
    font-family: Helvetica, Arial, sans-serif;
}

.sdstd-og-card-image {
    width: 100%;
    height: 0;
    padding-bottom: 52.5%;
    position: relative;
    background: #e4e6eb;
    overflow: hidden;
}

.sdstd-og-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sdstd-og-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e4e6eb;
}

.sdstd-og-card-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #bec3c9;
}

.sdstd-og-card-body {
    padding: 10px 12px;
    border-top: 1px solid #dadde1;
}

.sdstd-og-card-domain {
    font-size: 11px;
    color: #65676b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
}

.sdstd-og-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    line-height: 1.3;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sdstd-og-card-desc {
    font-size: 14px;
    color: #65676b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Platform size hint (inline) */
.sdstd-platform-size-hint {
    font-size: 11px;
    color: #787c82;
    font-weight: 400;
    background: #f0f0f1;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
}

/* Fallback info box */
.sdstd-fallback-info {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 4px;
}

.sdstd-fallback-info > p:first-child {
    margin: 0 0 6px 0;
    font-size: 13px;
}

.sdstd-fallback-info .sdstd-help-text {
    margin: 4px 0;
    font-style: normal;
    font-size: 12px;
    line-height: 1.6;
}
