/* ==================================================== */
/* HUISDIERPOLIS BLOG OVERZICHT - RESPONSIVE STYLING    */
/* Mobile: 1 kolom | Tablet: 2 | Desktop: 3            */
/* AVG-Proof | Geen externe fonts | Geen tracking      */
/* ==================================================== */

/* ============ CONTAINER ============ */

.hp-blog-overzicht {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    padding: 0 16px;
}

.hp-blog-overzicht * {
    box-sizing: border-box;
}

/* ============ GRID ============ */

.hp-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* ============ BLOG CARD ============ */

.hp-blog-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E5E3DC;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.hp-blog-card:hover {
    box-shadow: 0 6px 20px rgba(44, 44, 42, 0.10);
    border-color: #D3D1C7;
    transform: translateY(-2px);
}

.hp-blog-card:focus-visible {
    outline: 3px solid #378ADD;
    outline-offset: 2px;
}

/* ============ MEDIA (afbeelding) ============ */

.hp-blog-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #F1EFE8;
}

.hp-blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hp-blog-card:hover .hp-blog-card-img {
    transform: scale(1.04);
}

.hp-blog-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FBF8F1 0%, #F4EFE6 100%);
}

.hp-blog-card-img-emoji {
    font-size: 56px;
    opacity: 0.45;
}

/* ============ BADGE (categorie) ============ */

.hp-blog-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #185FA5;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ============ BODY ============ */

.hp-blog-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hp-blog-card-titel {
    font-size: 18px;
    font-weight: 700;
    color: #2C2C2A;
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.hp-blog-card-excerpt {
    font-size: 14px;
    color: #5F5E5A;
    line-height: 1.55;
    margin: 0 0 16px;
    flex: 1;
}

/* ============ META REGEL ============ */

.hp-blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #F1EFE8;
}

.hp-blog-card-datum {
    font-size: 12px;
    color: #888780;
    font-weight: 500;
}

.hp-blog-card-lees {
    font-size: 13px;
    color: #185FA5;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.hp-blog-card:hover .hp-blog-card-lees {
    transform: translateX(2px);
}

/* ============ LEGE STAAT ============ */

.hp-blog-leeg {
    text-align: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #FBF8F1 0%, #F4EFE6 100%);
    border-radius: 20px;
    border: 1px solid #E5E3DC;
}

.hp-blog-leeg-icoon {
    font-size: 48px;
    margin-bottom: 12px;
}

.hp-blog-leeg-titel {
    font-size: 22px;
    font-weight: 700;
    color: #2C2C2A;
    margin: 0 0 8px;
}

.hp-blog-leeg-tekst {
    font-size: 14px;
    color: #5F5E5A;
    margin: 0;
    line-height: 1.5;
}

/* ==================================================== */
/* TABLET (≥ 600px) — 2 kolommen                         */
/* ==================================================== */

@media (min-width: 600px) {
    .hp-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .hp-blog-card-titel {
        font-size: 19px;
    }
}

/* ==================================================== */
/* DESKTOP (≥ 900px) — 3 kolommen                        */
/* ==================================================== */

@media (min-width: 900px) {
    .hp-blog-overzicht {
        padding: 0 24px;
    }

    .hp-blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .hp-blog-card-titel {
        font-size: 19px;
    }

    .hp-blog-card-body {
        padding: 20px 22px 22px;
    }
}

/* ==================================================== */
/* GROTE DESKTOP (≥ 1200px) — iets ruimer                */
/* ==================================================== */

@media (min-width: 1200px) {
    .hp-blog-grid {
        gap: 32px;
    }

    .hp-blog-card-titel {
        font-size: 20px;
    }
}
