/* customFeatures.css — UP NEXT MATCH — Sports Broadcast Theme */

/* ── Feature Card Base ───────────────────────────────────────────── */
.feature-card {
  background: linear-gradient(160deg, #1a2332 0%, #0d1520 100%);
  border: 1px solid rgba(255, 215, 64, 0.15);
  border-radius: 8px;
  padding: 0;
  margin: 16px auto;
  max-width: 1200px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,215,64,0.05);
  color: #e0e0e0;
  overflow: hidden;
  position: relative;
}
/* First feature card clears the fixed header */
.countdown-timer {
  margin-top: 90px;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4caf50, #ffd740, #ff9800);
}

/* ── Countdown Timer — Scoreboard Style ──────────────────────────── */
.countdown-inner {
  padding: 28px 30px 24px;
  text-align: center;
}
.countdown-inner h3 {
  display: none; /* hide the generic "Next Match" title */
}
.countdown-match {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}
.countdown-comp {
  font-size: 0.8rem;
  color: #4caf50;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}
.countdown-digits {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  color: #78909c;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cd-unit strong {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 2rem;
  font-weight: 900;
  color: #ffd740;
  background: rgba(255,215,64,0.08);
  border: 1px solid rgba(255,215,64,0.2);
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  font-family: 'Inter', 'Consolas', monospace;
  text-shadow: 0 0 12px rgba(255,215,64,0.3);
}

/* ── Match Prediction — Split Card Style ─────────────────────────── */
.prediction-inner {
  padding: 28px 30px;
  position: relative;
}
.prediction-inner h3 {
  margin: 0 0 6px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: #4caf50;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
}
.pred-comp {
  text-align: center;
  font-size: 0.75rem;
  color: #78909c;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.pred-matchup {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 4px 0 20px;
}
.pred-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.pred-scores {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(0,0,0,0.25);
  padding: 20px 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}
.pred-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pred-team label {
  font-size: 0.7rem;
  color: #90a4ae;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.pred-team input[type='number'] {
  width: 64px;
  height: 54px;
  padding: 8px;
  border-radius: 6px;
  border: 2px solid rgba(255,215,64,0.2);
  background: rgba(255,215,64,0.05);
  color: #ffd740;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Inter', monospace;
  transition: all 0.3s;
}
.pred-team input[type='number']:focus {
  border-color: #ffd740;
  background: rgba(255,215,64,0.1);
  outline: none;
  box-shadow: 0 0 12px rgba(255,215,64,0.2);
}
.pred-vs {
  font-size: 1.6rem;
  font-weight: 800;
  color: #37474f;
  margin-top: 18px;
}
.pred-submit {
  padding: 11px 32px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pred-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(76,175,80,0.4);
}
.pred-submit:disabled {
  background: linear-gradient(135deg, #388e3c, #1b5e20);
  cursor: default;
  transform: none;
}
.pred-stats {
  font-size: 0.8rem;
  color: #607d8b;
  text-align: center;
  margin: 8px 0 0;
}

/* ── Live Ticker ─────────────────────────────────────────────────── */
.live-ticker {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .feature-card {
    margin: 10px 10px;
    border-radius: 6px;
  }
  .countdown-inner, .prediction-inner {
    padding: 20px 16px;
  }
  .countdown-match { font-size: 1.1rem; }
  .cd-unit strong {
    width: 44px; height: 44px;
    font-size: 1.5rem;
  }
  .pred-scores {
    padding: 14px 16px;
    gap: 12px;
  }
}
