/* ═══════════════════════════════════════════════════════════
   Howell Football Manager — Frontend Styles
   Colors: Green #4CAF50, Dark #1a1a1a, White #ffffff
   ═══════════════════════════════════════════════════════════ */

:root {
    --hf-green:       #4CAF50;
    --hf-green-dark:  #388E3C;
    --hf-green-light: #E8F5E9;
    --hf-dark:        #1a1a1a;
    --hf-dark2:       #2d2d2d;
    --hf-gold:        #FFD700;
    --hf-white:       #ffffff;
    --hf-gray:        #f5f5f5;
    --hf-text:        #333333;
    --hf-muted:       #777777;
    --hf-radius:      8px;
    --hf-shadow:      0 2px 12px rgba(0,0,0,0.10);
    --hf-font:        'Segoe UI', -apple-system, system-ui, sans-serif;
}

/* ── Base section ────────────────────────────────────────────── */
.hf-section {
    font-family: var(--hf-font);
    color: var(--hf-text);
    max-width: 100%;
}

.hf-section-header {
    margin-bottom: 32px;
    border-left: 5px solid var(--hf-green);
    padding-left: 16px;
}

.hf-section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hf-dark);
    margin: 0 0 6px;
    line-height: 1.1;
}

.hf-section-sub {
    color: var(--hf-muted);
    font-size: .95rem;
    margin: 0;
}

.hf-sub-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hf-dark);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Tables ──────────────────────────────────────────────────── */
.hf-table-wrap {
    overflow-x: auto;
    border-radius: var(--hf-radius);
    box-shadow: var(--hf-shadow);
}

.hf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    background: var(--hf-white);
}

.hf-table thead th {
    background: var(--hf-dark);
    color: var(--hf-white);
    padding: 12px 14px;
    text-align: left;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}

.hf-table thead th.hf-group-hdr {
    background: var(--hf-green-dark);
    text-align: center;
}

.hf-table tbody tr:nth-child(even) {
    background: var(--hf-gray);
}

.hf-table tbody tr:hover {
    background: var(--hf-green-light);
}

.hf-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.hf-table .hf-totals-row {
    background: var(--hf-dark) !important;
    color: var(--hf-white);
    font-weight: 700;
}

.hf-table .hf-totals-row td {
    border: none;
    color: var(--hf-white);
}

/* Win/Loss colors */
.hf-win   { color: var(--hf-green-dark) !important; font-weight: 700; }
.hf-loss  { color: #c62828 !important; font-weight: 700; }
.hf-tie   { color: #f57f17 !important; font-weight: 700; }
td.hf-wins   { color: var(--hf-green-dark); font-weight: 700; }
td.hf-losses { color: #c62828; font-weight: 700; }

/* ── Season record badge ──────────────────────────────────────── */
.hf-record-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--hf-dark);
    color: var(--hf-white);
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 8px;
}
.hf-record-badge .hf-wins   { color: var(--hf-green) !important; }
.hf-record-badge .hf-losses { color: #ef5350 !important; }
.hf-record-badge .hf-sep    { color: #aaa; font-weight: 300; }

/* ── Year nav ────────────────────────────────────────────────── */
.hf-year-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.hf-year-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    background: var(--hf-gray);
    color: var(--hf-text);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all .2s;
}
.hf-year-btn:hover,
.hf-year-btn.active {
    background: var(--hf-green);
    color: var(--hf-white);
    border-color: var(--hf-green);
}

/* ── History cards ───────────────────────────────────────────── */
.hf-history-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.hf-hcard {
    background: var(--hf-dark);
    color: var(--hf-white);
    border-radius: var(--hf-radius);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--hf-shadow);
    border-bottom: 4px solid var(--hf-green);
}
.hf-hcard-accent {
    background: var(--hf-green);
}
.hf-hcard-num {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
}
.hf-hcard-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .85;
}

/* ── Badges ──────────────────────────────────────────────────── */
.hf-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    margin: 2px 3px;
}
.hf-badge-champ   { background: var(--hf-gold); color: var(--hf-dark); }
.hf-badge-playoff { background: var(--hf-green); color: var(--hf-white); }

/* ── Registration form ───────────────────────────────────────── */
.hf-form-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hf-green-dark);
    border-bottom: 2px solid var(--hf-green);
    padding-bottom: 6px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.hf-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.hf-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hf-col-2 { grid-column: 1 / -1; }
.hf-form-group label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--hf-dark);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.hf-req { color: #c62828; }
.hf-form-group input,
.hf-form-group select,
.hf-form-group textarea {
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: .95rem;
    font-family: var(--hf-font);
    transition: border-color .2s;
    width: 100%;
    box-sizing: border-box;
}
.hf-form-group input:focus,
.hf-form-group select:focus,
.hf-form-group textarea:focus {
    outline: none;
    border-color: var(--hf-green);
}
.hf-form-submit { margin-top: 28px; text-align: center; }

/* ── Alerts ──────────────────────────────────────────────────── */
.hf-alert {
    padding: 16px 20px;
    border-radius: var(--hf-radius);
    margin-bottom: 24px;
    font-size: .95rem;
}
.hf-alert-success {
    background: #E8F5E9;
    border-left: 5px solid var(--hf-green);
    color: #1b5e20;
}
.hf-alert-error {
    background: #FFEBEE;
    border-left: 5px solid #c62828;
    color: #b71c1c;
}
.hf-alert ul { margin: 8px 0 0 20px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.hf-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .2s;
    font-family: var(--hf-font);
}
.hf-btn-primary {
    background: var(--hf-green);
    color: var(--hf-white);
}
.hf-btn-primary:hover {
    background: var(--hf-green-dark);
    color: var(--hf-white);
    transform: translateY(-1px);
}
.hf-btn-outline {
    background: transparent;
    color: var(--hf-green);
    border: 2px solid var(--hf-green);
    font-size: .85rem;
    padding: 8px 18px;
}
.hf-btn-outline:hover {
    background: var(--hf-green);
    color: var(--hf-white);
}

/* ── Recruiting tabs ─────────────────────────────────────────── */
.hf-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
}
.hf-tab {
    padding: 8px 18px;
    background: var(--hf-gray);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    font-family: var(--hf-font);
    color: var(--hf-text);
    transition: all .2s;
}
.hf-tab:hover, .hf-tab.active {
    background: var(--hf-green);
    color: var(--hf-white);
}
.hf-tab-content { display: none; }
.hf-tab-content.active { display: block; }

/* ── Recruit cards ───────────────────────────────────────────── */
.hf-recruit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.hf-recruit-card {
    background: var(--hf-white);
    border-radius: var(--hf-radius);
    box-shadow: var(--hf-shadow);
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform .2s, box-shadow .2s;
}
.hf-recruit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.hf-recruit-card.hf-featured {
    border-top: 4px solid var(--hf-gold);
}
.hf-recruit-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--hf-dark);
}
.hf-recruit-body { padding: 20px; }
.hf-recruit-type-badge {
    display: inline-block;
    background: var(--hf-green-light);
    color: var(--hf-green-dark);
    font-size: .75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.hf-recruit-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--hf-dark);
    margin: 0 0 10px;
}
.hf-recruit-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: .82rem;
    color: var(--hf-muted);
    margin-bottom: 12px;
}
.hf-recruit-desc { font-size: .9rem; color: var(--hf-text); margin-bottom: 14px; }

/* ── Twitter section ─────────────────────────────────────────── */
.hf-twitter-section { margin-top: 48px; }
.hf-twitter-embed {
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--hf-radius);
    overflow: hidden;
    box-shadow: var(--hf-shadow);
}

/* ── Trainer cards ───────────────────────────────────────────── */
.hf-trainer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.hf-trainer-card {
    background: var(--hf-white);
    border-radius: var(--hf-radius);
    box-shadow: var(--hf-shadow);
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform .2s;
}
.hf-trainer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.hf-trainer-img-wrap { position: relative; }
.hf-trainer-img {
    height: 200px;
    background-size: cover;
    background-position: top center;
    background-color: var(--hf-dark);
}
.hf-trainer-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: var(--hf-dark2);
}
.hf-trainer-type-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--hf-green);
    color: var(--hf-white);
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.hf-trainer-body { padding: 20px; }
.hf-trainer-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--hf-dark);
    margin: 0 0 4px;
}
.hf-trainer-role {
    color: var(--hf-green-dark);
    font-weight: 600;
    font-size: .9rem;
    margin: 0 0 4px;
}
.hf-trainer-creds {
    color: var(--hf-muted);
    font-size: .82rem;
    margin: 0 0 10px;
}
.hf-trainer-bio {
    font-size: .88rem;
    color: var(--hf-text);
    line-height: 1.5;
    margin-bottom: 12px;
}
.hf-spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.hf-spec-tag {
    background: var(--hf-green-light);
    color: var(--hf-green-dark);
    font-size: .75rem;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 600;
}
.hf-trainer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.hf-contact-link {
    font-size: .85rem;
    color: var(--hf-muted);
    text-decoration: none;
    transition: color .2s;
}
.hf-contact-link:hover { color: var(--hf-green); }

/* ── Misc ────────────────────────────────────────────────────── */
.hf-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--hf-muted);
    font-size: .95rem;
    background: var(--hf-gray);
    border-radius: var(--hf-radius);
}
.hf-notice {
    background: #FFF8E1;
    border-left: 4px solid #F9A825;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: .9rem;
    margin-top: 32px;
    color: #555;
}
/* ═══════════════════════════════════════════════════════════
   Howell Football Manager — Box Score Page Additions
   Append only — do not remove existing theme CSS
   ═══════════════════════════════════════════════════════════ */

/* Single game page wrapper */
.single-hf_game .site-main,
.single-hf_game main,
.single-hf_game .content-area {
    width: 100%;
}

.single-hf_game .hf-boxscore-page {
    max-width: 980px !important;
    margin: 40px auto 60px;
    padding: 0 20px;
    font-family: var(--hf-font);
    color: var(--hf-text);
}

/* Top back link */
.single-hf_game .hf-boxscore-page > div:first-child a {
    display: inline-block;
    color: var(--hf-muted);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color .2s ease;
}
.single-hf_game .hf-boxscore-page > div:first-child a:hover {
    color: var(--hf-green);
}

/* Main score hero */
.single-hf_game .hf-boxscore-page > div:nth-child(2) {
    background: linear-gradient(135deg, #06122c 0%, #0c1734 100%) !important;
    color: var(--hf-white) !important;
    border-radius: 12px !important;
    box-shadow: var(--hf-shadow);
    padding: 26px 28px !important;
    margin-bottom: 24px !important;
}

.single-hf_game .hf-boxscore-page > div:nth-child(2) h1 {
    color: var(--hf-white) !important;
    font-size: 2rem !important;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 12px !important;
}

.single-hf_game .hf-boxscore-page > div:nth-child(2) > div:first-child {
    color: rgba(255,255,255,.78) !important;
    font-size: .82rem !important;
    letter-spacing: .02em;
}

.single-hf_game .hf-boxscore-page > div:nth-child(2) > div:last-child {
    gap: 14px !important;
}

.single-hf_game .hf-boxscore-page > div:nth-child(2) > div:last-child > div {
    font-size: 1rem !important;
}

.single-hf_game .hf-boxscore-page > div:nth-child(2) > div:last-child > div strong {
    font-size: 1.02rem;
    font-weight: 800;
}

.single-hf_game .hf-boxscore-page > div:nth-child(2) > div:last-child > div:last-child {
    background: #fff !important;
    color: #111 !important;
    border-radius: 999px !important;
    padding: 5px 12px !important;
    font-size: .78rem !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* Shared content cards */
.single-hf_game .hf-boxscore-page > div[style*="background:#fff"] {
    background: var(--hf-white) !important;
    border: 1px solid #ececec !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    padding: 22px 24px !important;
    margin-bottom: 18px !important;
}

.single-hf_game .hf-boxscore-page h2 {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--hf-dark) !important;
    margin: 0 0 16px !important;
    line-height: 1.2;
}

/* Tables inside box score */
.single-hf_game .hf-boxscore-page table {
    width: 100%;
    border-collapse: collapse;
    background: var(--hf-white);
    font-size: .9rem;
}

.single-hf_game .hf-boxscore-page table thead th {
    background: var(--hf-dark);
    color: var(--hf-white);
    text-transform: none;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 11px 12px !important;
    border: 1px solid #2b2b2b;
}

.single-hf_game .hf-boxscore-page table tbody td {
    padding: 10px 12px !important;
    border: 1px solid #ececec !important;
    color: var(--hf-text);
    vertical-align: middle;
}

.single-hf_game .hf-boxscore-page table tbody tr:nth-child(even) {
    background: #fafafa;
}

.single-hf_game .hf-boxscore-page table tbody tr:hover {
    background: var(--hf-green-light);
}

/* Summary / notes text */
.single-hf_game .hf-boxscore-page p {
    line-height: 1.65;
    font-size: .94rem;
    color: var(--hf-text);
}

/* Scoring plays list */
.single-hf_game .hf-boxscore-page ol {
    margin: 0;
    padding-left: 18px;
}
.single-hf_game .hf-boxscore-page ol li {
    margin-bottom: 10px;
    line-height: 1.55;
    font-size: .92rem;
}

/* Previous / next post links from theme */
.single-hf_game .nav-links,
.single-hf_game .post-navigation,
.single-hf_game .navigation.post-navigation {
    max-width: 980px;
    margin: 10px auto 40px;
    padding: 0 20px;
}

.single-hf_game .nav-links a,
.single-hf_game .post-navigation a,
.single-hf_game .navigation.post-navigation a {
    color: var(--hf-green-dark);
    text-decoration: none;
    font-weight: 700;
}

.single-hf_game .nav-links a:hover,
.single-hf_game .post-navigation a:hover,
.single-hf_game .navigation.post-navigation a:hover {
    color: var(--hf-green);
}

/* Box score link in schedule table */
.hf-box-link {
    color: var(--hf-green-dark);
    font-weight: 700;
    text-decoration: none;
}
.hf-box-link:hover {
    color: var(--hf-green);
    text-decoration: underline;
}

/* Better spacing for single game page on smaller screens */
@media (max-width: 768px) {
    .single-hf_game .hf-boxscore-page {
        margin: 24px auto 40px;
        padding: 0 14px;
    }

    .single-hf_game .hf-boxscore-page > div:nth-child(2) {
        padding: 22px 18px !important;
    }

    .single-hf_game .hf-boxscore-page > div:nth-child(2) h1 {
        font-size: 1.55rem !important;
    }

    .single-hf_game .hf-boxscore-page > div[style*="background:#fff"] {
        padding: 18px 16px !important;
    }

    .single-hf_game .hf-boxscore-page table {
        font-size: .8rem;
    }

    .single-hf_game .hf-boxscore-page table thead th,
    .single-hf_game .hf-boxscore-page table tbody td {
        padding: 8px 8px !important;
    }
}

@media (max-width: 480px) {
    .single-hf_game .hf-boxscore-page > div:nth-child(2) h1 {
        font-size: 1.35rem !important;
    }

    .single-hf_game .hf-boxscore-page > div:nth-child(2) > div:last-child {
        gap: 8px !important;
    }

    .single-hf_game .hf-boxscore-page > div:nth-child(2) > div:last-child > div {
        font-size: .9rem !important;
    }

    .single-hf_game .hf-boxscore-page h2 {
        font-size: 1.02rem !important;
    }
}
/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hf-history-cards { grid-template-columns: repeat(2, 1fr); }
    .hf-recruit-grid, .hf-trainer-grid { grid-template-columns: 1fr; }
    .hf-section-header h2 { font-size: 1.5rem; }
    .hf-hcard-num { font-size: 2rem; }
    .hf-stats-full { font-size: .78rem; }
}

@media (max-width: 480px) {
    .hf-history-cards { grid-template-columns: 1fr 1fr; }
    .hf-form-grid { grid-template-columns: 1fr; }
    .hf-tabs { gap: 4px; }
    .hf-tab { font-size: .78rem; padding: 6px 12px; }
}

/* Merged HowelFootball updates */
.hf-recruit-actions{display:flex;justify-content:center;margin:-10px 0 28px}.hf-recruit-actions .hf-btn{font-size:1rem;padding:12px 24px}
