/* ==========================================
   OPEN GRAPH & SOCIAL PREVIEW
========================================== */

.og-preview-page .tool-page-title {
    font-size: 2.25rem;
    font-weight: 700;
}

.og-preview-page .tool-page-description {
    font-size: 1.075rem;
    color: var(--gray-color, #6b7280);
    max-width: 780px;
    margin: 0 auto;
}

/* ---------- Preview canvas ---------- */
.og-preview-body {
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    min-height: 360px;
    border-radius: 0 0 0.375rem 0.375rem;
}

/* ---------- Base card ---------- */
.og-card {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border: 1px solid #dadde1;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.og-card-img {
    width: 100%;
    aspect-ratio: 1.91 / 1;
    background-color: #e4e6eb;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #dadde1;
}

.og-card-img.has-image .og-card-img-placeholder {
    display: none;
}

.og-card-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #8a8d91;
    font-size: 0.85rem;
}

.og-card-img-placeholder i {
    font-size: 2rem;
}

.og-card-body {
    padding: 10px 12px;
}

.og-card-domain {
    font-size: 0.72rem;
    color: #606770;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.og-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1d2129;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.og-card-desc {
    font-size: 0.85rem;
    color: #606770;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Twitter/X: rounded, title over domain differently ---------- */
.og-card-twitter {
    border-radius: 16px;
}

.og-card-twitter .og-card-img {
    border-radius: 0;
}

.og-card-twitter .og-card-domain {
    order: 3;
    text-transform: none;
    margin-bottom: 0;
    margin-top: 2px;
}

.og-card-twitter .og-card-body {
    display: flex;
    flex-direction: column;
}

.og-card-twitter .og-card-title {
    order: 1;
}

.og-card-twitter .og-card-desc {
    order: 2;
}

/* ---------- LinkedIn: squarer, heavier title ---------- */
.og-card-linkedin {
    border-radius: 4px;
}

.og-card-linkedin .og-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #000000;
}

.og-card-linkedin .og-card-desc {
    display: none;
}

/* ---------- WhatsApp: compact bubble ---------- */
.og-card-whatsapp {
    max-width: 420px;
    border-radius: 10px;
    background: #dcf8c6;
    border-color: #cdeeb4;
}

.og-card-whatsapp .og-card-img {
    background-color: #cfe9bd;
}

/* ---------- Code block ---------- */
.og-code {
    background: #1f2937;
    color: #e5e7eb;
    padding: 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.55;
    overflow-x: auto;
    margin: 0;
    max-height: 360px;
    white-space: pre;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .og-preview-page .tool-page-title {
        font-size: 1.75rem;
    }

    .og-preview-body {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 575px) {
    .og-code {
        font-size: 0.7rem;
    }
}
