/*
Theme Name: SportsWire
Description: Revista editorial de esportes, gaming e iGaming. Layout magazine completo.
Version: 1.0
Author: Claude
*/

:root {
  --ink: #1a2026;
  --paper: #ffffff;
  --bg: #f4f5f7;
  --line: #e4e7ec;
  --muted: #6b7280;
  --accent: #0fa36b;
  --accent-dark: #0b7d52;
  --navy: #0a1628;
  --gold: #f5b50a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 17px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1860px; margin: 0 auto; padding: 0 36px; }
h1, h2, h3, h4 { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; letter-spacing: -0.4px; font-weight: 800; }

/* ===== Top header ===== */
.topbar { background: var(--navy); color: #aab6cc; font-size: 15px; }
.topbar .wrap { display: flex; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #aab6cc; margin-left: 16px; }
.topbar a:hover { color: #fff; }

.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.logo { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-weight: 900; font-size: 44px; font-weight: 700; letter-spacing: -1px; }
.logo em { font-style: normal; color: var(--accent); }
.logo small { display: block; font-family: Helvetica, sans-serif; font-size: 14px; font-weight: 400; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.masthead .age-badge { border: 2px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 16px; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; }

/* ===== Category nav ===== */
.catnav { background: var(--paper); border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 50; }
.catnav ul { display: flex; flex-wrap: wrap; list-style: none; }
.catnav a { display: block; padding: 17px 19px; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.catnav a:hover, .catnav .current a { border-color: var(--accent); color: var(--accent); }

/* ===== Breaking bar ===== */
.breaking { background: var(--navy); color: #fff; font-size: 19px; overflow: hidden; border-bottom: 3px solid var(--accent); }
.breaking .wrap { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.breaking .tag { background: var(--accent); color: #fff; font-weight: 800; text-transform: uppercase; font-size: 16px; letter-spacing: 1px; padding: 5px 12px; flex-shrink: 0; }
.breaking a { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breaking .ticker { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.breaking .ticker-track { display: flex; width: max-content; animation: sw-marquee 120s linear infinite; }
.breaking .ticker-track .ticker-item { margin-right: 56px; }
.breaking .ticker:hover .ticker-track { animation-play-state: paused; }
.breaking .ticker-item .arrow { font-size: 14px; opacity: .8; }
.breaking .ticker-item:hover { text-decoration: underline; }
@keyframes sw-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Section headings ===== */
.sec-head { display: flex; align-items: center; gap: 14px; margin: 36px 0 18px; }
.sec-head h2 { font-size: 28px; text-transform: uppercase; font-family: Helvetica, sans-serif; letter-spacing: 1px; font-weight: 800; }
.sec-head .rule { flex: 1; height: 3px; background: var(--ink); }
.sec-head .more { font-size: 15px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }

/* ===== Cards ===== */
.thumb { aspect-ratio: 16/9; background: var(--navy); position: relative; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 64px; color: rgba(255,255,255,.25); }
.thumb .cat-flag { position: absolute; left: 0; bottom: 0; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; }

.card { background: var(--paper); border: 1px solid var(--line); }
.card .pad { padding: 16px 18px 18px; }
.card h3 { font-size: 24px; line-height: 1.25; margin-bottom: 8px; }
.card h3 a:hover, .hero h3 a:hover, .list-item h4 a:hover { color: var(--accent); }
.byline { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.byline b { color: var(--ink); font-weight: 600; }
.excerpt { font-size: 16px; color: #3f4654; }
.excerpt p { margin: 0; }

/* ===== Featured grid ===== */
.featured { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; margin-top: 24px; }
.featured .hero { grid-row: 1 / 3; position: relative; }
.featured .hero .thumb { aspect-ratio: auto; height: 100%; min-height: 540px; }
.featured .hero .overlay { position: absolute; inset: 0 0 auto 0; padding: 28px; background: linear-gradient(rgba(8,12,20,.92), rgba(8,12,20,.55) 60%, transparent); color: #fff; }
.featured .hero h3 { font-size: 42px; line-height: 1.15; margin: 8px 0; }
.featured .hero .byline { color: #c8cfdb; }
.featured .hero .byline b { color: #fff; }
.featured .hero .cat-pill, .cat-pill { display: inline-block; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; }

/* ===== Main layout ===== */
.main-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1400px) { .latest-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Trending sidebar ===== */
.sidebar .panel { background: var(--paper); border: 1px solid var(--line); padding: 20px; margin-bottom: 24px; }
.panel-title { font-family: Helvetica, sans-serif; font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding-bottom: 10px; border-bottom: 3px solid var(--accent); margin-bottom: 14px; }
.trend { display: flex; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.trend:last-child { border-bottom: 0; }
.trend .n { font-weight: 900; font-size: 36px; color: var(--line); line-height: 1; min-width: 40px; text-align: center; }
.trend h4 { font-size: 18px; line-height: 1.3; }
.trend .byline { margin: 4px 0 0; }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.taglist a { border: 1px solid var(--line); padding: 7px 14px; font-size: 15px; font-weight: 600; color: var(--muted); }
.taglist a:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Category sections ===== */
.cat-section { margin-top: 8px; }
.cat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ===== Newsletter ===== */
.newsletter { background: var(--navy); color: #fff; margin: 48px 0 0; }
.newsletter .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.newsletter h2 { font-size: 34px; }
.newsletter p { color: #aab6cc; font-size: 17px; margin-top: 6px; max-width: 460px; }
.newsletter form { display: flex; gap: 10px; flex: 1; max-width: 440px; }
.newsletter input { flex: 1; padding: 15px 18px; border: 0; font-size: 16px; }
.newsletter button { background: var(--accent); color: #fff; border: 0; padding: 15px 30px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 15px; cursor: pointer; }
.newsletter button:hover { background: var(--accent-dark); }

/* ===== Footer ===== */
.site-footer { background: #0a0e14; color: #8b93a3; font-size: 15.5px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 44px 0 32px; }
.site-footer h5 { color: #fff; font-family: Helvetica, sans-serif; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.site-footer li { list-style: none; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .flogo { font-weight: 900; font-size: 32px; font-weight: 700; color: #fff; }
.site-footer .flogo em { font-style: normal; color: var(--accent); }
.disclaimer { border-top: 1px solid #1c2330; padding: 22px 0; font-size: 14px; line-height: 1.7; color: #6b7484; }
.disclaimer .badge18 { display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--accent); color: var(--accent); border-radius: 50%; width: 34px; height: 34px; font-weight: 800; margin-right: 12px; float: left; }
.copyright { border-top: 1px solid #1c2330; padding: 16px 0; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ===== Single / archive ===== */
.single-wrap { background: var(--paper); border: 1px solid var(--line); padding: 48px 56px; margin-top: 28px; max-width: 1060px; margin-left: auto; margin-right: auto; }
.single-wrap h1 { font-size: 48px; line-height: 1.12; margin: 12px 0; }
.single-wrap .lead-thumb { margin: 20px 0; }
.post-body { font-size: 19px; max-width: 100%; }
.post-body p { margin-bottom: 18px; }
.archive-title { margin: 32px 0 0; font-size: 34px; }
.archive-title span { color: var(--accent); }

@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr 1fr; }
  .featured .hero { grid-column: 1 / 3; grid-row: 1; }
  .main-grid { grid-template-columns: 1fr; }
  .cat-row, .latest-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}

/* ===== Single article extras ===== */
.single-wrap .subtitle { font-size: 22px; color: var(--muted); line-height: 1.45; margin: 10px 0 6px; font-weight: 400; }
.single-meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin: 12px 0 6px; }
.single-meta b { color: var(--ink); }
.single-meta .rt { background: var(--bg); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; font-size: 13px; }
.related { margin-top: 40px; border-top: 3px solid var(--ink); padding-top: 18px; }
.related h3 { font-size: 22px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.related .cat-row { grid-template-columns: repeat(3, 1fr); }
.topbar .headline { color: #d6dde8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.topbar .headline b { color: var(--accent); text-transform: uppercase; font-size: 11px; letter-spacing: 1px; margin-right: 8px; }
.topbar .social a { margin-left: 12px; font-weight: 700; }

/* ===== Ad slots ===== */
.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 30px auto; }
.ad-label { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: #adb5bd; }
.ad-box { width: 100%; max-width: var(--ad-w); height: var(--ad-h); background: #fff; border: 1px solid var(--line); border-radius: 3px; display: flex; align-items: center; justify-content: center; }
.ad-box span { font-size: 13px; letter-spacing: .4px; color: #9aa3af; font-weight: 500; }
/* Top leaderboard: subtle thin gray strip, not prominent at the start of the page. */
#ad-leaderboard-top { margin: 8px auto 4px; }
#ad-leaderboard-top .ad-label { display: none; }
#ad-leaderboard-top .ad-box { height: 34px; background: #f1f3f6; border: 0; border-radius: 4px; }
#ad-leaderboard-top .ad-box span { color: #c4c9d2; font-size: 11px; }
.ad-box:hover span { color: var(--accent); }
.ad-banner img { display: block; width: 100%; max-width: var(--ad-w); height: auto; border-radius: 3px; }
.sidebar .ad-slot { margin: 0 0 24px; }
.post-body .ad-slot, #ad-before-related { margin: 34px auto; }
@media (max-width: 1000px) { .ad-box { height: 90px; } }
@media (max-width: 600px) { .ad-slot { margin: 20px auto; } .ad-box { max-width: 320px; height: 50px; } .ad-box span { font-size: 11px; } #ad-sidebar-mpu .ad-box, #ad-article-mpu .ad-box { max-width: 300px; height: 250px; } }

@media (max-width: 768px) { .single-wrap { padding: 24px 20px; } }

/* Hero with Getty embed */
.featured .hero .hero-getty { position: absolute; inset: 0; background: var(--navy); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.featured .hero .hero-getty iframe, .featured .hero .hero-getty a.gie-single { max-width: none !important; }
.featured .hero .hero-getty > * { transform: scale(1.75); transform-origin: center; }
.featured .hero .hero-link { position: absolute; inset: auto 0 0 0; z-index: 2; }
.featured .hero .hero-link .overlay { position: static; }

/* Sources box */
.sources-box { margin-top: 34px; padding: 18px 22px; background: var(--bg); border-left: 4px solid var(--accent); font-size: 14px; }
.sources-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.sources-box li { margin-left: 18px; padding: 2px 0; word-break: break-all; }
.sources-box a { color: #25633f; }
.sources-box a:hover { color: var(--accent); }

/* ===== Faixa de jogos (agenda Copa) ===== */
.match-strip { display: flex; gap: 14px; align-items: stretch; margin: 22px 0 8px; }
.ms-badge { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 14px 18px; background: var(--navy); border-radius: 12px; color: #fff; min-width: 150px; }
.ms-badge-top { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; }
.ms-badge-top strong { color: var(--accent); }
.ms-badge-btn { display: inline-block; text-align: center; font-size: 13px; font-weight: 700; padding: 8px 14px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; transition: .15s; }
.ms-badge-btn:hover { background: var(--accent); border-color: var(--accent); }
.ms-track { flex: 1 1 auto; display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.ms-track::-webkit-scrollbar { height: 6px; }
.ms-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.ms-card { flex: 0 0 auto; width: 150px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; transition: .15s; }
.ms-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(15,27,45,.08); }
.ms-when { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); }
.ms-live { color: var(--accent); font-size: 12px; }
.ms-team { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--ink); }
.ms-flag { font-size: 18px; line-height: 1; }
.ms-abbr { letter-spacing: -0.2px; }
.ms-phase { margin-top: 2px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 7px; }
@media (max-width: 700px) {
  .match-strip { flex-direction: column; }
  .ms-badge { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ===== Página Agenda da Copa ===== */
.agenda-page { max-width: 820px; margin: 30px auto 60px; }
.agenda-head { text-align: center; margin-bottom: 30px; }
.agenda-kicker { display: inline-block; background: var(--navy); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: 1px; padding: 5px 12px; border-radius: 999px; }
.agenda-kicker strong { color: var(--accent); }
.agenda-head h1 { font-size: 38px; margin: 12px 0 8px; }
.agenda-head p { color: var(--muted); font-size: 16px; }
.agenda-day { margin-top: 26px; }
.agenda-date { font-size: 15px; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); border-bottom: 2px solid var(--line); padding-bottom: 7px; margin-bottom: 4px; }
.agenda-list { list-style: none; }
.agenda-row { display: flex; align-items: center; gap: 16px; padding: 13px 6px; border-bottom: 1px solid var(--line); }
.ar-time { flex: 0 0 52px; font-weight: 800; color: var(--ink); font-size: 15px; }
.ar-match { flex: 1 1 auto; display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 17px; }
.ar-team { display: flex; align-items: center; gap: 7px; }
.ar-flag { font-size: 20px; }
.ar-x { color: var(--muted); font-weight: 400; }
.ar-phase { flex: 0 0 auto; color: var(--muted); font-size: 13px; }
.ar-live { flex: 0 0 auto; color: var(--accent); font-weight: 800; font-size: 12px; }
@media (max-width: 640px) {
  .agenda-row { flex-wrap: wrap; gap: 8px 12px; }
  .ar-phase { width: 100%; order: 3; }
}

/* ============================================================
   MOBILE / RESPONSIVE — layout tuning for phones
   ============================================================ */
@media (max-width: 768px) { .wrap { padding: 0 16px; } }
@media (max-width: 780px) { .topbar .headline { display: none; } }
@media (max-width: 520px) {
  .topbar .wrap > span:first-child { display: none; }
  .topbar .wrap { justify-content: center; }
  .topbar .social a:first-child { margin-left: 0; }
}
@media (max-width: 768px) {
  .masthead .wrap { padding-top: 16px; padding-bottom: 16px; }
  .logo { font-size: 30px; }
  .logo small { font-size: 12px; letter-spacing: 1.8px; }
}
@media (max-width: 400px) { .logo { font-size: 25px; } }
@media (max-width: 768px) {
  .catnav ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .catnav ul::-webkit-scrollbar { display: none; }
  .catnav a { padding: 13px 14px; font-size: 14px; white-space: nowrap; }
}
@media (max-width: 600px) {
  .breaking { font-size: 16px; }
  .breaking .wrap { gap: 12px; }
  .breaking .tag { font-size: 13px; padding: 4px 10px; }
}
@media (max-width: 600px) {
  .sec-head { margin: 26px 0 14px; }
  .sec-head h2 { font-size: 21px; }
}
@media (max-width: 620px) {
  .featured { grid-template-columns: 1fr; grid-template-rows: none; }
  .featured .hero { grid-column: auto; grid-row: auto; }
  .featured .hero .thumb { min-height: 300px; }
  .featured .hero .overlay { padding: 18px; }
  .featured .hero h3 { font-size: 26px; }
  .card h3 { font-size: 20px; }
}
@media (max-width: 600px) {
  .trend { gap: 16px; }
  .trend .n { font-size: 30px; min-width: 32px; }
}
@media (max-width: 640px) {
  .newsletter .wrap { padding-top: 30px; padding-bottom: 30px; }
  .newsletter h2 { font-size: 25px; }
  .newsletter form { flex-direction: column; max-width: 100%; width: 100%; }
  .newsletter button { padding: 14px; }
}
@media (max-width: 600px) {
  .single-wrap h1 { font-size: 28px; }
  .single-wrap .subtitle { font-size: 18px; }
  .post-body { font-size: 17.5px; }
  .archive-title { font-size: 25px; }
}
@media (max-width: 900px) { .related .cat-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .related .cat-row { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .author-box { flex-direction: column; gap: 12px; padding: 18px; } }
@media (max-width: 500px) {
  .site-footer .cols { grid-template-columns: 1fr; gap: 24px; }
  .copyright { justify-content: center; text-align: center; }
}
