/* ═══════════════════════════════════════════
   Post Boost Injector — Frontend Embed Styles
   ═══════════════════════════════════════════ */

/* ── Base ── */
.pbi-embed {
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s, transform 0.15s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.pbi-embed:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.pbi-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.pbi-link:hover {
    text-decoration: none !important;
}

/* ── Label Badge ── */
.pbi-label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1.4;
}

/* ── Thumbnail ── */
.pbi-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Body ── */
.pbi-title {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a2e;
}

.pbi-excerpt {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.55;
    color: #555;
}

.pbi-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.pbi-cat {
    background: #f0f0f5;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    color: #6366f1;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pbi-date {
    color: #999;
}

/* ═══════════════════════════════════════
   STYLE: CARD (image beside text)
   ═══════════════════════════════════════ */
.pbi-style-card {
    background: #fff;
    border: 1px solid #e5e5ea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pbi-style-card .pbi-link {
    display: flex;
    align-items: stretch;
}

.pbi-style-card .pbi-thumb-wrap {
    width: 200px;
    min-width: 200px;
    min-height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f0f5;
}

.pbi-style-card .pbi-body {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.pbi-style-card .pbi-label {
    top: auto;
    left: auto;
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
    align-self: flex-start;
}

/* Card responsive */
@media (max-width: 600px) {
    .pbi-style-card .pbi-link {
        flex-direction: column;
    }
    .pbi-style-card .pbi-thumb-wrap {
        width: 100%;
        min-width: 100%;
        height: 180px;
    }
}

/* ═══════════════════════════════════════
   STYLE: BANNER (full-width image on top)
   ═══════════════════════════════════════ */
.pbi-style-banner {
    background: #fff;
    border: 1px solid #e5e5ea;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.pbi-style-banner .pbi-thumb-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f0f0f5;
}

.pbi-style-banner .pbi-body {
    padding: 20px 24px;
}

.pbi-style-banner .pbi-title {
    font-size: 20px;
}

/* ═══════════════════════════════════════
   STYLE: MINIMAL (text only, clean border)
   ═══════════════════════════════════════ */
.pbi-style-minimal {
    background: #fafbfc;
    border: 1px solid #dde1e6;
    border-left: 4px solid #6366f1;
}

.pbi-style-minimal .pbi-thumb-wrap {
    display: none;
}

.pbi-style-minimal .pbi-body {
    padding: 16px 20px;
}

.pbi-style-minimal .pbi-label {
    position: relative;
    top: auto;
    left: auto;
    display: inline-block;
    margin-bottom: 6px;
    font-size: 10px;
    padding: 2px 8px;
    background: #6366f1;
}

.pbi-style-minimal .pbi-title {
    font-size: 15px;
    margin-bottom: 5px;
}

.pbi-style-minimal .pbi-excerpt {
    font-size: 13px;
    margin-bottom: 6px;
}

/* ═══════════════════════════════════════
   ABOVE TITLE WRAPPER
   ═══════════════════════════════════════ */
.pbi-above-title {
    display: block;
    margin-bottom: 12px;
}

.pbi-above-title .pbi-embed {
    margin: 0 0 12px 0;
}
