/* ============================================
   Hesgoal Theme — Dark Sports Streaming
   ============================================ */

:root {
  --bg-primary: #0f1418;
  --bg-secondary: #1a2128;
  --bg-elevated: #242c33;
  --bg-card: #1d2429;
  --text-primary: #ffffff;
  --text-secondary: #d4d4d8;
  --text-muted: #8a8a92;
  --accent-red: #15803d;
  --accent-red-dark: #0e5e2c;
  --accent-teal: #fdf6e3;
  --accent-teal-dark: #e9d8a6;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --transition-base: 200ms ease-in-out;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.2), 0 4px 16px rgba(0,0,0,0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Roboto, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   HEADER
   ============================================ */

header {
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent-red);
}

header ul {
  display: flex;
  list-style: none;
  gap: 28px;
}

header ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-base);
}

header ul li a:hover {
  color: var(--accent-red);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MAIN
   ============================================ */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ============================================
   HERO (Homepage)
   ============================================ */

.hero {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 59, 71, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(47, 239, 201, 0.10) 0%, transparent 55%),
    linear-gradient(135deg, #1a1d2e 0%, #0e1018 100%);
  padding: clamp(56px, 9vw, 88px) 24px;
  text-align: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.latest h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

/* ============================================
   ARTICLE
   ============================================ */

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(255, 71, 87, 0.3);
}

.article-header h1 {
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.article-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   CONTENT
   ============================================ */

.content h2 {
  font-size: 28px;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.015em;
  position: relative;
  padding-left: 14px;
}

.content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 4px;
  background: var(--accent-red);
  border-radius: 2px;
}

.content h3 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 600;
}

.content > * + p,
.content h2 + p,
.content h3 + p {
  margin-top: 0;
}

.content h2:first-child,
.content h3:first-child,
.content > p:first-child {
  margin-top: 0;
}

.content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.content a {
  color: #4a9eff;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.content a:hover {
  color: var(--accent-red);
  text-decoration: none;
}

.content ul, .content ol {
  margin-left: 24px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.content strong {
  color: var(--text-primary);
}

.content blockquote {
  border-left: 4px solid var(--accent-red);
  background: rgba(45, 35, 123, 0.2);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}

.content blockquote p {
  margin: 0;
  color: var(--text-secondary);
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
}

.content th {
  background: var(--bg-card);
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid var(--accent-red);
  font-weight: 600;
}

.content td {
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.content tr:hover {
  background: rgba(45, 35, 123, 0.2);
}

/* ============================================
   SECTION LISTING
   ============================================ */

.section-listing {
  padding: 20px 0;
}

.section-listing h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 720px;
  line-height: 1.6;
}

.article-list {
  list-style: none;
}

.article-list li {
  padding: 22px 24px;
  margin-bottom: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.article-list li:hover {
  border-color: rgba(255, 59, 71, 0.55);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.article-list li p {
  line-height: 1.5;
}

.article-list li a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

.article-list li a:hover {
  color: var(--accent-red);
}

.article-list li p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}

/* ============================================
   DISCLAIMER
   ============================================ */

.legal-disclaimer {
  background: rgba(255, 59, 71, 0.06);
  border-top: 1px solid rgba(255, 59, 71, 0.32);
  border-bottom: 1px solid rgba(255, 59, 71, 0.32);
  padding: 24px;
  margin: 0;
  width: 100%;
}

.disclaimer-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.disclaimer-content::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #fff;
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.disclaimer-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  text-align: left;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: #0a0a0a;
  color: var(--text-secondary);
  padding: 40px 20px 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color var(--transition-base);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-col p {
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  header ul {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  header ul.open {
    display: flex;
  }

  header ul li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 16px;
  }

  .hero {
    padding: 40px 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  main {
    padding: 30px 16px;
  }

  .article-header h1 {
    font-size: 28px;
  }

  .content h2 {
    font-size: 22px;
    margin-top: 32px;
  }

  .content h3 {
    font-size: 18px;
  }

  .disclaimer-text {
    font-size: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================================
   Article hero: real <img> with overlay (universal PBN snippet)
   ============================================================ */
.article-hero,
.article-hero--with-image {
  position: relative;
  color: #fff;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  margin: 0 0 2rem;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: #0b1220;
}
.article-hero__figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: -2;
}
.article-hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-hero::after,
.article-hero--with-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.70) 100%);
  z-index: -1;
  pointer-events: none;
}
.article-hero-inner {
  position: relative;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
}
.article-hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.article-hero .article-subtitle {
  color: rgba(255,255,255,0.96);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 680px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.article-hero .article-meta {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.article-hero .article-meta time,
.article-hero .article-meta .author,
.article-hero .article-meta .article-section,
.article-hero .article-meta .article-date {
  color: inherit;
}

/* Inline article images */
article .content img,
article .article-content img,
.ff-article-body img,
.content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 2.25rem auto;
  box-shadow: 0 6px 26px rgba(0,0,0,0.14);
}
