/* Reusable category archive layout — used for /category/* */

.fk-cat {
    --fk-bg: #0e0e1a;
    --fk-surface: #161625;
    --fk-border: rgba(100, 255, 218, 0.12);
    --fk-text: #e6f1ff;
    --fk-muted: #8a94a8;
    --fk-accent: #64ffda;

    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 64px;
    color: var(--fk-text);
}

.fk-cat__header {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--fk-border);
}
.fk-cat__title {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.fk-cat__desc {
    margin: 6px 0 0;
    color: var(--fk-muted);
    font-size: 0.95rem;
}

/* ---------- Hero ---------- */
.fk-hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    background: var(--fk-surface);
    border: 1px solid var(--fk-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 48px;
}
.fk-hero__img {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #000;
}
.fk-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.fk-hero__img:hover img { transform: scale(1.02); }

.fk-hero__body {
    padding: 28px 28px 28px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fk-eyebrow {
    display: inline-block;
    color: var(--fk-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-top: 2px solid var(--fk-accent);
    padding-top: 10px;
    width: fit-content;
}

.fk-hero__title {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.2;
    font-weight: 800;
}
.fk-hero__title a {
    color: var(--fk-text);
    text-decoration: none;
}
.fk-hero__title a:hover { color: var(--fk-accent); }

.fk-hero__excerpt {
    margin: 0;
    color: var(--fk-muted);
    font-size: 1rem;
    line-height: 1.5;
}
.fk-hero__meta {
    margin: 0;
    color: var(--fk-muted);
    font-size: 0.85rem;
}

.fk-hero__related {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--fk-border);
}
.fk-rel {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    text-decoration: none;
    align-items: start;
}
.fk-rel__img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 2px;
}
.fk-rel__title {
    color: var(--fk-text);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fk-rel:hover .fk-rel__title { color: var(--fk-accent); }

/* ---------- Headlines rail ---------- */
.fk-rail { margin-bottom: 48px; }
.fk-rail__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--fk-border);
}
.fk-rail__title,
.fk-list__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.fk-rail__more {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--fk-accent);
    text-decoration: none;
}
.fk-rail__more:hover { text-decoration: underline; }
.fk-rail__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* ---------- Card (shared rail + list) ---------- */
.fk-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.fk-card__img-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #000;
    border-radius: 2px;
}
.fk-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.fk-card:hover .fk-card__img { transform: scale(1.04); }
.fk-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--fk-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fk-card:hover .fk-card__title { color: var(--fk-accent); }
.fk-card__meta {
    margin: 0;
    color: var(--fk-muted);
    font-size: 0.78rem;
}

/* ---------- List ---------- */
.fk-list { margin-bottom: 36px; }
.fk-list__title {
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--fk-border);
}
.fk-list__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
}

/* ---------- Pager ---------- */
.fk-pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}
.fk-pager a,
.fk-pager span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--fk-border);
    border-radius: 2px;
    color: var(--fk-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.fk-pager a:hover { border-color: var(--fk-accent); color: var(--fk-accent); }
.fk-pager .current {
    background: var(--fk-accent);
    color: #0e0e1a;
    border-color: var(--fk-accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .fk-hero { grid-template-columns: 1fr; }
    .fk-hero__body { padding: 0 22px 22px; }
    .fk-hero__img { aspect-ratio: 16 / 9; }
    .fk-rail__grid { grid-template-columns: repeat(2, 1fr); }
    .fk-list__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .fk-cat { padding: 20px 14px 40px; }
    .fk-cat__title { font-size: 1.5rem; }
    .fk-hero__title { font-size: 1.35rem; }
    .fk-hero__related { grid-template-columns: 1fr; }
    .fk-rail__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .fk-list__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
