/* ================================================================
   Flavor Categories — Magazine-style category archive
   ================================================================ */

:root {
    --flavor-accent: #c8102e;
}

/* ── Section wrapper ── */
.fc-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 60px;
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Heading ── */
.fc-section__heading {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    color: #1a1a1a;
    padding: 18px 0 14px;
    border-bottom: 2px solid var(--flavor-accent);
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.fc-section__desc {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    color: #555;
    margin: -8px 0 20px;
}

/* ================================================================
   CARD — shared base
   ================================================================ */

.fc-card {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: #fff;
    border-radius: 0;
    aspect-ratio: 1 / 1;
}

.fc-card img,
.fc-card .fc-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.35s ease, transform 0.5s ease;
}

.fc-card .fc-card__placeholder {
    background: linear-gradient(135deg, #2c2c2c 0%, #444 100%);
}

.fc-card:hover img {
    filter: brightness(1.15);
    transform: scale(1.03);
}

/* Overlay gradient */
.fc-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 120px 28px 32px;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.45) 55%,
        rgba(0, 0, 0, 0) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
}

/* Label (date / author) */
.fc-card__label {
    display: inline-block;
    background: var(--flavor-accent);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 7px;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

/* Title */
.fc-card__title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    text-align: center;
}

/* ================================================================
   HERO ROW — 1 large + 2 small
   ================================================================ */

.fc-grid-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}

/* Main card (large left) */
.fc-card--main {
    grid-row: 1 / 3;
    aspect-ratio: auto;
}

.fc-card--main .fc-card__overlay {
    padding: 180px 48px 48px;
}

.fc-card--main .fc-card__title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.fc-card--main .fc-card__label {
    font-size: 24px;
    padding: 4px 9px;
    margin-bottom: 18px;
}

/* Small cards (stacked right) */
.fc-card--small .fc-card__title {
    font-size: 32px;
    line-height: 1.15;
}

.fc-card--small .fc-card__label {
    font-size: 17px;
}

/* ── Hero: only 1 post → full-width single card ── */
.fc-grid-hero--count-1 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

.fc-grid-hero--count-1 .fc-card--main {
    grid-row: auto;
    aspect-ratio: 16 / 7;
}

/* ── Hero: only 2 posts → main left + 1 small right (single row) ── */
.fc-grid-hero--count-2 {
    grid-template-rows: 1fr;
}

.fc-grid-hero--count-2 .fc-card--main {
    grid-row: 1 / 2;
}

.fc-grid-hero--count-2 .fc-card--small {
    aspect-ratio: auto;
}

/* ================================================================
   BOTTOM ROWS — 3 equal cards per row
   ================================================================ */

.fc-grid-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.fc-card--bottom .fc-card__title {
    font-size: 32px;
    line-height: 1.15;
}

.fc-card--bottom .fc-card__label {
    font-size: 17px;
}

/* ================================================================
   PAGINATION
   ================================================================ */

.fc-pagination {
    margin-top: 40px;
    text-align: center;
}

.fc-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.fc-pagination li {
    display: inline-block;
}

.fc-pagination a,
.fc-pagination span {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-family: inherit;
}

.fc-pagination a:hover {
    background: var(--flavor-accent);
    color: #fff;
    border-color: var(--flavor-accent);
}

.fc-pagination .current {
    background: var(--flavor-accent);
    color: #fff;
    border-color: var(--flavor-accent);
}

/* ================================================================
   EMPTY STATE
   ================================================================ */

.fc-empty {
    text-align: center;
    padding: 80px 20px;
    font-size: 18px;
    color: #888;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
    .fc-grid-hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .fc-card--main {
        grid-row: auto;
        aspect-ratio: 1 / 1;
    }

    .fc-grid-hero--count-1 .fc-card--main {
        aspect-ratio: 1 / 1;
    }

    .fc-card--main .fc-card__overlay {
        padding: 120px 28px 32px;
    }

    .fc-card--main .fc-card__title {
        font-size: 36px;
    }

    .fc-card--main .fc-card__label {
        font-size: 20px;
    }

    .fc-card--small .fc-card__title {
        font-size: 26px;
    }

    .fc-grid-bottom {
        grid-template-columns: 1fr;
    }

    .fc-card--bottom .fc-card__title {
        font-size: 26px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .fc-card--main .fc-card__title {
        font-size: 40px;
    }

    .fc-card--bottom .fc-card__title {
        font-size: 26px;
    }

    .fc-card--small .fc-card__title {
        font-size: 26px;
    }
}
