/* ==========================================================================
   Fab Link Previews — Grid & Card Styles
   ========================================================================== */

.fab-lp-category-title {
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
}

/* Grid: 2 columns desktop, 1 column mobile */
.fab-lp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .category-kritikes #main-content,
    .category-reviews #main-content {
        padding-top: 120px !important;
    }

    .fab-lp-grid {
        grid-template-columns: 1fr;
    }
}

/* Card — entire card is a link */
.fab-lp-card {
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fab-lp-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.fab-lp-card:visited {
    color: inherit;
}

/* Card header: post title + excerpt */
.fab-lp-card__header {
    padding: 16px 16px 12px;
}

.fab-lp-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.3;
}

.fab-lp-card__excerpt {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* OG Preview block */
.fab-lp-card__og {
    margin: 0 16px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
}

.fab-lp-card__og-image-wrap {
    width: 100%;
    aspect-ratio: 1.91 / 1;
    overflow: hidden;
    background: #e0e0e0;
}

.fab-lp-card__og-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fab-lp-card__og-text {
    padding: 10px 12px;
}

.fab-lp-card__og-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.3;
}

.fab-lp-card__og-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fab-lp-card__og-domain {
    font-size: 12px;
    color: #999;
    margin: 0;
    text-transform: lowercase;
}

/* Fallback: raw URL when no OG data */
.fab-lp-card__url-fallback {
    padding: 0 16px 16px;
}

.fab-lp-card__url-fallback p {
    font-size: 13px;
    color: #999;
    margin: 0;
    word-break: break-all;
}

/* Pagination */
.fab-lp-pagination {
    margin-top: 40px;
    text-align: center;
}

.fab-lp-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.fab-lp-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.fab-lp-pagination .page-numbers.current {
    background: #333;
    color: #fff;
}

.fab-lp-pagination .page-numbers:hover:not(.current) {
    background: #e0e0e0;
}

/* Fullwidth layout — no sidebar, no page title */
.fab-lp-fullwidth {
    width: 100% !important;
    float: none !important;
}

.fab-lp-fullwidth + #sidebar,
.category-kritikes #sidebar,
.category-reviews #sidebar {
    display: none !important;
}

.category-kritikes #left-area,
.category-reviews #left-area {
    width: 100% !important;
    float: none !important;
}

/* Top margin to clear Divi fixed header */
.category-kritikes #main-content,
.category-reviews #main-content {
    padding-top: 120px !important;
}
