/* ============================================================
   BLOG ARCHIVE — ΧΡΗΣΙΜΕΣ ΣΥΜΒΟΥΛΕΣ
   ============================================================ */

/* Page Title */
.blog-archive__title {
    font-size: 72px;
    font-weight: 100;
    letter-spacing: 7.2px;
    text-align: center;
    color: var(--color-black);
    text-transform: uppercase;
    line-height: 1;
    padding: 40px 0 56px;
}

/* ============================================================
   GRID
   ============================================================ */
.blog-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 72px;
    padding-bottom: 64px;
}

/* ============================================================
   BLOG CARD — normal state
   ============================================================ */
.blog-card {
    display: block;
    position: relative;
    height: 470px;
    overflow: hidden;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    background-color: var(--color-gray-800);
    cursor: pointer;
}

/* Hover gradient overlay */
.blog-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(11.73deg,
            rgba(0, 0, 0, 0.3) 5.44%,
            rgba(0, 0, 0, 0.09) 29.73%,
            rgba(0, 0, 0, 0.027) 43.15%,
            rgba(0, 0, 0, 0) 56.91%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Hover overlay — darker, initially hidden */
.blog-card__overlay--hover {
    opacity: 0;
}

.blog-card:hover .blog-card__overlay--hover {
    opacity: 1;
}

.blog-card:hover .blog-card__overlay:not(.blog-card__overlay--hover) {
    opacity: 0;
}

/* Card content */
.blog-card__body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 32px;
}

.blog-card__date {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.42px;
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1;
}

.blog-card__bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-card__cat {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1;
}

.blog-card__cat-label {
    display: none;
}

.blog-card__title-label {
    display: block;
}

/* Excerpt — hidden normally, visible on hover */
.blog-card__excerpt {
    font-size: 16px;
    font-weight: 200;
    letter-spacing: 0;
    line-height: 1.4;
    color: var(--color-white);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.35s ease,
        opacity 0.35s ease;
}

.blog-card:hover .blog-card__excerpt {
    max-height: 120px;
    opacity: 1;
}

.blog-card__more {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-underline-offset: 4px;
    line-height: 1;
}

/* Scale image on hover */
.blog-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 0;
}

/* Note: background-image on the element itself handles the image, overlay handles color */

/* ============================================================
   PAGINATION / LOAD MORE
   ============================================================ */
.blog-archive__pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-bottom: 80px;
}

.blog-archive__load-more {
    min-width: 220px;
}

.blog-archive__count {
    font-size: 18px;
    font-weight: 500;
    color: #868686;
    text-align: center;
    font-family: var(--font-primary);
}

.blog-archive__empty {
    padding: 80px 0;
    font-size: 20px;
    font-weight: 200;
    color: var(--color-gray-500);
    text-align: center;
}

/* ============================================================
   RESPONSIVE — Figma 328:4546 (Blog 1.0 mobile, 390px frame)
   ============================================================ */
@media (max-width: 991px) {
    .blog-archive__title {
        font-size: 24px;
        /* Figma: H7 ExtraLight */
        font-weight: 200;
        letter-spacing: 0.72px;
        padding: 56px 0 24px;
    }

    /* Μία στήλη, κάρτες 232px με 8px κενό (Figma) */
    .blog-archive__grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-bottom: 40px;
    }

    .blog-card {
        height: 232px;
    }

    /* Keep the existing dark hover overlay permanently visible on touch screens. */
    .blog-card__overlay--hover {
        opacity: 1;
        background: rgba(0, 0, 0, 0.4);
    }

    .blog-card__overlay:not(.blog-card__overlay--hover) {
        opacity: 0;
    }

    .blog-card__body {
        padding: 16px;
    }

    .blog-card__bottom {
        gap: 24px;
    }

    .blog-card__cat-label {
        display: none;
    }

    .blog-card__title-label {
        display: block;
    }

    /* Excerpt πάντα ορατό — σε touch δεν υπάρχει hover (Figma 328:4815) */
    .blog-card__excerpt {
        max-height: none;
        opacity: 1;
        font-size: 12px;
        line-height: 1.6;
        letter-spacing: -0.24px;
    }

    .blog-card__more {
        font-size: 11px;
        letter-spacing: 1.1px;
    }

    .blog-archive__pagination {
        padding-bottom: 50px;
    }

    .blog-archive__load-more {
        min-width: 175px;
    }

    .btn-primary--outlined {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 30px;
        padding: 0px 10px;
        background: transparent;
        border: 1px solid var(--color-primary);
        color: var(--color-black);
        font-family: var(--font-primary);
        font-size: 14px;
        font-weight: var(--font-weight-medium);
        line-height: 1;
        letter-spacing: 1.6px;
        text-align: center;
        text-decoration: none;
        text-transform: uppercase;
        cursor: pointer;
        transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            color 0.2s ease,
            opacity 0.2s ease;
    }
}