/* indobid.lol - Minimal, Clean, Modern SaaS Discovery Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-subtle: #ede9fe;
  --border-card: #f1f5f9;
  
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: #f3e8ff;
  --secondary: #f3e8ff;
  --btn-color: #7c3aed;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  --gold-bg: #fffdf5;
  --gold-border: #fde68a;
  --gold-text: #b45309;
  
  --silver-bg: #f8fafc;
  --silver-border: #cbd5e1;
  --silver-text: #475569;
  
  --bronze-bg: #fffaf5;
  --bronze-border: #fed7aa;
  --bronze-text: #c2410c;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 14px -2px rgba(124, 58, 237, 0.05), 0 2px 5px -1px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 22px -3px rgba(124, 58, 237, 0.09), 0 3px 8px -2px rgba(0, 0, 0, 0.04);
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background accent glow */
.bg-ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px;
  height: 350px;
  background: radial-gradient(circle at 50% 10%, rgba(124, 58, 237, 0.05) 0%, rgba(243, 232, 255, 0.03) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.font-mono-numbers {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

/* Gradient Text */
.gradient-text-purple {
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cards - Compact, smooth rounded with subtle shadows */
.saas-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.875rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.saas-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #ddd6fe;
}

/* Metallic Winner Cards (Top 3 Focus) */
.card-winner-gold {
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-bg) 100%);
  border: 1px solid var(--gold-border);
  box-shadow: 0 4px 16px -2px rgba(245, 158, 11, 0.12);
}
.card-winner-gold:hover {
  border-color: #f59e0b;
  transform: translateY(-2px);
}

.card-winner-silver {
  background: linear-gradient(135deg, #ffffff 0%, var(--silver-bg) 100%);
  border: 1px solid var(--silver-border);
  box-shadow: 0 4px 16px -2px rgba(100, 116, 139, 0.1);
}
.card-winner-silver:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.card-winner-bronze {
  background: linear-gradient(135deg, #ffffff 0%, var(--bronze-bg) 100%);
  border: 1px solid var(--bronze-border);
  box-shadow: 0 4px 16px -2px rgba(234, 88, 12, 0.1);
}
.card-winner-bronze:hover {
  border-color: #f97316;
  transform: translateY(-2px);
}

/* Badges */
.badge-gold {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-silver {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.badge-bronze {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

/* Buttons - Purple gradient, clean modern touch */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6d28d9 100%);
  color: #ffffff;
  font-weight: 700;
  transition: all 0.15s ease;
  box-shadow: 0 3px 10px 0 rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  box-shadow: 0 5px 16px 0 rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: #334155;
  border: 1px solid #e2e8f0;
  font-weight: 600;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #c4b5fd;
  color: var(--primary);
}

/* Pulsing live dot */
@keyframes live-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.live-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 9999px;
  animation: live-pulse 2s infinite;
}

/* Live Pulsing Dot - Purple for Round Status */
@keyframes live-pulse-purple {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(124, 58, 237, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

.live-dot-purple {
  width: 7px;
  height: 7px;
  background-color: var(--primary);
  border-radius: 9999px;
  animation: live-pulse-purple 2s infinite;
}

/* ==============================================================
   TIMER CARD & AMBIENT MICRO-ANIMATIONS
   ============================================================== */
.timer-card-wrapper {
  position: relative;
  width: 100%;
}

/* Ambient soft purple glow behind the timer card */
.timer-card-ambient-glow {
  position: absolute;
  inset: -14px;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.12) 0%, rgba(192, 132, 252, 0.05) 55%, transparent 75%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

/* 2-3 Decorative subtle floating sparkles */
.decorative-sparkle {
  position: absolute;
  color: #c084fc;
  font-size: 0.85rem;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  animation: sparkle-float 4s ease-in-out infinite alternate;
}

.sparkle-top-right {
  top: -8px;
  right: 12px;
  animation-delay: 0s;
}

.sparkle-bottom-left {
  bottom: -6px;
  left: 10px;
  animation-delay: 2s;
}

@keyframes sparkle-float {
  0% { transform: translateY(0) scale(0.9); opacity: 0.35; }
  100% { transform: translateY(-5px) scale(1.15); opacity: 0.8; }
}

/* Main Timer Card */
.timer-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  box-shadow: 0 4px 18px -2px rgba(124, 58, 237, 0.07), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

.timer-card:hover {
  border-color: #ddd6fe;
  box-shadow: 0 8px 24px -2px rgba(124, 58, 237, 0.12);
}

/* LAST 10 MINUTES STATE (Remaining <= 600s) */
.timer-card.timer-card-near {
  border-color: #c084fc;
  box-shadow: 0 0 24px -2px rgba(124, 58, 237, 0.22), 0 4px 12px -1px rgba(0, 0, 0, 0.04);
}

.timer-card.timer-card-near .timer-card-ambient-glow {
  opacity: 1;
  filter: blur(24px);
}

/* LAST 60 SECONDS FINAL COUNTDOWN STATE (Remaining <= 60s) */
.timer-card.timer-card-final {
  border-color: #a855f7;
  box-shadow: 0 0 32px 0 rgba(168, 85, 247, 0.3), 0 4px 14px -1px rgba(0, 0, 0, 0.05);
  animation: timer-gentle-pulse 1s infinite ease-in-out;
}

@keyframes timer-gentle-pulse {
  0% {
    box-shadow: 0 0 20px 0 rgba(168, 85, 247, 0.25);
  }
  50% {
    box-shadow: 0 0 34px 4px rgba(168, 85, 247, 0.42);
  }
  100% {
    box-shadow: 0 0 20px 0 rgba(168, 85, 247, 0.25);
  }
}

/* ==============================================================
   TIMER DIGITS & SMOOTH TRANSITION
   ============================================================== */
.timer-digits-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  user-select: none;
}

@media (min-width: 640px) {
  .timer-digits-wrapper {
    gap: 0.75rem;
  }
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.75rem;
}

@media (min-width: 640px) {
  .timer-unit {
    min-width: 5.25rem;
  }
}

.timer-digit-box {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #0f172a;
}

/* Smooth Second/Minute Digit Tick (fade + subtle 3px vertical motion) */
.timer-digit-box.digit-tick {
  animation: digit-slide-fade 0.28s cubic-bezier(0.2, 0.8, 0.4, 1);
}

@keyframes digit-slide-fade {
  0% {
    opacity: 0.35;
    transform: translateY(4px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.timer-colon {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding-bottom: 1.1rem;
  color: #c084fc;
  animation: colon-breathe 1s infinite ease-in-out;
}

@keyframes colon-breathe {
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.97); }
}

.timer-card-final .timer-colon {
  color: #9333ea;
  animation: colon-pulse-fast 0.5s infinite steps(2, start);
}

@keyframes colon-pulse-fast {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.timer-sublabel {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

/* ==============================================================
   PROGRESS BAR
   ============================================================== */
.progress-bar-fill {
  background: linear-gradient(90deg, #7c3aed 0%, #9333ea 50%, #c084fc 100%);
  transition: width 1s linear;
  position: relative;
  overflow: visible;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progress-shimmer 3s infinite linear;
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-thumb-glow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 0 8px 2px rgba(192, 132, 252, 0.9);
}

.progress-bar-fill.glow-progress {
  box-shadow: 0 0 10px 0 rgba(168, 85, 247, 0.55);
}

/* Compact Listing Card */
.listing-card {
  background: #ffffff;
  border: 1px solid #ede9fe;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: all 0.15s ease;
}

.listing-card:hover {
  border-color: #c4b5fd;
  box-shadow: 0 3px 10px -1px rgba(124, 58, 237, 0.08);
}

/* Avatar circle */
.avatar-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ede9fe 0%, #f3e8ff 100%);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 1px solid #ddd6fe;
}

/* Compact Hero Title */
.hero-title {
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 800;
}

/* Modal styling */
.modal-overlay {
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

/* ==============================================================
   ACCESSIBILITY: PREFERS-REDUCED-MOTION
   ============================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .timer-digit-box.digit-tick {
    animation: none !important;
  }
  .progress-bar-fill::after {
    display: none !important;
  }
  .timer-card.timer-card-final {
    animation: none !important;
  }
  .decorative-sparkle {
    display: none !important;
  }
  .timer-card-ambient-glow {
    animation: none !important;
  }
}
