/*
Theme Name: Chinafootball
Theme URI: https://chinafootball.net/
Author: Chinafootball.net
Description: A fast, responsive football news and live scores theme with configurable public API integrations.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: chinafootball
*/

:root {
  --cf-ink: #0c1830;
  --cf-navy: #101d3d;
  --cf-coral: #ff5d62;
  --cf-cyan: #23d5c3;
  --cf-gold: #ffd166;
  --cf-paper: #f5f8fc;
  --cf-muted: #6e7a91;
  --cf-line: #dfe6f1;
  --cf-radius: 18px;
  --cf-shadow: 0 18px 50px rgba(22, 42, 80, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--cf-ink); background: var(--cf-paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cf-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.cf-header { position: relative; overflow: hidden; color: #fff; background: var(--cf-navy); }
.cf-header::after { content: ""; position: absolute; inset: -35% -10% auto auto; width: 520px; height: 520px; border: 1px solid rgba(35,213,195,.35); border-radius: 50%; box-shadow: 0 0 0 34px rgba(35,213,195,.05), 0 0 0 68px rgba(35,213,195,.04); pointer-events: none; }
.cf-nav { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.cf-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.04em; font-size: 1.25rem; }
.cf-brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--cf-navy); background: var(--cf-cyan); transform: rotate(-8deg); box-shadow: 5px 5px 0 var(--cf-coral); }
.cf-menu { display: flex; align-items: center; gap: 22px; color: #dbe5ff; font-size: .92rem; }
.cf-menu a:hover { color: var(--cf-cyan); }
.cf-hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 42px; align-items: center; padding: 72px 0 92px; }
.cf-kicker { color: var(--cf-cyan); text-transform: uppercase; font-weight: 800; letter-spacing: .16em; font-size: .74rem; }
.cf-hero h1 { max-width: 720px; margin: 12px 0 18px; color: #fff; font-size: clamp(2.6rem, 7vw, 5.7rem); line-height: .95; letter-spacing: -.065em; }
.cf-hero p { max-width: 590px; color: #bdcae8; font-size: 1.08rem; }
.cf-orbit { min-height: 270px; display: grid; place-items: center; }
.cf-ball { width: 170px; height: 170px; display: grid; place-items: center; color: var(--cf-navy); background: var(--cf-gold); border-radius: 50%; font-size: 5rem; box-shadow: 0 0 0 16px rgba(255,209,102,.12), 0 0 0 36px rgba(255,209,102,.06); animation: cf-float 5s ease-in-out infinite; }
@keyframes cf-float { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-18px) rotate(8deg); } }
.cf-main { padding: 54px 0 70px; }
.cf-section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }
.cf-section-head h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -.05em; }
.cf-section-head p { margin: 0; color: var(--cf-muted); font-size: .9rem; }
.cf-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.cf-card { background: #fff; border: 1px solid var(--cf-line); border-radius: var(--cf-radius); box-shadow: var(--cf-shadow); }
.cf-card-pad { padding: 24px; }
.cf-card-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; font-size: 1.08rem; }
.cf-live { display: inline-flex; align-items: center; gap: 7px; color: #e8424c; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.cf-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(232,66,76,.13); animation: cf-pulse 1.7s infinite; }
@keyframes cf-pulse { 50% { opacity: .35; transform: scale(.7); } }
.cf-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 15px 0; border-top: 1px solid var(--cf-line); }
.cf-score:first-of-type { border-top: 0; }
.cf-team { display: flex; align-items: center; gap: 9px; font-weight: 750; }
.cf-team:last-child { justify-content: end; text-align: right; }
.cf-crest { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--cf-navy); background: #e7f9f6; font-size: .72rem; font-weight: 900; }
.cf-result { min-width: 62px; text-align: center; font-weight: 900; }
.cf-status { display: block; color: var(--cf-muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.cf-news-item { display: block; padding: 15px 0; border-top: 1px solid var(--cf-line); }
.cf-news-item:first-of-type { border-top: 0; }
.cf-news-meta { color: var(--cf-coral); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.cf-news-item h3 { margin: 4px 0 0; font-size: 1rem; line-height: 1.25; }
.cf-empty { padding: 20px 0; color: var(--cf-muted); font-size: .9rem; }
.cf-skeleton { height: 52px; margin: 10px 0; border-radius: 12px; background: linear-gradient(90deg, #f0f3f8, #fff, #f0f3f8); background-size: 200% 100%; animation: cf-shimmer 1.3s infinite; }
@keyframes cf-shimmer { to { background-position: -200% 0; } }
.cf-refresh { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; padding: 9px 14px; color: var(--cf-navy); background: var(--cf-cyan); cursor: pointer; font: inherit; font-size: .78rem; font-weight: 800; }
.cf-refresh.is-loading { opacity: .65; pointer-events: none; }
.cf-refresh.is-loading::before { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cf-spin .7s linear infinite; }
@keyframes cf-spin { to { transform: rotate(360deg); } }
.cf-footer { padding: 28px 0; color: #bdcae8; background: var(--cf-navy); font-size: .85rem; }
.cf-footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.cf-post { max-width: 780px; margin: 0 auto; }
.cf-post h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; letter-spacing: -.06em; }
.cf-post-content { font-size: 1.08rem; }
.cf-post-content a { color: #138f87; text-decoration: underline; }
@media (max-width: 760px) { .cf-menu { display: none; } .cf-hero { grid-template-columns: 1fr; padding: 52px 0 68px; } .cf-orbit { min-height: 180px; } .cf-ball { width: 120px; height: 120px; font-size: 3.5rem; } .cf-grid { grid-template-columns: 1fr; } .cf-footer-inner { flex-direction: column; } }
