/* ===== HOME PAGE — Tip Offs v2 ===== */

/* ── Hero ────────────────────────────────────────────────────── */
.home-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  padding: 72px 20px 80px;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 50%, rgba(229,0,34,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.home-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 48px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(229,0,34,0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(229,0,34,0.35);
}

/* Sub-eyebrow heading above the main hero headline */
.hero-current-comp {
  font-size: clamp(1.15rem, 2.6vw, 1.65rem);
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero-headline span { color: var(--accent); }

/* Recent sports events list — one event per line */
.hero-headline--events {
  font-size: clamp(1.35rem, 3.4vw, 2.3rem);
  line-height: 1.4;
}
.hero-event-link {
  display: block;
  color: var(--accent);
  text-decoration: none;
}
.hero-event-link:hover { color: #fff; text-decoration: underline; }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}
.hero-stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.hero-stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 4px;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* ── Sports Carousel ─────────────────────────────────────────── */
.sports-carousel-section {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.sports-carousel-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sports-carousel-inner::-webkit-scrollbar { display: none; }

.sports-carousel {
  display: flex;
  gap: 4px;
  padding: 8px 0;
  white-space: nowrap;
}
.sports-carousel-loading { font-size: 13px; color: var(--text3); padding: 8px 0; }

.sport-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  background: var(--bg);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.sport-pill:hover, .sport-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.sport-pill-icon { font-size: 16px; }

/* ── Home Body ───────────────────────────────────────────────── */
.home-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.home-section { margin-bottom: 52px; }

/* ── How It Works ────────────────────────────────────────────── */
.how-it-works {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  margin-bottom: 52px;
  box-shadow: var(--shadow);
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.step-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(229,0,34,0.30);
}

.step-icon {
  font-size: 40px;
  margin-bottom: 14px;
  margin-top: 8px;
}

.step-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* Connector lines between steps (desktop only) */
@media (min-width: 641px) {
  .steps-grid {
    position: relative;
  }
  .step-card:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--accent);
    font-weight: 900;
  }
}

/* ── Home Lower (content + sidebar) ─────────────────────────── */
.home-lower {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.home-lower-main { min-width: 0; }

/* Content tabs */
.home-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}
.home-tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.home-tab:hover  { color: var(--primary); }
.home-tab.active { color: var(--primary); border-bottom-color: var(--accent); font-weight: 700; }

/* Tips CTA Banner */
.tips-cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Home Sidebar */
.home-sidebar {
  position: sticky;
  top: 76px;
}

/* ── Featured article ────────────────────────────────────────── */
.featured-article {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  cursor: pointer;
  transition: box-shadow 0.2s;
  text-decoration: none;
  display: block;
}
.featured-article:hover { box-shadow: var(--shadow-md); }
.featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.featured-body { padding: 20px; }
.featured-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.featured-headline {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 8px;
}
.featured-excerpt { font-size: 14px; color: var(--text2); line-height: 1.6; }
.featured-meta { font-size: 12px; color: var(--text3); margin-top: 12px; }

/* Content card */
.content-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
  text-decoration: none;
}
.content-card:hover { background: #fafbfc; }
.content-card:last-child { border-bottom: none; }
.content-card-thumb {
  width: 70px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}
.content-card-body { flex: 1; min-width: 0; }
.content-card-tag  { font-size: 10px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.5px; }
.content-card-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; margin: 3px 0; }
.content-card-meta  { font-size: 11px; color: var(--text3); }

/* Section news cards background */
#contentFeed { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .home-lower { grid-template-columns: 1fr; }
  .home-sidebar { position: static; display: none; }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .step-card::after { display: none !important; }
  .how-it-works { padding: 32px 20px; }
}

@media (max-width: 640px) {
  .home-hero { padding: 48px 16px 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stat { padding: 0 16px; }
  .hero-stat-num { font-size: 1.8rem; }
  .home-body { padding: 24px 16px 40px; }
  .how-it-works { margin: 0 -16px 40px; border-radius: 0; }
  .tips-cta-banner { flex-direction: column; align-items: flex-start; }
}
