/*
Theme Name: Football Data Multi
Theme URI: https://example.com/football-data-multi
Author: Football Data Multi
Description: Theme dữ liệu bóng đá responsive với hai preset giao diện, màu và logo tùy biến.
Version: 1.2.5
Requires at least: 6.0
Requires PHP: 7.0
Text Domain: football-data-multi
*/

:root {
    --site-primary: #102a43;
    --site-accent: #ffb000;
    --site-header: #081b2c;
    --site-bg: #f2f5f8;
    --site-text: #172033;
    --site-border: #e1e7ed;
    --site-width: 1240px;
    --site-radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--site-bg); color: var(--site-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 15px; line-height: 1.65; margin: 0; }
img { height: auto; max-width: 100%; }
a { color: var(--site-primary); }
.screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.site-shell { margin: 0 auto; max-width: var(--site-width); padding-left: 18px; padding-right: 18px; width: 100%; }
.site-header { background: var(--site-header); color: #fff; position: relative; z-index: 20; }
.site-header__top { align-items: center; display: flex; gap: 24px; min-height: 76px; }
.site-branding { align-items: center; display: flex; flex: 0 0 auto; gap: 11px; min-width: 180px; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { max-height: 48px; width: auto; }
.site-title { color: #fff; font-size: 22px; font-weight: 900; letter-spacing: -.02em; line-height: 1; text-decoration: none; }
.site-tagline { color: rgba(255,255,255,.58); display: block; font-size: 10px; margin-top: 5px; }
.primary-nav { margin-left: auto; }
.primary-nav ul { align-items: center; display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { border-radius: 7px; color: rgba(255,255,255,.82); display: block; font-size: 13px; font-weight: 800; padding: 10px 13px; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: rgba(255,255,255,.1); color: #fff; }
.menu-toggle { appearance: none; background: transparent; border: 1px solid rgba(255,255,255,.24); border-radius: 7px; color: #fff; cursor: pointer; display: none; font-size: 20px; height: 42px; margin-left: auto; width: 44px; }
.league-strip { background: var(--site-primary); border-top: 1px solid rgba(255,255,255,.08); }
.league-strip__inner { align-items: center; display: flex; gap: 6px; min-height: 43px; overflow-x: auto; scrollbar-width: none; }
.league-strip__inner::-webkit-scrollbar { display: none; }
.league-strip a { border-radius: 6px; color: rgba(255,255,255,.78); flex: 0 0 auto; font-size: 11px; font-weight: 800; padding: 6px 10px; text-decoration: none; text-transform: uppercase; }
.league-strip a:hover { background: var(--site-accent); color: #151515; }
.site-content { min-height: 65vh; padding-bottom: 36px; padding-top: 22px; }
.content-grid { align-items: start; display: grid; gap: 20px; grid-template-columns: 210px minmax(0,1fr); }
.content-grid.content-grid--no-sidebar { grid-template-columns: minmax(0,1fr); }
.content-grid.has-right { grid-template-columns: 210px minmax(0,1fr) 280px; }
.content-grid.article-layout { grid-template-columns: minmax(0,1fr) 300px; }
.data-sidebar, .article-sidebar { min-width: 0; position: sticky; top: 18px; }
.widget-panel { background: #fff; border: 1px solid var(--site-border); border-radius: var(--site-radius); margin: 0 0 14px; overflow: hidden; }
.widget-panel__title { background: var(--site-primary); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .05em; margin: 0; padding: 11px 13px; text-transform: uppercase; }
.league-menu { list-style: none; margin: 0; padding: 6px; }
.league-menu li + li { border-top: 1px solid var(--site-border); }
.league-menu a { align-items: center; color: var(--site-text); display: flex; font-size: 12px; font-weight: 700; gap: 8px; justify-content: space-between; padding: 9px 7px; text-decoration: none; }
.league-menu a:hover { color: var(--site-primary); }
.league-menu small { color: #8a97a6; }
.page-surface, .post-surface { background: #fff; border: 1px solid var(--site-border); border-radius: var(--site-radius); padding: clamp(17px,3vw,30px); }
.page-surface--data { background: transparent; border: 0; padding: 0; }
.entry-header { margin-bottom: 20px; }
.entry-title { color: var(--site-primary); font-size: clamp(27px,4vw,40px); line-height: 1.2; margin: 0 0 8px; }
.entry-meta { color: #778493; font-size: 12px; }
.entry-content { overflow-wrap: anywhere; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { color: var(--site-primary); font-size: 24px; line-height: 1.3; margin: 32px 0 12px; }
.entry-content h3 { color: var(--site-primary); font-size: 19px; line-height: 1.35; margin: 25px 0 10px; }
.entry-content p { margin: 0 0 17px; text-align: justify; }
.entry-content ul, .entry-content ol { margin: 0 0 20px; padding-left: 24px; }
.entry-content figure { margin: 24px auto; text-align: center; }
.entry-content img { border-radius: 8px; }
.archive-heading { align-items: end; display: flex; gap: 15px; justify-content: space-between; margin-bottom: 18px; }
.archive-heading h1 { color: var(--site-primary); font-size: 31px; margin: 0; }
.post-grid { display: grid; gap: 16px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.post-card { background: #fff; border: 1px solid var(--site-border); border-radius: var(--site-radius); min-width: 0; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { box-shadow: 0 12px 30px rgba(13,39,65,.1); transform: translateY(-2px); }
.post-card__image { aspect-ratio: 16/9; background: #dce3e9; display: block; overflow: hidden; }
.post-card__image img { height: 100%; object-fit: cover; transition: transform .3s ease; width: 100%; }
.post-card:hover .post-card__image img { transform: scale(1.03); }
.post-card__body { padding: 13px 14px 15px; }
.post-card__meta { color: #7d8996; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.post-card h2 { font-size: 16px; line-height: 1.4; margin: 6px 0 0; }
.post-card h2 a { color: var(--site-text); text-decoration: none; }
.post-card h2 a:hover { color: var(--site-primary); }
.latest-news { margin-top: 30px; }
.section-heading { align-items: center; display: flex; gap: 15px; justify-content: space-between; margin-bottom: 14px; }
.section-heading h2 { color: var(--site-primary); font-size: 21px; margin: 0; }
.section-heading a { font-size: 12px; font-weight: 800; text-decoration: none; }
.pagination { margin-top: 24px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { background: #fff; border: 1px solid var(--site-border); border-radius: 7px; display: inline-grid; min-height: 38px; min-width: 38px; padding: 6px 10px; place-items: center; text-decoration: none; }
.page-numbers.current { background: var(--site-primary); color: #fff; }
.site-footer { background: var(--site-header); color: rgba(255,255,255,.66); font-size: 12px; padding: 28px 0; }
.site-footer__inner { align-items: center; display: flex; gap: 15px; justify-content: space-between; }
.site-footer a { color: #fff; }
.not-found { padding: 80px 20px; text-align: center; }
.not-found h1 { color: var(--site-primary); font-size: 80px; line-height: 1; margin: 0; }

body.fdm-preset-scoreboard .site-header { background: linear-gradient(135deg,var(--site-header),color-mix(in srgb,var(--site-primary) 70%,#000)); }
body.fdm-preset-scoreboard .site-content { background-image: linear-gradient(rgba(255,255,255,.28) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.28) 1px,transparent 1px); background-size: 30px 30px; }
body.fdm-preset-scoreboard .fds-league-card { border-radius: 8px; box-shadow: none; }
body.fdm-preset-scoreboard .fds-date-nav { border-radius: 8px; }

body.fdm-preset-pulse { --site-radius: 18px; }
body.fdm-preset-pulse .site-header { background: #fff; box-shadow: 0 4px 20px rgba(17,34,51,.07); color: var(--site-text); }
body.fdm-preset-pulse .site-header::before { background: linear-gradient(90deg,var(--site-primary),var(--site-accent)); content: ""; display: block; height: 5px; }
body.fdm-preset-pulse .site-title { color: var(--site-primary); }
body.fdm-preset-pulse .site-tagline { color: #7a8795; }
body.fdm-preset-pulse .primary-nav a { color: var(--site-text); }
body.fdm-preset-pulse .primary-nav a:hover, body.fdm-preset-pulse .primary-nav .current-menu-item > a { background: color-mix(in srgb,var(--site-primary) 10%,#fff); color: var(--site-primary); }
body.fdm-preset-pulse .menu-toggle { border-color: var(--site-border); color: var(--site-primary); }
body.fdm-preset-pulse .league-strip { background: transparent; border-top: 1px solid var(--site-border); }
body.fdm-preset-pulse .league-strip a { background: #f4f6f8; color: var(--site-text); }
body.fdm-preset-pulse .league-strip a:hover { background: var(--site-primary); color: #fff; }
body.fdm-preset-pulse .content-grid { grid-template-columns: minmax(0,1fr); max-width: 1050px; }
body.fdm-preset-pulse .data-sidebar { display: none; }
body.fdm-preset-pulse .content-grid.has-right { grid-template-columns: minmax(0,1fr) 280px; max-width: 1180px; }
body.fdm-preset-pulse .content-grid.article-layout { grid-template-columns: minmax(0,1fr) 300px; }
body.fdm-preset-pulse .fds-league-card { box-shadow: 0 10px 28px rgba(15,39,61,.07); }

@media (max-width: 1040px) {
    .content-grid, .content-grid.has-right, .content-grid.article-layout, body.fdm-preset-pulse .content-grid.has-right, body.fdm-preset-pulse .content-grid.article-layout { grid-template-columns: minmax(0,1fr); }
    .data-sidebar, .article-sidebar { display: none; }
    .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 780px) {
    .site-shell { padding-left: 10px; padding-right: 10px; }
    .site-content { padding-top: 14px; }
    .site-header__top { min-height: 66px; }
    .site-branding { min-width: 0; }
    .site-tagline { display: none; }
    .custom-logo { max-height: 40px; max-width: 170px; }
    .menu-toggle { display: block; }
    .primary-nav { background: var(--site-header); display: none; left: 0; margin: 0; padding: 10px 18px 16px; position: absolute; right: 0; top: 100%; }
    body.fdm-preset-pulse .primary-nav { background: #fff; border-top: 1px solid var(--site-border); }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { align-items: stretch; display: block; }
    .primary-nav a { padding: 11px 8px; }
    .post-grid { grid-template-columns: minmax(0,1fr); }
    .site-footer__inner { align-items: flex-start; display: block; }
}

@supports not (color: color-mix(in srgb,#000,#fff)) {
    body.fdm-preset-scoreboard .site-header { background: var(--site-header); }
}
