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

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #141927;
  --bg-card: #1a2540;
  --text-primary: #ffffff;
  --text-secondary: #ccd6f6;
  --text-muted: #8899aa;
  --accent-blue: #00b4d8;
  --accent-blue-dark: #0077b6;
  --accent-cyan: #90e0ef;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --transition-base: 250ms ease-in-out;
}

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

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

/* ============================================
   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;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.logo-icon {
  color: var(--accent-blue);
  font-size: 0.9em;
}

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

header ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: color var(--transition-base), background var(--transition-base);
}

header ul li a:hover {
  color: var(--accent-blue);
  background: rgba(0, 180, 216, 0.08);
}

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

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

/* ============================================
   HERO
   ============================================ */

.hero {
  background: linear-gradient(135deg, #0a0e17 0%, #141927 50%, #0d1b2a 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sports {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.sport-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-base);
}

.sport-badge:hover {
  background: rgba(0, 180, 216, 0.1);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

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

.latest,
.section-listing {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.latest h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-listing-header {
  max-width: 860px;
  margin-bottom: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-listing-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   PROSE (section pages & articles)
   ============================================ */

.prose {
  max-width: 860px;
  margin-top: 28px;
  margin-bottom: 48px;
}

.prose p,
.content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1rem;
}

.prose h2,
.content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 180, 216, 0.2);
  letter-spacing: -0.02em;
}

.prose h2:first-child,
.content h2:first-child {
  margin-top: 24px;
}

.prose h3,
.content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin: 28px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-blue);
  letter-spacing: 0;
}

.prose ul,
.prose ol,
.content ul,
.content ol {
  margin: 0 0 24px 0;
  padding-left: 0;
  list-style: none;
}

.prose ul li,
.content ul li {
  color: var(--text-secondary);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.7;
  border-bottom: 1px solid var(--border-subtle);
}

.prose ul li:last-child,
.content ul li:last-child {
  border-bottom: none;
}

.prose ul li::before,
.content ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 1.1em;
  line-height: 1.7;
}

.prose ol,
.content ol {
  counter-reset: step-counter;
}

.prose ol li,
.content ol li {
  color: var(--text-secondary);
  padding: 10px 0 10px 40px;
  position: relative;
  line-height: 1.7;
  border-bottom: 1px solid var(--border-subtle);
  counter-increment: step-counter;
}

.prose ol li:last-child,
.content ol li:last-child {
  border-bottom: none;
}

.prose ol li::before,
.content ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 10px;
  width: 26px;
  height: 26px;
  background: rgba(0, 180, 216, 0.12);
  border: 1px solid rgba(0, 180, 216, 0.25);
  border-radius: 50%;
  color: var(--accent-blue);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.prose strong,
.content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose a,
.content a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-decoration-color: rgba(0, 180, 216, 0.35);
  text-underline-offset: 3px;
  transition: color var(--transition-base);
}

.prose a:hover,
.content a:hover {
  color: var(--accent-cyan);
}

/* Tables */
.prose table,
.content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 8px 0 32px;
  font-size: 0.9rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 180, 216, 0.15);
}

.prose table thead,
.content table thead {
  background: var(--bg-secondary);
}

.prose table th,
.content table th {
  color: var(--accent-blue);
  font-weight: 600;
  text-align: left;
  padding: 12px 18px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(0, 180, 216, 0.2);
}

.prose table td,
.content table td {
  padding: 11px 18px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  line-height: 1.5;
}

.prose table td strong,
.content table td strong {
  color: var(--text-primary);
}

.prose table tr:last-child td,
.content table tr:last-child td {
  border-bottom: none;
}

.prose table tbody tr:hover td,
.content table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.prose table td:first-child,
.content table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* FAQ blocks — paragraph starting with a bold question (both standalone and inline answer) */
.prose p:has(> strong:first-child),
.content p:has(> strong:first-child) {
  padding: 13px 16px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 8px 8px 0;
  margin-bottom: 4px;
  line-height: 1.7;
}

.prose p:has(> strong:first-child) strong:first-child,
.content p:has(> strong:first-child) strong:first-child {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

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

.article-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.article-list li {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px 24px;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.article-list li:hover {
  border-color: rgba(0, 180, 216, 0.3);
  transform: translateX(4px);
}

.article-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

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

.article-list p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* ============================================
   HOME CONTENT (below latest articles)
   ============================================ */

.home-content {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

/* .home-content inherits prose styles via shared selectors above */
.home-content { max-width: 860px; }

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

article {
  max-width: 860px;
  margin: 60px auto;
  padding: 0 20px;
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* .content styles now consolidated in .prose block above */

.content img,
.section-listing img,
.home-content img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 32px;
  display: block;
  border: 1px solid var(--border-subtle);
}

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

.legal-disclaimer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 20px;
}

.disclaimer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.disclaimer-text {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.5;
}

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

footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 20px 24px;
}

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

footer h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

footer ul li a:hover { color: var(--accent-blue); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

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

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

  header ul.open { display: flex; }

  .hero { padding: 60px 20px; }

  .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); }
}
