/* ===== YAKLAŞAN MAÇ COUNTDOWN ===== */

/* ---- Section shell ---- */
.countdown-section {
  padding: 48px 0;
  background: #080e1c;
}

/* ---- Heading ---- */
.countdown-header {
  margin-bottom: 28px;
}

.countdown-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0;
  padding-left: 16px;
  border-left: 4px solid #c1121f;
  line-height: 1.2;
}

/* ---- Cards row ---- */
.countdown-cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* ---- Single card ---- */
.cd-card {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 3px solid #c1121f;
  border-radius: 20px;
  padding: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cd-card:hover {
  border-color: rgba(193, 18, 31, 0.3);
  border-top-color: #c1121f;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(193, 18, 31, 0.1);
}

/* ---- League label ---- */
.cd-card__league {
  font-size: 0.7rem;
  font-weight: 700;
  color: #c1121f;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---- Teams row ---- */
.cd-card__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 0;
  text-align: center;
}

.cd-team {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  flex: 1;
  line-height: 1.3;
}

.cd-team--home {
  text-align: right;
}

.cd-team--away {
  text-align: left;
}

.cd-team--us {
  font-size: 1.2rem;
  color: #ffffff;
}

.cd-vs {
  font-size: 0.8rem;
  font-weight: 900;
  color: #c1121f;
  opacity: 0.7;
  padding: 0 12px;
  flex-shrink: 0;
}

/* ---- Meta row (date / time / location) ---- */
.cd-card__meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.75rem;
  color: #64748b;
  margin: 14px 0 0;
  line-height: 1.4;
}

.cd-date,
.cd-time,
.cd-location {
  white-space: nowrap;
}

/* ---- Countdown timer ---- */
.cd-timer {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---- Single unit (number + label) ---- */
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}

.cd-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
}

.cd-label {
  font-size: 0.55rem;
  color: #64748b;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---- Separator colon ---- */
.cd-sep {
  font-size: 1.4rem;
  font-weight: 800;
  color: #c1121f;
  opacity: 0.5;
  align-self: center;
  padding-bottom: 14px;
  line-height: 1;
  user-select: none;
}

/* ---- Live badge (when match has started) ---- */
.cd-live {
  text-align: center;
  color: #ef4444;
  font-weight: 700;
  font-size: 1rem;
  width: 100%;
  animation: cd-pulse 1.4s ease-in-out infinite;
}

@keyframes cd-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ---- Mobile: horizontal scroll ---- */
@media (max-width: 640px) {
  .countdown-cards {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(193, 18, 31, 0.3) transparent;
  }

  .countdown-cards::-webkit-scrollbar {
    height: 4px;
  }

  .countdown-cards::-webkit-scrollbar-track {
    background: transparent;
  }

  .countdown-cards::-webkit-scrollbar-thumb {
    background: rgba(193, 18, 31, 0.3);
    border-radius: 2px;
  }

  .cd-card {
    flex-shrink: 0;
  }
}
