/*
Theme Name:  SportvNews
Theme URI:   https://igrtech.com.br
Author:      IGRTECH TECNOLOGIA LTDA
Author URI:  https://igrtech.com.br
Description: Portal de notícias esportivas completo no estilo ge.globo.com. Inclui breaking news ticker, hero grid dinâmico, live scores, classificação, sistema de anúncios, assinaturas e painel administrativo estendido.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sportvnews
Tags:        news, sports, dark, magazine, custom-header, custom-logo, featured-images, post-formats, rtl-language-support, translation-ready
*/

/* ══════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
══════════════════════════════════════════════════════ */
:root {
  --sn-red:       #e8001e;
  --sn-red-dark:  #b50018;
  --sn-red-light: #ff1a35;
  --sn-black:     #0a0a0a;
  --sn-dark:      #111318;
  --sn-dark2:     #1a1d25;
  --sn-dark3:     #22262f;
  --sn-gray:      #2e3240;
  --sn-gray2:     #3d4255;
  --sn-muted:     #6b7280;
  --sn-light:     #9ca3af;
  --sn-white:     #f8f9fa;
  --sn-gold:      #f59e0b;
  --sn-green:     #10b981;
  --sn-blue:      #3b82f6;
}

/* ══════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--sn-black);
  color: var(--sn-white);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--sn-red); outline-offset: 2px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: 'Barlow', sans-serif; }
input, textarea, select { font-family: 'Barlow', sans-serif; }
ul, ol { list-style: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sn-dark); }
::-webkit-scrollbar-thumb { background: var(--sn-gray); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--sn-red); }

/* ── SCREEN READER ── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -40px; left: 0; background: var(--sn-red);
  color: #fff; padding: 8px 16px; z-index: 9999; border-radius: 0 0 4px 0;
  font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ══════════════════════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--sn-white);
}
h1 { font-size: clamp(26px, 5vw, 42px); font-weight: 800; }
h2 { font-size: clamp(20px, 3vw, 28px); }
h3 { font-size: clamp(16px, 2.5vw, 22px); }
h4 { font-size: 18px; }

p { color: var(--sn-light); line-height: 1.7; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════
   LAYOUT UTILITIES
══════════════════════════════════════════════════════ */
.sn-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.sn-section   { padding: 32px 0; }

/* ══════════════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════════════ */
.sn-topbar {
  background: var(--sn-dark);
  border-bottom: 1px solid var(--sn-dark3);
  padding: 7px 0;
  font-size: 12px;
  color: var(--sn-muted);
}
.sn-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.sn-topbar-links { display: flex; gap: 16px; flex-wrap: wrap; }
.sn-topbar-links a { color: var(--sn-light); transition: color .2s; }
.sn-topbar-links a:hover { color: var(--sn-red); }
.sn-topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sn-topbar-gold { font-size: 12px; color: var(--sn-gold); }
.sn-login-btn {
  background: var(--sn-red); color: #fff;
  padding: 4px 14px; border-radius: 3px;
  font-size: 11px; font-weight: 600; letter-spacing: .5px;
  transition: background .2s; white-space: nowrap;
}
.sn-login-btn:hover { background: var(--sn-red-dark); }

/* ══════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════ */
.sn-header {
  background: var(--sn-dark2);
  border-bottom: 3px solid var(--sn-red);
  position: sticky; top: 0; z-index: 200;
}
.sn-header-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
  height: 70px;
}

/* ── Logo ── */
.sn-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 30px; font-weight: 700;
  letter-spacing: -1px;
  display: flex; align-items: center; gap: 2px;
  flex-shrink: 0;
  text-decoration: none;
}
.sn-logo .logo-sport { color: var(--sn-red); }
.sn-logo .logo-news  { color: var(--sn-light); font-weight: 400; font-size: 22px; }
.sn-logo img { max-height: 44px; width: auto; }

/* ── Primary Nav ── */
.sn-nav { display: flex; gap: 2px; }
.sn-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: .5px;
  color: var(--sn-light); padding: 8px 12px; border-radius: 4px;
  transition: all .2s; text-transform: uppercase; white-space: nowrap;
}
.sn-nav a:hover,
.sn-nav .current-menu-item > a,
.sn-nav .current_page_item > a { color: #fff; background: var(--sn-red); }

/* ── Search ── */
.sn-search-form { display: flex; align-items: center; gap: 6px; }
.sn-search-form .search-field {
  background: var(--sn-dark3); border: 1px solid var(--sn-gray);
  color: var(--sn-white); padding: 8px 12px; border-radius: 4px;
  font-size: 13px; width: 180px; transition: all .2s;
}
.sn-search-form .search-field:focus { outline: none; border-color: var(--sn-red); width: 220px; }
.sn-search-form .search-field::placeholder { color: var(--sn-muted); }
.sn-search-form .search-submit {
  background: var(--sn-red); color: #fff;
  padding: 8px 14px; border-radius: 4px; font-size: 13px;
  font-weight: 600; transition: background .2s; white-space: nowrap;
}
.sn-search-form .search-submit:hover { background: var(--sn-red-dark); }

/* ── Mobile hamburger ── */
.sn-menu-toggle {
  display: none; background: var(--sn-dark3);
  border: 1px solid var(--sn-gray); color: var(--sn-white);
  padding: 8px 12px; border-radius: 4px; font-size: 18px;
}

/* ══════════════════════════════════════════════════════
   BREAKING NEWS TICKER
══════════════════════════════════════════════════════ */
.sn-breaking-bar {
  background: var(--sn-red);
  padding: 8px 0;
  overflow: hidden;
}
.sn-breaking-inner {
  display: flex; align-items: center; gap: 16px;
}
.sn-breaking-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0,0,0,.3);
  padding: 2px 10px; border-radius: 2px;
  white-space: nowrap; flex-shrink: 0;
}
.sn-ticker-wrap { flex: 1; overflow: hidden; }
.sn-ticker-track {
  display: flex; gap: 60px; white-space: nowrap;
  animation: sn-ticker 40s linear infinite;
  font-size: 13px; font-weight: 500;
}
.sn-ticker-track:hover { animation-play-state: paused; }
.sn-ticker-track span::before { content: "▶ "; font-size: 9px; opacity: .8; }
@keyframes sn-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════
   AD BANNER
══════════════════════════════════════════════════════ */
.sn-ad-zone { margin: 12px 0; }
.sn-ad-wrap {
  background: var(--sn-dark3);
  border: 1px dashed var(--sn-gray2);
  border-radius: 4px; overflow: hidden;
  transition: border-color .2s;
  text-align: center;
}
.sn-ad-wrap:hover { border-color: var(--sn-red); }
.sn-ad-label {
  font-size: 10px; color: var(--sn-muted);
  padding: 3px 0; display: block;
  letter-spacing: 1px; text-transform: uppercase;
}
.sn-ad-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 12px 20px;
  background: linear-gradient(135deg, var(--sn-dark2), var(--sn-dark3));
  min-height: 60px;
}
.sn-ad-inner .ad-cta {
  background: var(--sn-gold); color: var(--sn-black);
  padding: 5px 14px; border-radius: 3px;
  font-size: 12px; font-weight: 700;
}

/* ══════════════════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════════════════ */
.sn-main { padding: 24px 0 40px; }
.sn-content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
}
.sn-content-area {}
.sn-sidebar      {}

/* ══════════════════════════════════════════════════════
   SECTION HEAD
══════════════════════════════════════════════════════ */
.sn-section-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.sn-section-head h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  white-space: nowrap;
}
.sn-section-head::after {
  content: ''; flex: 1; height: 2px;
  background: linear-gradient(to right, var(--sn-red), transparent);
}
.sn-section-head .sn-see-all {
  font-size: 12px; color: var(--sn-red);
  font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; white-space: nowrap;
  transition: opacity .2s;
}
.sn-section-head .sn-see-all:hover { opacity: .7; }

/* ══════════════════════════════════════════════════════
   HERO GRID
══════════════════════════════════════════════════════ */
.sn-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.sn-hero-main {
  position: relative; border-radius: 6px; overflow: hidden;
  cursor: pointer; display: block;
}
.sn-hero-thumb {
  width: 100%; height: 420px; object-fit: cover;
  display: block; transition: transform .4s;
}
.sn-hero-thumb-placeholder {
  width: 100%; height: 420px;
  display: flex; align-items: center; justify-content: center;
  font-size: 90px; transition: transform .4s;
}
.sn-hero-main:hover .sn-hero-thumb,
.sn-hero-main:hover .sn-hero-thumb-placeholder { transform: scale(1.02); }
.sn-hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.5) 55%, transparent 100%);
  padding: 32px 24px 22px;
}
.sn-hero-cat {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--sn-red);
  background: rgba(232,0,30,.15); border: 1px solid rgba(232,0,30,.4);
  padding: 3px 10px; border-radius: 2px;
  display: inline-block; margin-bottom: 10px;
}
.sn-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px; font-weight: 800; line-height: 1.15;
  margin-bottom: 8px; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.sn-hero-meta { font-size: 13px; color: rgba(255,255,255,.7); }
.sn-hero-meta strong { color: rgba(255,255,255,.9); }

/* ── Hero Side ── */
.sn-hero-side { display: flex; flex-direction: column; gap: 12px; }
.sn-hero-side-item {
  flex: 1; border-radius: 6px; overflow: hidden;
  position: relative; min-height: 118px;
  display: flex; align-items: flex-end;
  cursor: pointer; transition: transform .2s;
  text-decoration: none;
}
.sn-hero-side-item:hover { transform: translateX(3px); }
.sn-side-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.sn-side-thumb-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
}
.sn-side-overlay {
  position: relative; z-index: 1; width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,.92), transparent);
  padding: 16px 14px 12px;
}
.sn-side-cat { font-size: 10px; color: var(--sn-red); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.sn-side-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; line-height: 1.2; color: #fff;
}

/* ══════════════════════════════════════════════════════
   ARTICLE CARDS (GRID)
══════════════════════════════════════════════════════ */
.sn-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.sn-card {
  background: var(--sn-dark2); border-radius: 6px; overflow: hidden;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, border-color .2s;
  display: block; color: inherit;
}
.sn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  border-color: var(--sn-gray);
}
.sn-card-thumb {
  width: 100%; height: 160px; object-fit: cover; display: block;
}
.sn-card-thumb-placeholder {
  width: 100%; height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
}
.sn-card-body { padding: 14px; }
.sn-card-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--sn-red); margin-bottom: 6px;
  display: block;
}
.sn-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px; font-weight: 700; line-height: 1.2;
  margin-bottom: 8px; color: var(--sn-white);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sn-card-excerpt {
  font-size: 13px; color: var(--sn-light); line-height: 1.5; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sn-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--sn-muted);
}

/* ══════════════════════════════════════════════════════
   ARTICLE LIST
══════════════════════════════════════════════════════ */
.sn-articles-list { display: flex; flex-direction: column; gap: 12px; }
.sn-list-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--sn-dark2); border-radius: 6px; padding: 12px;
  border: 1px solid transparent;
  transition: background .2s, transform .2s, border-color .2s;
  color: inherit; text-decoration: none;
}
.sn-list-item:hover {
  background: var(--sn-dark3); transform: translateX(4px);
  border-color: var(--sn-gray);
}
.sn-list-thumb {
  width: 100px; min-width: 100px; height: 72px;
  object-fit: cover; border-radius: 4px; display: block;
}
.sn-list-thumb-placeholder {
  width: 100px; min-width: 100px; height: 72px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.sn-list-body { flex: 1; min-width: 0; }
.sn-list-cat {
  font-size: 10px; font-weight: 700; color: var(--sn-red);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px;
  display: block;
}
.sn-list-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px; font-weight: 700; line-height: 1.2;
  margin-bottom: 4px; color: var(--sn-white);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sn-list-meta { font-size: 11px; color: var(--sn-muted); }

/* ══════════════════════════════════════════════════════
   VIDEO GRID
══════════════════════════════════════════════════════ */
.sn-videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.sn-video-card {
  background: var(--sn-dark2); border-radius: 6px; overflow: hidden;
  cursor: pointer; transition: transform .2s; display: block; color: inherit;
}
.sn-video-card:hover { transform: scale(1.02); }
.sn-video-thumb {
  width: 100%; height: 120px; object-fit: cover;
  display: block; position: relative;
}
.sn-video-thumb-placeholder {
  width: 100%; height: 120px;
  display: flex; align-items: center; justify-content: center; font-size: 36px;
  position: relative;
}
.sn-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 40px; height: 40px; background: rgba(232,0,30,.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; padding-left: 3px; color: #fff;
  transition: background .2s, transform .2s;
}
.sn-video-card:hover .sn-play-btn { background: var(--sn-red); transform: translate(-50%,-50%) scale(1.1); }
.sn-video-info { padding: 10px; }
.sn-video-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700; line-height: 1.2;
  margin-bottom: 4px; color: var(--sn-white);
}
.sn-video-meta { font-size: 11px; color: var(--sn-muted); }

/* ══════════════════════════════════════════════════════
   SUBSCRIPTION PROMO BANNER
══════════════════════════════════════════════════════ */
.sn-promo-banner {
  background: linear-gradient(135deg, var(--sn-dark2) 0%, var(--sn-dark3) 100%);
  border: 1px solid var(--sn-gray); border-radius: 8px;
  padding: 32px; text-align: center;
  margin-bottom: 28px; position: relative; overflow: hidden;
}
.sn-promo-banner::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 150px; height: 150px; background: var(--sn-red);
  opacity: .07; border-radius: 50%;
}
.sn-promo-banner::after {
  content: ''; position: absolute; bottom: -30px; left: -30px;
  width: 100px; height: 100px; background: var(--sn-red);
  opacity: .04; border-radius: 50%;
}
.sn-promo-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px; font-weight: 800;
  margin-bottom: 8px; position: relative;
}
.sn-promo-title span { color: var(--sn-red); }
.sn-promo-desc {
  font-size: 15px; color: var(--sn-light);
  margin-bottom: 20px; max-width: 520px;
  margin-left: auto; margin-right: auto; position: relative;
}
.sn-promo-btn {
  display: inline-block; background: var(--sn-red); color: #fff;
  padding: 12px 32px; border-radius: 4px; font-size: 15px;
  font-weight: 700; letter-spacing: .5px; position: relative;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.sn-promo-btn:hover {
  background: var(--sn-red-dark); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232,0,30,.3);
}
.sn-promo-features {
  display: flex; gap: 20px; justify-content: center;
  margin-top: 16px; flex-wrap: wrap; position: relative;
}
.sn-promo-feat {
  font-size: 13px; color: var(--sn-light);
  display: flex; align-items: center; gap: 6px;
}
.sn-promo-feat::before { content: '✓'; color: var(--sn-green); font-weight: 700; }

/* ══════════════════════════════════════════════════════
   SIDEBAR WIDGETS
══════════════════════════════════════════════════════ */
.sn-sidebar { display: flex; flex-direction: column; gap: 20px; }

.sn-widget { background: var(--sn-dark2); border-radius: 6px; overflow: hidden; }
.sn-widget-title {
  background: var(--sn-red); padding: 10px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: #fff; margin: 0;
}
.sn-widget-body { padding: 16px; }

/* ── Live Scores ── */
.sn-live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--sn-red); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 10px; letter-spacing: 1px; margin-left: 8px;
}
.sn-live-dot {
  width: 6px; height: 6px; background: #fff;
  border-radius: 50%; animation: sn-pulse 1.2s infinite;
}
@keyframes sn-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.sn-score-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.sn-score-item:last-child { border-bottom: none; }
.sn-score-team { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; flex: 1; }
.sn-score-team.right { justify-content: flex-end; }
.sn-score-result {
  font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 700;
  padding: 4px 10px; background: var(--sn-dark3); border-radius: 4px;
  min-width: 68px; text-align: center; letter-spacing: 2px;
}
.sn-score-min { font-size: 10px; color: var(--sn-red); font-weight: 600; text-align: center; margin-top: 2px; }

/* ── Standings ── */
.sn-standings-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sn-standings-table th {
  text-align: left; padding: 5px 6px; color: var(--sn-muted);
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  border-bottom: 1px solid var(--sn-dark3);
}
.sn-standings-table td { padding: 7px 6px; border-bottom: 1px solid rgba(255,255,255,.04); }
.sn-standings-table tr:last-child td { border-bottom: none; }
.sn-standings-table tr:hover td { background: rgba(255,255,255,.02); }
.sn-pos { color: var(--sn-muted); font-weight: 600; width: 20px; }
.sn-pos.cl  { color: var(--sn-green); }
.sn-pos.rel { color: var(--sn-red); }
.sn-pts { font-weight: 700; }

/* ── Most Read ── */
.sn-most-read-item {
  display: flex; gap: 10px; align-items: flex-start;
  cursor: pointer; text-decoration: none; color: inherit;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.sn-most-read-item:last-child { border-bottom: none; }
.sn-most-read-item:hover .sn-most-read-title { color: var(--sn-red); }
.sn-most-read-num {
  font-family: 'Oswald', sans-serif; font-size: 26px; font-weight: 700;
  color: var(--sn-muted); min-width: 30px; line-height: 1;
}
.sn-most-read-num.first { color: var(--sn-red); }
.sn-most-read-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.sn-most-read-count { font-size: 11px; color: var(--sn-muted); margin-top: 3px; }

/* ══════════════════════════════════════════════════════
   SINGLE POST
══════════════════════════════════════════════════════ */
.sn-single-wrap {
  display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 28px 0;
}
.sn-single-header { margin-bottom: 20px; }
.sn-single-cat {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--sn-red); background: rgba(232,0,30,.12);
  border: 1px solid rgba(232,0,30,.35); padding: 3px 10px;
  border-radius: 2px; display: inline-block; margin-bottom: 14px;
}
.sn-single-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(26px, 4vw, 42px); font-weight: 800; line-height: 1.1;
  margin-bottom: 14px;
}
.sn-single-subtitle {
  font-size: 18px; color: var(--sn-light);
  line-height: 1.5; font-weight: 400; margin-bottom: 16px;
}
.sn-single-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px; font-size: 13px; color: var(--sn-muted);
  padding: 14px 0; border-top: 1px solid var(--sn-dark3);
  border-bottom: 1px solid var(--sn-dark3); margin-bottom: 24px;
}
.sn-single-meta strong { color: var(--sn-light); }
.sn-single-meta .share-group { margin-left: auto; display: flex; gap: 8px; }
.sn-share-btn {
  background: var(--sn-dark3); border: 1px solid var(--sn-gray);
  color: var(--sn-light); padding: 5px 12px; border-radius: 4px;
  font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.sn-share-btn:hover { border-color: var(--sn-red); color: var(--sn-white); }

.sn-single-cover { width: 100%; border-radius: 6px; margin-bottom: 24px; }

.sn-single-content {
  font-size: 16px; line-height: 1.8; color: var(--sn-light);
}
.sn-single-content p     { margin-bottom: 1.2rem; }
.sn-single-content h2,
.sn-single-content h3    { color: var(--sn-white); margin: 1.5rem 0 .8rem; }
.sn-single-content img   { border-radius: 6px; margin: 1rem 0; }
.sn-single-content a     { color: var(--sn-red); border-bottom: 1px solid rgba(232,0,30,.3); }
.sn-single-content a:hover { border-color: var(--sn-red); }
.sn-single-content blockquote {
  border-left: 3px solid var(--sn-red); padding: 12px 20px;
  background: var(--sn-dark2); border-radius: 0 4px 4px 0;
  margin: 1.5rem 0; font-style: italic; color: var(--sn-light);
}
.sn-single-content ul,
.sn-single-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.sn-single-content ul li { list-style: disc; }
.sn-single-content ol li { list-style: decimal; }
.sn-single-content li   { margin-bottom: .4rem; }

/* ── Tags ── */
.sn-post-tags { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--sn-dark3); }
.sn-post-tags span { font-size: 12px; color: var(--sn-muted); margin-right: 8px; }
.sn-post-tags a {
  display: inline-block; background: var(--sn-dark3);
  border: 1px solid var(--sn-gray); border-radius: 3px;
  padding: 3px 10px; font-size: 12px; color: var(--sn-light);
  margin: 3px; transition: all .2s;
}
.sn-post-tags a:hover { border-color: var(--sn-red); color: var(--sn-red); }

/* ── Related posts ── */
.sn-related { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--sn-dark3); }

/* ══════════════════════════════════════════════════════
   COMMENTS
══════════════════════════════════════════════════════ */
.sn-comments { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--sn-dark3); }
.sn-comments-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 800;
  text-transform: uppercase; margin-bottom: 20px;
}
.comment-list { list-style: none; }
.comment { background: var(--sn-dark2); border-radius: 6px; padding: 16px; margin-bottom: 12px; }
.comment-author { font-weight: 700; font-size: 14px; }
.comment-meta   { font-size: 12px; color: var(--sn-muted); margin-bottom: 8px; }
.comment-content p { font-size: 14px; }

.comment-form .comment-form-comment label,
.comment-form .comment-form-author label,
.comment-form .comment-form-email label {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  color: var(--sn-light); margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%; background: var(--sn-dark3); border: 1px solid var(--sn-gray);
  color: var(--sn-white); padding: 10px 14px; border-radius: 4px;
  font-size: 14px; transition: border-color .2s; margin-bottom: 14px;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--sn-red); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .form-submit .submit {
  background: var(--sn-red); color: #fff; padding: 10px 24px;
  border-radius: 4px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.comment-form .form-submit .submit:hover { background: var(--sn-red-dark); }

/* ══════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════ */
.sn-pagination {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 32px; flex-wrap: wrap;
}
.sn-pagination a,
.sn-pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 4px;
  font-size: 14px; font-weight: 600; transition: all .2s;
  background: var(--sn-dark2); border: 1px solid var(--sn-dark3);
}
.sn-pagination a:hover { background: var(--sn-dark3); border-color: var(--sn-gray); }
.sn-pagination .current { background: var(--sn-red); border-color: var(--sn-red); color: #fff; }
.nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.nav-links .page-numbers { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 4px; font-size: 14px; font-weight: 600; background: var(--sn-dark2); border: 1px solid var(--sn-dark3); transition: all .2s; }
.nav-links .page-numbers:hover { background: var(--sn-dark3); }
.nav-links .page-numbers.current { background: var(--sn-red); border-color: var(--sn-red); color: #fff; }

/* ══════════════════════════════════════════════════════
   ARCHIVE / CATEGORY
══════════════════════════════════════════════════════ */
.sn-archive-header {
  background: var(--sn-dark2); border-radius: 6px;
  padding: 20px 24px; margin-bottom: 24px;
  border-left: 4px solid var(--sn-red);
}
.sn-archive-header h1 { font-size: 26px; margin-bottom: 4px; }
.sn-archive-header p  { font-size: 14px; color: var(--sn-muted); margin: 0; }

/* ══════════════════════════════════════════════════════
   SEARCH RESULTS
══════════════════════════════════════════════════════ */
.sn-search-header { margin-bottom: 24px; }
.sn-search-header h1 { font-size: 22px; }
.sn-search-header h1 span { color: var(--sn-red); }
.sn-no-results {
  text-align: center; padding: 60px 20px; background: var(--sn-dark2); border-radius: 8px;
}
.sn-no-results h2 { font-size: 22px; margin-bottom: 8px; }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.sn-footer {
  background: var(--sn-dark2);
  border-top: 3px solid var(--sn-red);
  padding: 40px 0 0;
}
.sn-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 32px;
}
.sn-footer-brand {}
.sn-footer-logo { font-size: 22px; margin-bottom: 12px; display: inline-block; }
.sn-footer-desc { font-size: 13px; color: var(--sn-muted); line-height: 1.7; }
.sn-footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--sn-red); margin-bottom: 14px;
}
.sn-footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.sn-footer-col ul li a { font-size: 13px; color: var(--sn-muted); transition: color .2s; }
.sn-footer-col ul li a:hover { color: var(--sn-white); }

.sn-newsletter-form { margin-top: 14px; }
.sn-newsletter-form input {
  width: 100%; background: var(--sn-dark3); border: 1px solid var(--sn-gray);
  color: var(--sn-white); padding: 8px 12px; border-radius: 4px;
  font-size: 12px; margin-bottom: 8px;
}
.sn-newsletter-form input:focus { outline: none; border-color: var(--sn-red); }
.sn-newsletter-form button {
  width: 100%; background: var(--sn-red); color: #fff;
  padding: 8px; border-radius: 4px; font-size: 12px; font-weight: 700;
  transition: background .2s;
}
.sn-newsletter-form button:hover { background: var(--sn-red-dark); }

.sn-social-links { display: flex; gap: 8px; margin-top: 16px; }
.sn-social-btn {
  width: 34px; height: 34px; background: var(--sn-dark3); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  transition: background .2s; cursor: pointer; border: 1px solid var(--sn-gray);
  color: var(--sn-light); text-decoration: none;
}
.sn-social-btn:hover { background: var(--sn-red); border-color: var(--sn-red); color: #fff; }

.sn-footer-bottom {
  border-top: 1px solid var(--sn-dark3); padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--sn-muted); flex-wrap: wrap; gap: 10px;
}
.sn-footer-bottom a { color: var(--sn-muted); transition: color .2s; }
.sn-footer-bottom a:hover { color: var(--sn-white); }

/* ══════════════════════════════════════════════════════
   WP NATIVE: ALIGNMENTS, BLOCKS, CAPTIONS
══════════════════════════════════════════════════════ */
.alignleft  { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { margin: 0 auto 16px; text-align: center; }
.alignwide   { margin-left: calc(-1 * var(--wp--style--global--wide-size, 0)); }
.wp-block-image figcaption { font-size: 12px; color: var(--sn-muted); text-align: center; margin-top: 6px; }
.wp-caption      { max-width: 100%; background: var(--sn-dark3); border-radius: 4px; padding: 8px; }
.wp-caption-text { font-size: 12px; color: var(--sn-muted); text-align: center; margin: 6px 0 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(var(--gallery-columns, 3), 1fr); gap: 8px; margin: 1rem 0; }
.gallery-item img { border-radius: 4px; }

/* ══════════════════════════════════════════════════════
   CATEGORY NAV BAR (below header on category pages)
══════════════════════════════════════════════════════ */
.sn-cat-bar {
  background: var(--sn-dark3); border-bottom: 1px solid var(--sn-dark3);
  padding: 6px 0; overflow-x: auto; white-space: nowrap;
}
.sn-cat-bar-inner { display: flex; gap: 4px; }
.sn-cat-bar a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  color: var(--sn-light); padding: 6px 14px; border-radius: 3px;
  transition: all .2s; white-space: nowrap;
}
.sn-cat-bar a:hover,
.sn-cat-bar a.active { color: #fff; background: var(--sn-red); }

/* ══════════════════════════════════════════════════════
   BUTTONS (global)
══════════════════════════════════════════════════════ */
.sn-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 4px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s; border: 1px solid transparent;
}
.sn-btn-primary { background: var(--sn-red); color: #fff; }
.sn-btn-primary:hover { background: var(--sn-red-dark); }
.sn-btn-secondary {
  background: var(--sn-dark3); color: var(--sn-light);
  border-color: var(--sn-gray);
}
.sn-btn-secondary:hover { border-color: var(--sn-red); color: var(--sn-white); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .sn-hero-grid        { grid-template-columns: 1fr; }
  .sn-articles-grid    { grid-template-columns: repeat(2, 1fr); }
  .sn-videos-grid      { grid-template-columns: repeat(2, 1fr); }
  .sn-content-wrap     { grid-template-columns: 1fr; }
  .sn-single-wrap      { grid-template-columns: 1fr; }
  .sn-footer-grid      { grid-template-columns: 1fr 1fr; }
  .sn-nav              { display: none; }
  .sn-menu-toggle      { display: flex; }
}

@media (max-width: 680px) {
  .sn-articles-grid   { grid-template-columns: 1fr; }
  .sn-videos-grid     { grid-template-columns: 1fr; }
  .sn-footer-grid     { grid-template-columns: 1fr; }
  .sn-hero-main .sn-hero-thumb,
  .sn-hero-main .sn-hero-thumb-placeholder { height: 260px; }
  .sn-topbar-links    { display: none; }
  .sn-single-meta .share-group { margin-left: 0; }
}

/* ── Mobile nav (open state) ── */
.sn-nav.open {
  display: flex; flex-direction: column;
  position: fixed; top: 70px; left: 0; right: 0;
  background: var(--sn-dark2); border-bottom: 3px solid var(--sn-red);
  padding: 12px; z-index: 999; gap: 4px; max-height: calc(100vh - 70px); overflow-y: auto;
}
