/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* =================================================================
   Fodboldzone.dk Brand Overrides
   Brand Colors:
     Midnight Blue: #192250
     Steel Blue:    #4374BA
     Pure White:    #FFFFFF
     Key Black:     #000000
   Font: Montserrat
   ================================================================= */

/* ---------------------------------------------------------------
   1. Global Typography & Colors
   --------------------------------------------------------------- */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #192250;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.main-title,
.entry-title {
    font-family: 'Montserrat', -apple-system, sans-serif;
    color: #192250;
}

/* ---------------------------------------------------------------
   2. Header
   --------------------------------------------------------------- */
.site-header {
    background-color: #ffffff;
    border-bottom: 2px solid rgba(25, 34, 80, 0.08);
    box-shadow: 0 1px 4px rgba(25, 34, 80, 0.06);
}

/* Logo sizing */
.site-header .header-image img,
.site-header .site-logo img {
    max-height: 48px;
    width: auto;
}

/* Navigation */
.main-navigation a,
.menu-toggle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #192250;
    text-transform: none;
    letter-spacing: 0;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #4374BA;
}

/* Mobile nav button */
.menu-toggle {
    color: #192250;
    border-color: rgba(25, 34, 80, 0.15);
}

/* ---------------------------------------------------------------
   3. Links & Buttons
   --------------------------------------------------------------- */
a {
    color: #4374BA;
}

a:hover {
    color: #192250;
}

button,
.button,
input[type="submit"],
.wp-block-button__link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    background-color: #192250;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    background-color: #4374BA;
    color: #ffffff;
}

/* Secondary / outline buttons */
.button.is-outline,
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: #192250;
    border: 2px solid #192250;
}

.button.is-outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: #192250;
    color: #ffffff;
}

/* ---------------------------------------------------------------
   4. Footer
   --------------------------------------------------------------- */
.site-footer {
    background-color: #192250;
    color: rgba(255, 255, 255, 0.8);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
    color: #ffffff;
}

.site-footer .footer-bar {
    background-color: #0d1333;
}

/* ---------------------------------------------------------------
   5. GeneratePress Specific Overrides
   --------------------------------------------------------------- */

/* Page background */
body {
    background-color: #f0f2f5;
}

/* Content area */
.site-content {
    background-color: #f5f7fa;
}

/* Sidebar widgets */
.widget-title {
    font-family: 'Montserrat', sans-serif;
    color: #192250;
    font-weight: 700;
}

/* Breadcrumbs */
.entry-meta,
.paging-navigation {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
}

/* Selection color */
::selection {
    background-color: rgba(67, 116, 186, 0.2);
    color: #192250;
}

/* ---------------------------------------------------------------
   6. Scrollbar (subtle brand touch)
   --------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f2f5;
}

::-webkit-scrollbar-thumb {
    background: rgba(25, 34, 80, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(25, 34, 80, 0.35);
}

/* ---------------------------------------------------------------
   7. FDH Entity Pages — Brand Polish
   --------------------------------------------------------------- */

/* Entity hero headers — Midnight Blue gradient */
.fdh-entity__hero,
.fdh-frontpage__hero {
    background: linear-gradient(135deg, #192250 0%, #2d3a6e 60%, #4374BA 100%) !important;
    color: #ffffff !important;
}

.fdh-frontpage__hero-title,
.fdh-entity__hero-title {
    color: #ffffff !important;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fdh-frontpage__hero-subtitle {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
}

/* Hero stat counters */
.fdh-frontpage__hero-stat-value {
    color: #ffffff !important;
    font-weight: 800;
}

.fdh-frontpage__hero-stat-label {
    color: rgba(255, 255, 255, 0.65) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}

/* Entity nav tabs — Steel Blue active state */
.fdh-entity-nav__link.is-active,
.fdh-entity-nav__link:hover {
    color: #4374BA !important;
    border-bottom-color: #4374BA !important;
}

.fdh-entity-nav__link {
    color: #4b5570;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
}

/* Section headings — brand styled */
.fdh-section__title,
.fdh-section__heading {
    color: #192250;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.fdh-section__title::before,
.fdh-section__heading::before {
    background: #4374BA !important;
}

/* Breadcrumbs */
.fdh-breadcrumb {
    font-size: 12px;
    font-weight: 500;
}

.fdh-breadcrumb a {
    color: #4374BA;
}

.fdh-breadcrumb a:hover {
    color: #192250;
}

/* ---------------------------------------------------------------
   8. Cards & Tables — Brand Refinement
   --------------------------------------------------------------- */

/* Table headers */
.fdh-table th,
.fdh-standings th,
.fdh-scorers th {
    background: rgba(25, 34, 80, 0.04) !important;
    color: #192250;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Table row hover */
.fdh-table tbody tr:hover,
.fdh-standings tbody tr:hover {
    background: rgba(67, 116, 186, 0.04) !important;
}

/* Match score accent */
.fdh-matches__score {
    font-weight: 800;
    color: #192250;
}

/* KPI strips */
.fdh-kpi__value {
    color: #192250;
    font-weight: 800;
}

.fdh-kpi__label {
    color: #4b5570;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------
   9. Badges & Tags
   --------------------------------------------------------------- */

.fdh-badge {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.02em;
}

/* Position badges */
.fdh-badge--position {
    background: rgba(25, 34, 80, 0.08);
    color: #192250;
}

/* ---------------------------------------------------------------
   10. Live Match Indicator — brand-aligned
   --------------------------------------------------------------- */

.fdh-livenow__title {
    color: #192250 !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.fdh-livenow__team-name {
    color: #192250 !important;
    font-family: 'Montserrat', sans-serif;
}

.fdh-livenow__league {
    color: #4b5570 !important;
}

/* ---------------------------------------------------------------
   11. Fodbold i TV Section
   --------------------------------------------------------------- */

.fdh-today-tv__heading {
    color: #192250;
    font-weight: 700;
}

/* ---------------------------------------------------------------
   12. Weather Widget
   --------------------------------------------------------------- */

.fdh-weather {
    border-color: rgba(67, 116, 186, 0.15);
}

.fdh-weather__temp {
    color: #192250;
    font-weight: 700;
}

/* ---------------------------------------------------------------
   13. Related Entities
   --------------------------------------------------------------- */

.fdh-related__heading {
    color: #192250;
    font-weight: 700;
}

.fdh-related__match-name {
    font-family: 'Montserrat', sans-serif;
}

/* ---------------------------------------------------------------
   14. Smooth brand transitions
   --------------------------------------------------------------- */

a,
button,
.fdh-entity-nav__link,
.fdh-badge {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

/* ---------------------------------------------------------------
   15. Global Spacing & Layout Polish
   --------------------------------------------------------------- */

/* Content area — proper top/bottom padding */
.site-content .content-area {
    padding-top: 24px;
    padding-bottom: 48px;
}

/* GeneratePress inside-article padding */
.inside-article {
    padding-bottom: 32px;
}

/* Entry content spacing */
.entry-content {
    padding-bottom: 24px;
}

/* Match page content area */
.fdh-match-page .content-area {
    padding-top: 20px;
    padding-bottom: 48px;
}

/* Frontpage spacing */
.fdh-frontpage-active .content-area {
    padding-top: 24px;
    padding-bottom: 48px;
}

/* ---------------------------------------------------------------
   16. Contrast Fixes — ensure readable text everywhere
   --------------------------------------------------------------- */

/* Entity hero on dark gradient — all text white */
.fdh-hero {
    color: var(--fdh-text-bright, #0d1333);
}

/* Match banner text */
.fdh-match-banner {
    color: #ffffff;
}

.fdh-match-banner__team-name {
    color: #ffffff;
    font-weight: 700;
}

.fdh-match-banner__date,
.fdh-match-banner__league {
    color: rgba(255, 255, 255, 0.75);
}

/* AI content blocks — good contrast */
.fdh-ai-content {
    color: #192250;
    line-height: 1.7;
}

.fdh-ai-content h2,
.fdh-ai-content h3,
.fdh-ai-content h4 {
    color: #192250;
    font-weight: 700;
}

/* Muted text should still be readable */
.fdh-text-muted,
.fdh-meta,
.fdh-entity-nav__count {
    color: #6b7290;
}

/* Dark card text overrides — ensure white on dark */
.fdh-coach-card__header,
.fdh-venue-card__header {
    color: #ffffff;
}

.fdh-coach-card__header *,
.fdh-venue-card__header * {
    color: #ffffff;
}

/* ---------------------------------------------------------------
   17. Card Refinement
   --------------------------------------------------------------- */

/* Subtle border on all cards */
.fdh-section,
.fdh-ai-content,
.fdh-kpi-strip,
.fdh-career-totals {
    border: 1px solid rgba(25, 34, 80, 0.06);
    border-radius: 10px;
}

/* ---------------------------------------------------------------
   18. Branded Footer
   --------------------------------------------------------------- */

/* Hide default GP footer completely */
.site-footer {
    display: none !important;
}

.fz-footer {
    background: linear-gradient(180deg, #192250 0%, #0d1333 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 56px 0 0;
    margin-top: 0;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    z-index: 10;
}

.fz-footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr;
    gap: 40px;
    padding-bottom: 48px;
}

.fz-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fz-footer__brand .custom-logo-link img,
.fz-footer__brand .custom-logo {
    max-height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}

.fz-footer__logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.fz-footer__tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    max-width: 320px;
}

.fz-footer__heading {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
}

.fz-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fz-footer__links li {
    margin: 0;
    padding: 0;
}

.fz-footer__links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.fz-footer__links a:hover {
    color: #ffffff;
}

/* Copyright bar */
.site-footer .copyright-bar {
    background-color: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    padding: 16px 24px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.site-footer .copyright-bar a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.site-footer .copyright-bar a:hover {
    color: #ffffff;
}

/* Copyright bar inside our custom footer */
.fz-footer__copyright {
    margin-top: 48px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
}

/* GP footer is hidden via display:none above */

/* ---------------------------------------------------------------
   19. Mobile Spacing
   --------------------------------------------------------------- */

@media (max-width: 768px) {
    .site-content .content-area {
        padding-top: 16px;
        padding-bottom: 32px;
    }

    .fdh-frontpage__hero {
        padding: 32px 20px !important;
    }

    .fz-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        padding-bottom: 36px;
    }

    .fz-footer {
        padding-top: 40px;
    }
}

@media (max-width: 480px) {
    .fdh-frontpage__hero {
        padding: 24px 16px !important;
        border-radius: 10px !important;
    }

    .fz-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
