/* ==========================================================================
   CrackStreams Official Stylesheet
   Theme: Premium Dark Red & Charcoal Sport Hub
   Performance: Lightweight CSS3, Zero Layout Shifts, High Contrast
   ========================================================================== */

:root {
  --bg-primary: #090b0e;
  --bg-surface: #11141a;
  --bg-card: #161b22;
  --bg-card-hover: #1c222b;
  --bg-input: #1a1f28;
  --border-color: #262c37;
  --border-accent: rgba(255, 42, 66, 0.35);

  --accent-red: #ff2a42;
  --accent-red-hover: #ff475d;
  --accent-red-dark: #b5081e;
  --accent-gold: #f59e0b;
  --accent-green: #00d084;
  --accent-blue: #3b82f6;

  --text-primary: #f0f3f8;
  --text-secondary: #9aa5b5;
  --text-muted: #6b7787;
  --text-light: #ffffff;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --header-height: 72px;
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 30px rgba(255, 42, 66, 0.15);
  --transition: all 0.2s ease-in-out;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 11, 14, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 44px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-light);
}

.nav-link:hover::after, .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-red);
  border-radius: var(--radius-full);
}

.nav-btn-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 42, 66, 0.12);
  border: 1px solid var(--accent-red);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.nav-btn-live:hover {
  background: var(--accent-red);
  color: #fff;
  transform: translateY(-1px);
}

.live-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
  animation: pulse 1.8s infinite ease-in-out;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: 8px;
}

.mobile-drawer {
  display: none;
}

@media (min-width: 769px) {
  .mobile-drawer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 60px 0 45px;
  background: radial-gradient(circle at 50% 10%, rgba(255, 42, 66, 0.08) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 42, 66, 0.12);
  border: 1px solid var(--border-accent);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff8594;
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.18;
  color: var(--text-light);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 42, 66, 0.35);
}

.btn-primary:hover {
  background: var(--accent-red-hover);
  box-shadow: 0 6px 20px rgba(255, 42, 66, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.stat-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--accent-red);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Live Sports Hub & Filters
   ========================================================================== */

.section {
  padding: 70px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  margin-bottom: 36px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-red);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 780px;
  line-height: 1.65;
}

.filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 30px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 6px;
  min-width: 75px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover {
  color: var(--text-light);
  border-color: var(--accent-red);
}

.filter-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
  font-weight: 700;
}

.filter-btn .count-badge {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.76rem;
}

.search-box-wrap {
  position: relative;
  flex-grow: 1;
  min-width: 240px;
}

.search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px 10px 40px;
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--accent-red);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ==========================================================================
   Sports Event Cards Grid
   ========================================================================== */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 22px;
}

.event-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.event-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: var(--transition);
}

.event-card[data-status="LIVE"]::before {
  background: var(--accent-red);
}

.event-card[data-status="UPCOMING"]::before {
  background: var(--accent-gold);
}

.event-card[data-status="FINISHED"]::before {
  background: var(--text-muted);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 0.82rem;
}

.card-league {
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.5px;
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.status-badge.live {
  background: rgba(255, 42, 66, 0.15);
  color: #ff334b;
  border: 1px solid var(--accent-red);
}

.status-badge.upcoming {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-badge.finished {
  background: rgba(107, 119, 135, 0.15);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.card-matchup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--bg-card);
  padding: 3px;
}

.team-logo-fallback {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-red);
}

.team-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.team-score {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-light);
  font-family: var(--font-mono);
}

.card-bottom {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.card-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.card-broadcast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Editorial Content Sections (Topical SEO & Guides)
   ========================================================================== */

.article-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.article-header {
  margin-bottom: 28px;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-light);
  margin-top: 36px;
  margin-bottom: 16px;
  position: relative;
  padding-left: 14px;
}

.article-body h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  background: var(--accent-red);
  border-radius: var(--radius-full);
}

.article-body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 24px;
  margin-bottom: 12px;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body strong {
  color: #ffffff;
}

.info-callout {
  background: rgba(255, 42, 66, 0.06);
  border-left: 4px solid var(--accent-red);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 30px 0;
}

.info-callout p {
  margin-bottom: 0 !important;
  color: #e2e8f0;
  font-size: 0.98rem;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: var(--transition);
}

.feature-box:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-box h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   Alternatives Comparison Section
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 30px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}

.comparison-table th {
  background: var(--bg-card);
  color: var(--text-light);
  font-weight: 700;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table .highlight-row td {
  background: rgba(255, 42, 66, 0.08);
  font-weight: 600;
  color: var(--text-light);
}

.alternatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.alt-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.alt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.alt-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-light);
  margin-top: 0;
  padding-left: 0;
}

.alt-card h3::before {
  display: none;
}

.alt-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.alt-tag.licensed {
  background: rgba(0, 208, 132, 0.15);
  border-color: rgba(0, 208, 132, 0.35);
  color: var(--accent-green);
}

.alt-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.alt-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.alt-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.alt-meta-label {
  color: var(--text-muted);
}

.alt-meta-val {
  color: var(--text-light);
  font-weight: 600;
}

/* ==========================================================================
   FAQ Section Accordions
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--border-accent);
}

.faq-question {
  width: 100%;
  background: transparent;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: var(--text-light);
  font-size: 1.08rem;
  font-weight: 700;
}

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

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.25s ease;
  color: var(--accent-red);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 22px;
}

/* ==========================================================================
   Footer & Legal Disclaimer
   ========================================================================== */

.site-footer {
  background: #060709;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 14px;
  line-height: 1.6;
  max-width: 380px;
}

.footer-col h5 {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--accent-red);
}

.footer-disclaimer {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 30px;
}

.footer-disclaimer strong {
  color: var(--text-secondary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 42, 66, 0.7); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(255, 42, 66, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 42, 66, 0); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title { font-size: 2.35rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .nav-desktop { display: none; }
  .mobile-menu-toggle { display: block; }

  .mobile-drawer {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #090b0e;
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    z-index: 999;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .mobile-drawer.open {
    display: flex;
  }

  .mobile-drawer .nav-link {
    font-size: 1.05rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .hero-title { font-size: 1.95rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 1.65rem; }
  .events-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.65rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .filter-row { gap: 8px; }
  .filter-btn { font-size: 0.8rem; padding: 6px 12px; }
  .search-box-wrap { width: 100%; }
}

