/* ============================================================
   FindBrief Post List Widget — fb-post-list.css
   Matches the design in the reference screenshot exactly.
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.fb-post-list {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    max-width: 420px;
}

/* ── Header row ──────────────────────────────────────────── */
.fb-pl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.fb-pl-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #111111;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.fb-pl-view-all {
    font-size: 13px;
    font-weight: 600;
    color: #4B5AF0;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.fb-pl-view-all:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* ── List reset ──────────────────────────────────────────── */
.fb-pl-list {
    list-style: none;
    margin:  0;
    padding: 0;
}

/* ── Single post item ────────────────────────────────────── */
.fb-pl-item {
    border-bottom: 1px solid #efefef;
    padding: 14px 0;
}

.fb-pl-item:first-child {
    padding-top: 0;
}

.fb-pl-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ── Clickable link row ──────────────────────────────────── */
.fb-pl-item-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.fb-pl-item-link:hover .fb-pl-title {
    color: #4B5AF0;
}

/* ── Thumbnail ───────────────────────────────────────────── */
.fb-pl-thumb {
    flex-shrink: 0;
    width:  88px;
    height: 66px;
    border-radius: 8px;
    overflow: hidden;
    background: #e8e8e8;
}

.fb-pl-thumb img {
    width:   100%;
    height:  100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.fb-pl-item-link:hover .fb-pl-thumb img {
    transform: scale(1.04);
}

/* Placeholder when no featured image */
.fb-pl-thumb-placeholder {
    width:   100%;
    height:  100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4B5AF0 0%, #7B8BF7 100%);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

/* ── Post content area ───────────────────────────────────── */
.fb-pl-content {
    flex: 1;
    min-width: 0;
}

.fb-pl-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #111111;
    line-height: 1.4;
    margin: 0 0 6px;
    padding: 0;
    transition: color 0.2s;
    /* Prevent text overflow on very long titles */
    word-break: break-word;
}

/* ── Meta row (date · read time) ─────────────────────────── */
.fb-pl-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #888888;
    flex-wrap: wrap;
}

.fb-pl-date,
.fb-pl-read-time {
    white-space: nowrap;
}

.fb-pl-dot {
    color: #cccccc;
    font-size: 10px;
    line-height: 1;
}

/* ── Empty state ─────────────────────────────────────────── */
.fb-empty {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

/* ── Responsive — narrow screens ─────────────────────────── */
@media (max-width: 400px) {
    .fb-post-list {
        padding: 16px 14px;
    }

    .fb-pl-thumb {
        width:  72px;
        height: 54px;
    }

    .fb-pl-title {
        font-size: 12.5px;
    }
}
