/* ---------------------------------------------------------
   OpenGraph Preview Card
   Lightweight, theme‑friendly card used for OG link previews.
--------------------------------------------------------- */

.vern-og-card {
    border-radius: 0.75rem;
    font-family: system-ui, sans-serif;
    background-color: white;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: box-shadow 0.15s ease;
}

/* Hover feedback */
.vern-og-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* Image handling */
.vern-og-card img {
	border-top-left-radius: 0.75rem;
	border-top-right-radius: 0.75rem;
}

/* Body container */
.vern-og-card-body {
    padding: 12px;
}

/* Title */
.vern-og-card-title {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
}

/* Description */
.vern-og-card-desc {
    color: #555;
    font-size: 0.8em;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* URL line */
.vern-og-card-url {
    font-size: 0.6em;
    color: #888;
    word-break: break-all;
}

/* ---------------------------------------------------------
   Regular image embeds
--------------------------------------------------------- */

.vern-embed-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------------------------------------------------------
   Dark Mode Support
--------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
    .vern-og-card {
        background-color: #1e1e1e;
        box-shadow: 0 1px 3px rgba(255,255,255,0.08);
    }

    .vern-og-card:hover {
        box-shadow: 0 2px 6px rgba(255,255,255,0.12);
    }

    .vern-og-card-desc {
        color: #ccc;
    }

    .vern-og-card-url {
        color: #aaa;
    }
}
