/* ===========================
   Countdown (compact, non-fullscreen)
   =========================== */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Wrapper */
.countdown-body {
  font-family: Arial, sans-serif;
  display: block;
  height: auto;
  background: transparent;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

/* Countdown card */
.countdown {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;

  background: transparent;
  padding: 24px 20px;
  border-radius: 12px;
  box-shadow: none;

  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

/* Title */
.countdown h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
}

/* Row of time blocks */
.time {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 15px;
  flex-wrap: nowrap;
}

/* Each block — BLACK CARD */
.time div {
  background: #000; /* changed to black */
  padding: 20px 25px;
  border-radius: 10px;
  font-size: 2rem;
  text-align: center;
  min-width: 70px;

  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Numbers */
.time div span:first-child {
  color: #fff;
  font-weight: 800;
  font-size: 2.1rem;
  display: block;
}

/* Labels */
.label {
  font-size: 0.9rem;
  color: #ccc; /* better contrast on black */
  margin-top: 10px;
  display: block;
}

/* Finished mode — all red */
.countdown.finished .time div {
  background: #FF0000 !important;
}

/* Urgent mode (< 24 hours) */
.countdown.urgent .time div {
  background: #FF3B30 !important;
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

/* Compact */
.countdown.countdown--compact {
  padding: 18px 16px;
}

.countdown.countdown--compact .time {
  gap: 10px;
}

.countdown.countdown--compact .time div {
  padding: 14px 16px;
  min-width: 62px;
}

.countdown.countdown--compact .time div span:first-child {
  font-size: 1.7rem;
}

.countdown.countdown--compact .label {
  font-size: 0.8rem;
  margin-top: 6px;
}

/* Mobile */
@media (max-width: 600px) {
  .countdown {
    padding: 20px 16px;
    border-radius: 10px;
  }

  .countdown h1 {
    font-size: 1.35rem;
  }

  .time {
    gap: 8px;
    flex-wrap: wrap;
  }

  .time div {
    font-size: 1.2rem;
    padding: 12px 14px;
    min-width: 60px;
  }

  .time div span:first-child {
    font-size: 1.6rem;
  }

  .label {
    font-size: 0.75rem;
    margin-top: 6px;
  }
}
