/* Countdown Timer Stylesheet - Premium & Glassmorphic */
.tng-event-countdown-wrapper {
  margin: 1.5rem auto 2rem auto;
  width: 100%;
  max-width: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
}

.tng-event-countdown-wrapper * {
  box-sizing: border-box;
}

/* Glassmorphic Container */
.tng-countdown-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border-top: 4px solid #6366f1; /* Indigo Accent */
}

.tng-countdown-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08), 0 0 20px rgba(99, 102, 241, 0.04);
}

/* Header with Status */
.tng-countdown-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.tng-countdown-status {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569; /* Slate 600 */
}

/* Live Pulse Dot */
.tng-countdown-header .live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ef4444; /* Red for live */
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  animation: tng-pulse-red 1.2s infinite alternate ease-in-out;
}

@keyframes tng-pulse-red {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* Countdown Grid/Flex */
.tng-countdown-timer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Time Blocks */
.tng-countdown-timer .time-block {
  flex: 1;
  min-width: 80px;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: 14px;
  padding: 0.85rem 0.5rem;
  text-align: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.tng-countdown-timer .time-block:hover {
  background: rgba(99, 102, 241, 0.03);
  border-color: rgba(99, 102, 241, 0.15);
}

.tng-countdown-timer .time-block .num {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  line-height: 1;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #2563eb, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.06));
}

.tng-countdown-timer .time-block .lbl {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b; /* Slate 500 */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Separators (Colon) */
.tng-countdown-timer .separator {
  font-size: 2.25rem;
  font-weight: 800;
  color: rgba(99, 102, 241, 0.3);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* States styling overrides */
.tng-countdown-card.live-state {
  border-top-color: #ef4444; /* Flashing red top border */
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.03) 0%, rgba(255, 255, 255, 0.75) 100%);
  animation: live-border-glow 2s infinite alternate ease-in-out;
}

.tng-countdown-card.live-state .tng-countdown-status {
  color: #ef4444;
  font-weight: 800;
}

.tng-countdown-card.live-state .time-block {
  border-color: rgba(239, 68, 68, 0.12);
  background: rgba(239, 68, 68, 0.01);
}

.tng-countdown-card.live-state .time-block .num {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tng-countdown-card.live-state .time-block .lbl {
  color: #ef4444;
}

@keyframes live-border-glow {
  0% { border-top-color: #ef4444; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04); }
  100% { border-top-color: #f59e0b; box-shadow: 0 10px 30px rgba(239, 68, 68, 0.08); }
}

/* Concluded State styling */
.tng-countdown-card.concluded-state {
  border-top-color: #94a3b8; /* Slate gray */
  background: rgba(248, 250, 252, 0.8);
}

.tng-countdown-card.concluded-state .tng-countdown-status {
  color: #64748b;
}

.tng-countdown-card.concluded-state .concluded-message {
  font-size: 1.1rem;
  font-weight: 700;
  color: #475569;
  text-align: center;
  padding: 1rem 0;
  width: 100%;
}

/* Mobile Styling */
@media (max-width: 600px) {
  .tng-countdown-timer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .tng-countdown-timer .separator {
    display: none; /* Hide colons on mobile wrap */
  }
  .tng-countdown-timer .time-block {
    min-width: 0;
  }
  .tng-countdown-timer .time-block .num {
    font-size: 2rem;
  }
}
