/* =========================================================
   MOF COLUMN ARCHIVES - NEW DATABASE-DRIVEN ARCHIVE
   ========================================================= */

.mof-archive-shell {
    overflow: hidden;
}

.mof-archive-hero {
    position: relative;
    padding: 34px 38px;
    margin-bottom: 22px;
    color: #fff;
    background:
        linear-gradient(125deg, rgba(5, 28, 54, .98), rgba(12, 67, 113, .96)),
        url('https://mofleagues.com/pictures/columnarchives.png') center 36% / cover no-repeat;
    border-bottom: 5px solid #d9252a;
}

.mof-archive-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 88% 15%, rgba(255,255,255,.14), transparent 34%);
}

.mof-archive-kicker {
    position: relative;
    z-index: 1;
    margin-bottom: 7px;
    color: #ff3b3f;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2.2px;
}

.mof-archive-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -.8px;
}

.mof-archive-hero p {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 13px 0 0;
    color: rgba(255,255,255,.86);
    font-size: 15px;
    line-height: 1.6;
}

.mof-archive-stat {
    position: absolute;
    z-index: 2;
    right: 34px;
    bottom: 27px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.mof-archive-stat strong {
    font-size: 34px;
    line-height: 1;
}

.mof-archive-stat span {
    margin-top: 3px;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* FILTERS */
.mof-archive-filters {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(135px, .7fr)) auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
    margin-bottom: 24px;
    border: 1px solid #d8d8d8;
    background: #f5f6f7;
}

.mof-archive-filters label {
    display: block;
    margin-bottom: 6px;
    color: #263645;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.mof-archive-filters input,
.mof-archive-filters select {
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    padding: 0 11px;
    border: 1px solid #c8cdd2;
    border-radius: 2px;
    outline: none;
    background: #fff;
    color: #222;
    font-size: 13px;
}

.mof-archive-filters input:focus,
.mof-archive-filters select:focus {
    border-color: #0b4d7d;
    box-shadow: 0 0 0 2px rgba(11,77,125,.08);
}

.mof-filter-actions {
    display: flex;
    gap: 7px;
    align-items: center;
}

.mof-filter-button,
.mof-clear-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    box-sizing: border-box;
    padding: 0 15px;
    border: 0;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .7px;
    text-decoration: none;
    cursor: pointer;
}

.mof-filter-button {
    background: #d9252a;
    color: #fff;
}

.mof-filter-button:hover {
    background: #bb1e23;
}

.mof-clear-button {
    border: 1px solid #c8cdd2;
    background: #fff;
    color: #253544;
}


/* CARD GRID */
.mof-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.mof-column-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d7dadd;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mof-column-card:hover {
    transform: translateY(-3px);
    border-color: #b8bec4;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.mof-card-image-link {
    display: block;
}

.mof-card-image-wrap {
    position: relative;
    height: 185px;
    overflow: hidden;
    background: #182633;
}

.mof-card-image-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.mof-column-card:hover .mof-card-image-wrap img {
    transform: scale(1.035);
}

.mof-card-image-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}

.mof-card-category {
    position: absolute;
    z-index: 2;
    left: 12px;
    bottom: 12px;
    padding: 6px 9px;
    background: #d9252a;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.mof-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 17px 15px;
}

.mof-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: #677583;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.mof-meta-dot {
    color: #d9252a;
}

.mof-card-body h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.28;
}

.mof-card-body h2 a {
    color: #162838;
    text-decoration: none;
}

.mof-card-body h2 a:hover {
    color: #d9252a;
}

.mof-card-series {
    margin-top: 7px;
    color: #687580;
    font-size: 11px;
    font-style: italic;
}

.mof-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-end;
    padding-top: 17px;
    margin-top: auto;
    border-top: 1px solid #eceeef;
}

.mof-card-author,
.mof-card-date {
    display: block;
}

.mof-card-author {
    color: #344554;
    font-size: 10px;
    font-weight: 800;
}

.mof-card-date {
    margin-top: 2px;
    color: #8b949b;
    font-size: 9px;
}

.mof-read-link {
    flex: 0 0 auto;
    color: #0a4c7d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .4px;
    text-decoration: none;
}

.mof-read-link:hover {
    color: #d9252a;
}


/* EMPTY / PAGINATION */
.mof-empty-state {
    padding: 65px 20px;
    text-align: center;
    border: 1px dashed #c8cdd2;
    background: #fafafa;
}

.mof-empty-state h3 {
    margin: 0 0 8px;
    color: #243544;
}

.mof-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 27px 0 8px;
    font-size: 11px;
    font-weight: 900;
}

.mof-pagination a {
    padding: 9px 13px;
    border: 1px solid #d1d5d8;
    background: #fff;
    color: #0a4c7d;
    text-decoration: none;
}

.mof-pagination a:hover {
    border-color: #0a4c7d;
}


/* RESPONSIVE */
@media (max-width: 1050px) {
    .mof-archive-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mof-filter-search {
        grid-column: 1 / -1;
    }

    .mof-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mof-archive-stat {
        position: static;
        align-items: flex-start;
        margin-top: 18px;
    }
}

@media (max-width: 680px) {
    .mof-archive-hero {
        padding: 27px 21px;
    }

    .mof-archive-filters {
        grid-template-columns: 1fr;
        padding: 13px;
    }

    .mof-filter-search {
        grid-column: auto;
    }

    .mof-filter-actions {
        flex-wrap: wrap;
    }

    .mof-archive-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mof-card-image-wrap {
        height: 205px;
    }

    .mof-pagination {
        gap: 10px;
        flex-wrap: wrap;
    }
}


/* =========================================================
   MOF COLUMN ARCHIVES - ALIGNMENT / TYPOGRAPHY TWEAKS
   Added after initial live-page review
   ========================================================= */

/* Keep "173 Archived Columns" on one clean line */
.mof-archive-stat {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
}

.mof-archive-stat strong {
    font-size: 34px;
    line-height: 1;
}

.mof-archive-stat span {
    margin-top: 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
}


/* Category tag: vertically center text inside red bar */
.mof-card-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    box-sizing: border-box;
    padding: 0 12px;
    left: 0;
    bottom: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .2px;
    white-space: nowrap;
}


/* S87 • Madden 27: larger, lighter, tighter */
.mof-card-meta {
    gap: 4px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
}

.mof-meta-dot {
    margin: 0 1px;
    font-size: 11px;
}


/* Keep author, date, and Read Column on one row */
.mof-card-footer {
    align-items: center;
    gap: 10px;
}

.mof-card-footer > div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

.mof-card-author,
.mof-card-date {
    display: inline;
}

.mof-card-author {
    font-size: 10px;
    font-weight: 700;
}

.mof-card-date {
    margin-top: 0;
    font-size: 10px;
}

.mof-read-link {
    margin-left: auto;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
}


/* On smaller screens, let footer wrap gracefully instead of squeezing */
@media (max-width: 680px) {
    .mof-card-footer {
        flex-wrap: wrap;
    }

    .mof-card-footer > div {
        flex-wrap: wrap;
    }

    .mof-read-link {
        margin-left: 0;
    }

    .mof-archive-stat {
        flex-wrap: wrap;
    }
}


/* =========================================================
   MOF COLUMN ARCHIVES - FINAL SPACING / BASELINE TWEAKS
   ========================================================= */

/* Prevent legacy site CSS from spreading S87 / dot / Madden 27 apart */
.mof-card-meta {
    justify-content: flex-start !important;
    width: auto !important;
}

.mof-card-meta span {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mof-meta-dot {
    margin: 0 3px !important;
}


/* Force footer text onto one shared baseline */
.mof-card-footer {
    align-items: baseline !important;
    flex-wrap: nowrap !important;
}

.mof-card-footer > div {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    white-space: nowrap;
}

.mof-card-author,
.mof-card-date,
.mof-read-link {
    line-height: 1 !important;
    vertical-align: baseline !important;
}

.mof-read-link {
    display: inline-block;
    align-self: baseline !important;
}


/* Pagination: larger and lighter for sharper readability */
.mof-pagination {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
}

.mof-pagination span {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
}

.mof-pagination a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
}


/* Mobile can still wrap where necessary */
@media (max-width: 680px) {
    .mof-card-footer {
        flex-wrap: wrap !important;
    }

    .mof-card-footer > div {
        flex-wrap: wrap !important;
    }
}
