/**
 * Native archive homepage
 * Uses shared tokens from frontend/assets/css/shared/variables.css
 */

.btfc-home-archive {
    color: #071B36;
    font-family: var(--font-body, inherit);
}

.btfc-home-hero {
    position: relative;
    background: var(--btfc-photo-hero-fallback, #04101F);
    overflow: hidden;
}

.btfc-home-hero.has-photo {
    background-image: var(--btfc-home-hero-image);
    background-size: cover;
    background-position: var(--btfc-photo-hero-position, center 62%);
    background-repeat: no-repeat;
}

.btfc-home-hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--btfc-photo-hero-wash);
    pointer-events: none;
}

.btfc-home-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.25rem 1.25rem 3.5rem;
}

.btfc-home-hero-copy {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.btfc-home-hero-badge {
    display: block;
    width: clamp(7.5rem, 14vw, 10.5rem);
    height: auto;
    flex-shrink: 0;
}

.btfc-home-hero-text {
    min-width: 0;
}

.btfc-home-hero-title {
    margin: 0 0 1rem;
    line-height: 0.92;
}

.btfc-home-hero-title-club,
.btfc-home-hero-title-gold {
    display: block;
    font-family: var(--font-heading, 'Bebas Neue', sans-serif);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btfc-home-hero-title-club {
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 4.1rem);
}

.btfc-home-hero-title-gold {
    color: #F5B800;
    font-size: clamp(2.1rem, 4.4vw, 3.5rem);
}

.btfc-home-hero-lede {
    margin: 0 0 1.5rem;
    max-width: 34rem;
    color: #e8edf3;
    font-size: 1.05rem;
    line-height: 1.55;
}

.btfc-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btfc-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.15rem;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
}

.btfc-home-btn-gold {
    background: #F5B800;
    color: #04101F;
}

.btfc-home-btn-gold:hover {
    background: #D4A000;
    color: #04101F;
}

.btfc-home-btn-ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.btfc-home-btn-ghost:hover {
    border-color: #F5B800;
    color: #F5B800;
}

.btfc-home-btn-navy {
    margin-top: 1rem;
    background: #071B36;
    color: #ffffff;
}

.btfc-home-btn-navy:hover {
    background: #0B2342;
    color: #F5B800;
}

.btfc-home-latest {
    background: #ffffff;
    border: 1px solid #E4E7EC;
    box-shadow: 0 10px 28px rgba(4, 16, 31, 0.18);
}

.btfc-home-latest-head {
    background: #071B36;
    color: #ffffff;
    padding: 0.7rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.btfc-home-latest-body {
    padding: 1rem 1.1rem 1.15rem;
}

.btfc-home-latest-comp {
    margin: 0 0 0.85rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btfc-home-latest-scoreline {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.6rem;
    align-items: center;
}

.btfc-home-latest-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #071B36;
}

.btfc-home-latest-team img,
.btfc-home-crest-fallback {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.btfc-home-crest-fallback {
    display: block;
    border-radius: 50%;
    background: #F4F6F8;
    border: 1px solid #E4E7EC;
}

.btfc-home-latest-score {
    text-align: center;
}

.btfc-home-latest-score strong {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #111827;
    line-height: 1;
}

.btfc-home-latest-score span {
    display: block;
    margin-top: 0.25rem;
    color: #9ca3af;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.btfc-home-latest-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.4rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #E4E7EC;
    color: #6b7280;
    font-size: 0.78rem;
}

.btfc-home-latest-link {
    display: inline-block;
    margin-top: 0.75rem;
    float: right;
    color: #071B36;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.btfc-home-latest-link:hover {
    color: #D4A000;
}

.btfc-home-latest-empty {
    overflow: hidden;
}

.btfc-home-latest-empty p {
    margin: 0;
    color: #4b5563;
}

.btfc-home-section {
    padding: 1.75rem 0 0.25rem;
}

.btfc-home-recent-wrap {
    background: #F4F6F8;
    padding-top: 1.75rem;
    padding-bottom: 0.5rem;
}

.btfc-home-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem 1.5rem;
}

.btfc-home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btfc-home-section-head h2,
.btfc-home-records h2,
.btfc-home-milestones h2,
.btfc-home-explore h2 {
    margin: 0;
    color: #071B36;
    font-family: var(--font-heading, 'Bebas Neue', sans-serif);
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.btfc-home-section-head a {
    color: #071B36;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.btfc-home-section-head a:hover {
    color: #D4A000;
}

.btfc-home-recent {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
}

.btfc-home-recent-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "wdl opp ha"
        "wdl score ha"
        "wdl date ha";
    column-gap: 0.55rem;
    align-items: center;
    background: #ffffff;
    border: 1px solid #E4E7EC;
    padding: 0.7rem 0.75rem;
    text-decoration: none;
    color: inherit;
    min-width: 180px;
}

.btfc-home-recent-card:hover {
    border-color: #071B36;
}

.btfc-home-wdl {
    grid-area: wdl;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
}

.btfc-home-wdl-w { background: #10b981; }
.btfc-home-wdl-d { background: #f59e0b; }
.btfc-home-wdl-l { background: #ef4444; }

.btfc-home-recent-opp {
    grid-area: opp;
    font-size: 0.78rem;
    font-weight: 600;
    color: #071B36;
}

.btfc-home-recent-score {
    grid-area: score;
    font-size: 0.95rem;
    font-weight: 800;
    color: #111827;
}

.btfc-home-recent-date {
    grid-area: date;
    font-size: 0.72rem;
    color: #6b7280;
}

.btfc-home-recent-ha {
    grid-area: ha;
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 800;
}

.btfc-home-focus-wrap {
    background: #F4F6F8;
    padding-top: 0.35rem;
    padding-bottom: 0.25rem;
}

.btfc-home-focus-heading-icon {
    display: inline-flex;
    vertical-align: -0.12em;
    margin-right: 0.4rem;
    color: #F5B800;
}

.btfc-home-focus-heading-icon svg {
    width: 0.95rem;
    height: 0.95rem;
}

.btfc-home-focus {
    background: #ffffff;
    border: 1px solid #E4E7EC;
    box-shadow: 0 6px 18px rgba(4, 16, 31, 0.06);
    overflow: hidden;
}

.btfc-home-focus-head {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0.55rem 1rem;
    background: #071B36;
    color: #ffffff;
    font-family: var(--font-heading, 'Bebas Neue', sans-serif);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.btfc-home-focus-body {
    display: grid;
    grid-template-columns: minmax(200px, 28%) minmax(0, 1fr) auto;
    grid-template-areas: "photo copy aside";
    align-items: stretch;
}

.btfc-home-focus-photo {
    grid-area: photo;
    position: relative;
    margin: 0;
    background: #071B36;
    min-height: 190px;
}

.btfc-home-focus-photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.btfc-home-focus-copy {
    grid-area: copy;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.5rem;
    min-width: 0;
}

.btfc-home-focus-name {
    margin: 0;
    color: #071B36;
    font-family: var(--font-heading, 'Bebas Neue', sans-serif);
    font-size: clamp(1.85rem, 3vw, 2.6rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

.btfc-home-focus-position {
    margin: 0.35rem 0 0;
    color: #D4A000;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btfc-home-focus-excerpt {
    margin: 0.6rem 0 0;
    max-width: 36rem;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.45;
}

.btfc-home-focus-aside {
    grid-area: aside;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1rem 1.35rem;
    border-left: 1px solid #E4E7EC;
}

.btfc-home-focus-cta {
    margin: 0;
    align-self: flex-start;
    white-space: nowrap;
}

.btfc-home-focus-cta-arrow {
    color: #F5B800;
}

.btfc-home-focus-stats {
    display: flex;
    align-items: stretch;
}

.btfc-home-focus-stat {
    padding: 0.15rem 1.85rem 0.15rem 0;
    text-align: left;
}

.btfc-home-focus-stat + .btfc-home-focus-stat {
    padding-left: 1.85rem;
    border-left: 1px solid #E4E7EC;
}

.btfc-home-focus-stat strong {
    display: block;
    color: #071B36;
    font-size: clamp(1.9rem, 3vw, 2.55rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
}

.btfc-home-focus-stat span {
    display: block;
    margin-top: 0.3rem;
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btfc-home-features-wrap {
    background: #F4F6F8;
    padding-top: 0.5rem;
    padding-bottom: 0.35rem;
}

.btfc-home-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: stretch;
}

.btfc-home-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #E4E7EC;
    box-shadow: 0 6px 18px rgba(4, 16, 31, 0.06);
}

.btfc-home-panel-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #071B36;
    color: #ffffff;
    padding: 0.7rem 1rem;
}

.btfc-home-panel-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.25;
}

.btfc-home-panel-icon {
    display: inline-flex;
    flex-shrink: 0;
    color: #F5B800;
}

.btfc-home-panel-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.btfc-home-panel-body {
    flex: 1;
    padding: 0 1rem;
}

.btfc-home-panel-body .btfc-home-empty {
    padding: 1rem 0;
}

.btfc-home-panel-list,
.btfc-home-otd-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.btfc-home-panel-list > li,
.btfc-home-otd-list > li {
    border-bottom: 1px solid #E4E7EC;
}

.btfc-home-panel-list > li:last-child,
.btfc-home-otd-list > li:last-child {
    border-bottom: 0;
}

.btfc-home-panel-row,
.btfc-home-ms-item {
    display: block;
    padding: 0.78rem 0;
    text-decoration: none;
    color: inherit;
}

.btfc-home-panel-label {
    display: block;
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btfc-home-panel-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.2rem;
}

.btfc-home-panel-player {
    min-width: 0;
    color: #071B36;
    font-size: 0.92rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.btfc-home-panel-value {
    flex-shrink: 0;
    color: #071B36;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
}

.btfc-home-otd-kicker {
    margin: 0.7rem 0 0.15rem;
    color: #D4A000;
    font-family: var(--font-heading, 'Bebas Neue', sans-serif);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btfc-home-otd-group + .btfc-home-otd-group {
    border-top: 1px solid #E4E7EC;
    margin-top: 0.15rem;
}

.btfc-home-otd-group-title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.55rem 0 0;
    color: #6b7280;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btfc-home-otd-group-icon {
    display: inline-flex;
    color: #D4A000;
}

.btfc-home-otd-group-icon svg {
    width: 0.8rem;
    height: 0.8rem;
}

.btfc-home-otd-item {
    display: block;
    padding: 0.48rem 0;
    text-decoration: none;
    color: inherit;
}

a.btfc-home-otd-item:hover .btfc-home-otd-score,
a.btfc-home-ms-item:hover .btfc-home-ms-value {
    color: #D4A000;
}

.btfc-home-otd-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.08rem;
}

.btfc-home-otd-date {
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.btfc-home-otd-score {
    color: #071B36;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.btfc-home-otd-note {
    color: #6b7280;
    font-size: 0.74rem;
    line-height: 1.3;
}

.btfc-home-ms-value {
    display: block;
    margin-top: 0.18rem;
    color: #071B36;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
}

.btfc-home-ms-meta {
    display: block;
    margin-top: 0.12rem;
    color: #6b7280;
    font-size: 0.75rem;
}

.btfc-home-panel-cta {
    display: block;
    margin-top: auto;
    padding: 0.8rem 1rem;
    border-top: 1px solid #E4E7EC;
    color: #071B36;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.btfc-home-panel-cta:hover {
    color: #D4A000;
}

.btfc-home-history {
    padding-bottom: 0.5rem;
}

.btfc-home-history-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: 1.25rem;
    align-items: stretch;
}

.btfc-home-records,
.btfc-home-milestones {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #E4E7EC;
    padding: 1.15rem 1.15rem 1.25rem;
}

.btfc-home-records-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.85rem;
    font-size: 0.86rem;
}

.btfc-home-records-table th {
    text-align: left;
    color: #6b7280;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid #E4E7EC;
    padding: 0.4rem 0.4rem 0.5rem 0;
}

.btfc-home-records-table td {
    padding: 0.62rem 0.4rem 0.62rem 0;
    border-bottom: 1px solid #E4E7EC;
    color: #071B36;
}

.btfc-home-records-table td:last-child,
.btfc-home-records-table th:last-child {
    text-align: right;
    font-weight: 700;
}

.btfc-home-milestones .btfc-home-panel-list {
    margin-top: 0.35rem;
    flex: 1;
}

.btfc-home-records .btfc-home-btn-navy,
.btfc-home-milestones .btfc-home-btn-navy {
    margin-top: auto;
    align-self: flex-start;
}

.btfc-home-explore-wrap {
    background: #F4F6F8;
    padding-top: 1.75rem;
    padding-bottom: 2rem;
}

.btfc-home-explore-lede {
    margin: -0.35rem 0 1rem;
    max-width: 40rem;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btfc-home-explore-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.btfc-home-explore-card {
    display: flex;
    flex-direction: column;
    min-height: 9.5rem;
    background: #071B36;
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 1rem 0.85rem;
}

.btfc-home-explore-card:hover {
    background: #0B2342;
}

.btfc-home-explore-icon {
    color: #F5B800;
    margin-bottom: 0.45rem;
}

.btfc-home-explore-icon svg,
.btfc-home-explore-arrow svg {
    width: 1.2rem;
    height: 1.2rem;
}

.btfc-home-explore-card h3 {
    margin: 0 0 0.3rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.btfc-home-explore-card p {
    margin: 0;
    color: #c5d0dc;
    font-size: 0.8rem;
    line-height: 1.4;
    flex: 1;
}

.btfc-home-explore-arrow {
    display: inline-flex;
    margin-top: 0.7rem;
    color: #F5B800;
}

.btfc-home-empty {
    margin: 0;
    color: #6b7280;
}

@media (max-width: 1024px) {
    .btfc-home-recent {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .btfc-home-focus-body {
        grid-template-columns: minmax(180px, 32%) minmax(0, 1fr);
        grid-template-areas:
            "photo copy"
            "photo aside";
    }

    .btfc-home-focus-copy {
        padding: 0.9rem 1.15rem 0.5rem;
        justify-content: flex-end;
    }

    .btfc-home-focus-aside {
        justify-content: flex-start;
        padding: 0.25rem 1.15rem 0.95rem;
        border-left: 0;
    }

    .btfc-home-explore-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .btfc-home-history-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .btfc-home-hero-inner {
        padding: 2.25rem 1.25rem 2.5rem;
    }

    .btfc-home-hero-copy {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.15rem;
    }

    .btfc-home-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .btfc-home-recent {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.4rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .btfc-home-recent-card {
        flex: 0 0 78%;
        scroll-snap-align: start;
    }

    .btfc-home-features {
        grid-template-columns: 1fr;
    }

    .btfc-home-focus-body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "photo"
            "copy"
            "aside";
    }

    .btfc-home-focus-photo {
        min-height: 200px;
        max-height: 220px;
    }

    .btfc-home-focus-copy {
        padding: 0.9rem 1.15rem 0.25rem;
    }

    .btfc-home-focus-aside {
        padding: 0.65rem 1.15rem 1rem;
        border-left: 0;
    }

    .btfc-home-focus-cta {
        width: auto;
        justify-content: center;
    }

    .btfc-home-explore-grid {
        grid-template-columns: 1fr;
    }

    .btfc-home-records {
        overflow-x: auto;
    }

    .btfc-home-records-table {
        min-width: 28rem;
    }

    .btfc-home-latest-score strong {
        font-size: 1.5rem;
    }

    .btfc-home-hero-lede {
        font-size: 1rem;
    }
}
