/*
Theme Name: Kira Recovery Siam Sport
Theme URI: https://siam-sport.com/
Author: KiraPlatform
Description: Theme báo thể thao Thái Lan phục hồi từ GSC và tracking.
Version: 1.0.0
Text Domain: kira-recovery-siam-sport
*/

:root {
  --ink: #071929;
  --ink-soft: #10293b;
  --teal: #08a99b;
  --teal-bright: #25d9c8;
  --amber: #ffba33;
  --coral: #ff5d5d;
  --paper: #f4f7f8;
  --line: #dbe5e8;
  --muted: #61727d;
  --white: #fff;
  --container: 1240px;
}

/* Siam Sport newsroom identity. */
:root { --ink:#102a56; --ink-soft:#183c73; --teal:#d62032; --teal-bright:#f2c94c; --amber:#f2c94c; --coral:#d62032; --paper:#f3f5f8; --line:#dce2ea; --muted:#667386; }
body { font-family: Arial, "Noto Sans Thai", sans-serif; }
.site-header { background:#fff; border-bottom:4px solid var(--coral); box-shadow:0 4px 18px rgba(16,42,86,.12); }
.main-navigation a { color:var(--ink); }
.main-navigation a:hover,.main-navigation .current-menu-item>a { color:#fff; background:var(--coral); }
.custom-logo { height:84px; }
.hero { min-height:560px; }
.hero::after { background:linear-gradient(90deg,rgba(8,26,52,.96),rgba(8,26,52,.55) 56%,rgba(8,26,52,.08)); }
.score-bar { color:#fff; background:var(--coral); }
.score-bar .container { display:flex; align-items:center; gap:0; overflow:auto; }
.score-bar strong,.score-bar span { flex:0 0 auto; padding:15px 24px; border-right:1px solid rgba(255,255,255,.28); }
.score-bar strong { color:var(--ink); background:var(--amber); }
.story-card,.post-card,.sidebar-widget,.home-copy,.article-main { border-radius:4px; }
.post-card { border-bottom-color:var(--coral); }
.tag { color:#fff; background:var(--coral); }
.eyebrow { color:var(--coral); }
.section-dark .eyebrow,.hero .eyebrow { color:var(--amber); }
.entry-content a { color:#b31326; }
.footer-brand span { color:var(--amber); }
@media(max-width:980px){.main-navigation a{color:#fff}.site-header{background:var(--ink)}}
@media(max-width:680px){.score-bar .container{width:100%}.score-bar strong,.score-bar span{padding:12px 16px}.hero{min-height:480px}}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.site-topbar { color: #c9d6dc; background: #04111d; font-size: 12px; }
.site-topbar .container { display: flex; justify-content: space-between; gap: 24px; padding: 7px 0; }
.site-header { position: relative; z-index: 20; background: var(--ink); border-bottom: 3px solid var(--teal-bright); }
.header-main { display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; align-items: center; gap: 32px; min-height: 92px; }
.custom-logo-link { display: block; width: 240px; }
.custom-logo { width: 240px; height: 86px; object-fit: contain; object-position: left center; }
.site-brand-text { color: #fff; font-size: 28px; font-weight: 900; line-height: 1.05; }
.site-brand-text span { display: block; color: var(--teal-bright); }
.main-navigation ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { display: block; padding: 12px 13px; color: #fff; font-size: 14px; font-weight: 700; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--ink); background: var(--amber); }
.header-badge { padding: 9px 12px; color: var(--ink); background: var(--teal-bright); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.28); color: #fff; background: transparent; font-size: 24px; }

.hero { position: relative; min-height: 590px; display: grid; align-items: end; color: #fff; background: var(--ink); overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .57; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,17,29,.96) 0%, rgba(4,17,29,.68) 52%, rgba(4,17,29,.18) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 730px; padding: 88px 0 76px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--teal-bright); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 38px; height: 4px; background: var(--amber); }
.hero h1 { margin: 0 0 20px; max-width: 700px; color: #fff; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.03; letter-spacing: 0; }
.hero p { max-width: 650px; margin: 0 0 30px; color: #dfe9ed; font-size: 19px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; background: var(--amber); color: var(--ink); font-weight: 900; }
.button:hover { background: var(--teal-bright); color: var(--ink); }
.hero-stats { position: relative; z-index: 3; color: #fff; background: var(--teal); }
.hero-stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stat { padding: 22px 24px; border-right: 1px solid rgba(255,255,255,.24); }
.hero-stat strong { display: block; color: var(--amber); font-size: 24px; line-height: 1; }
.hero-stat span { font-size: 13px; font-weight: 700; }

.section { padding: 72px 0; }
.section-white { background: #fff; }
.section-dark { color: #fff; background: var(--ink); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading h2 { margin: 4px 0 0; font-size: 34px; line-height: 1.15; }
.section-heading p { max-width: 560px; margin: 0; color: var(--muted); }
.section-dark .section-heading p { color: #b8c7ce; }
.feature-grid { display: grid; grid-template-columns: 1.45fr .75fr .75fr; gap: 18px; }
.story-card { position: relative; min-height: 420px; overflow: hidden; background: var(--ink); }
.story-card.small { min-height: 201px; }
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.story-card:hover img { transform: scale(1.035); }
.story-overlay { position: absolute; inset: auto 0 0; padding: 52px 24px 22px; color: #fff; background: linear-gradient(transparent, rgba(3,14,23,.94)); }
.story-overlay h3 { margin: 7px 0 0; font-size: 24px; line-height: 1.25; }
.story-card.small .story-overlay h3 { font-size: 17px; }
.tag { display: inline-block; padding: 4px 8px; color: var(--ink); background: var(--amber); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.stack { display: grid; gap: 18px; }

.topic-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.15); }
.topic { min-height: 150px; padding: 28px; border-right: 1px solid rgba(255,255,255,.15); }
.topic:last-child { border: 0; }
.topic b { display: block; color: var(--amber); font-size: 30px; }
.topic h3 { margin: 7px 0; font-size: 18px; }
.topic p { margin: 0; color: #b9c8ce; font-size: 14px; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 36px; align-items: start; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.post-card { background: #fff; border-bottom: 4px solid var(--teal); box-shadow: 0 8px 24px rgba(7,25,41,.07); }
.post-card-media { aspect-ratio: 16/9; overflow: hidden; background: #dbe5e8; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-card-body { padding: 20px; }
.post-card h2, .post-card h3 { margin: 8px 0 10px; font-size: 21px; line-height: 1.3; }
.post-card p { margin: 0; color: var(--muted); font-size: 14px; }
.post-meta { color: var(--teal); font-size: 12px; font-weight: 800; text-transform: uppercase; }

.sidebar-widget { margin-bottom: 24px; padding: 24px; background: #fff; border-top: 4px solid var(--coral); }
.sidebar-widget h2 { margin: 0 0 16px; font-size: 19px; }
.sidebar-widget ul { margin: 0; padding: 0; list-style: none; }
.sidebar-widget li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sidebar-widget li:last-child { border: 0; }

.home-copy, .entry-content { color: #233843; }
.home-copy { margin-top: 42px; padding: 36px; background: #fff; border-left: 5px solid var(--amber); }
.home-copy h2, .entry-content h2 { color: var(--ink); font-size: 28px; line-height: 1.25; }
.home-copy h3, .entry-content h3 { color: var(--ink); font-size: 22px; }
.entry-content a { color: #087f75; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content figure { margin: 30px 0; }
.entry-content figure img, .entry-content > img { width: 100%; max-height: 680px; object-fit: cover; }
.entry-content figcaption { padding-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.entry-header { margin-bottom: 28px; }
.entry-title { margin: 8px 0 14px; font-size: clamp(34px, 4vw, 52px); line-height: 1.12; }
.article-shell { padding: 62px 0 80px; }
.article-main { padding: 38px; background: #fff; }
.archive-header { padding: 58px 0 34px; background: #fff; border-bottom: 1px solid var(--line); }
.archive-header h1 { margin: 4px 0; font-size: 42px; }
.pagination { display: flex; gap: 8px; margin-top: 32px; }
.pagination .page-numbers { min-width: 40px; padding: 8px 12px; text-align: center; background: #fff; border: 1px solid var(--line); }
.pagination .current { color: #fff; background: var(--teal); border-color: var(--teal); }

.site-footer { color: #c8d4da; background: #04111d; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; padding: 58px 0 40px; }
.footer-brand { color: #fff; font-size: 25px; font-weight: 900; }
.footer-brand span { color: var(--teal-bright); }
.site-footer h2 { margin: 0 0 15px; color: #fff; font-size: 17px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 7px 0; }
.footer-legal { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; text-align: center; }

@media (max-width: 980px) {
  .header-main { grid-template-columns: 1fr auto; min-height: 82px; }
  .menu-toggle { display: block; }
  .header-badge { display: none; }
  .main-navigation { display: none; grid-column: 1 / -1; padding-bottom: 16px; }
  .main-navigation.open { display: block; }
  .main-navigation ul { display: block; }
  .main-navigation a { border-top: 1px solid rgba(255,255,255,.12); }
  .custom-logo { height: 74px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid > .story-card:first-child { grid-column: 1 / -1; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero { min-height: 520px; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--container)); }
  .site-topbar .container { justify-content: center; text-align: center; }
  .site-topbar span:last-child { display: none; }
  .custom-logo-link, .custom-logo { width: 190px; }
  .hero { min-height: 500px; }
  .hero-content { padding: 72px 0 54px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 16px; }
  .hero-stats .container { grid-template-columns: 1fr 1fr; width: 100%; }
  .hero-stat { padding: 16px; border-bottom: 1px solid rgba(255,255,255,.2); }
  .section { padding: 50px 0; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 28px; }
  .feature-grid, .post-grid, .footer-main, .sidebar { grid-template-columns: 1fr; }
  .feature-grid > .story-card:first-child { grid-column: auto; }
  .story-card, .story-card.small { min-height: 320px; }
  .topic-strip { grid-template-columns: 1fr 1fr; }
  .topic { min-height: 132px; padding: 20px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .article-main { padding: 24px 18px; }
  .entry-title { font-size: 34px; }
  .home-copy { padding: 24px 18px; }
  .footer-main { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
