@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: #c8cce0;
  background:
    radial-gradient(
      ellipse at 20% 0%,
      hsla(270, 80%, 40%, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 100%,
      hsla(190, 80%, 40%, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      hsla(340, 60%, 40%, 0.05) 0%,
      transparent 60%
    ),
    hsl(230, 25%, 10%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, #a855f7, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  letter-spacing: -0.5px;
}

h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #e0e4f0;
  margin: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  margin-bottom: 16px;
}

.live-badge span.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  animation: pulse-dot 2s ease-in-out infinite;
}

.live-badge span.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #22d3ee;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 4px rgba(34, 211, 238, 0.5);
  }
  50% {
    opacity: 0.4;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
  }
}

select {
  display: block;
  width: 100%;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  border: 1px solid hsl(230, 15%, 22%);
  border-radius: 12px;
  padding: 14px 16px;
  background: hsl(230, 15%, 20%);
  color: #c8cce0;
  outline: none;
  cursor: pointer;
  transition: all 0.3s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237c7c9a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

select:focus {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.container {
  max-width: 560px;
  width: 100%;
  background: linear-gradient(
    135deg,
    hsla(230, 20%, 18%, 0.8),
    hsla(230, 20%, 12%, 0.9)
  );
  backdrop-filter: blur(20px);
  padding: 36px 36px;
  box-shadow:
    0 25px 80px -20px rgba(120, 60, 200, 0.25),
    0 0 40px -10px rgba(34, 211, 238, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.12);
}

.header {
  text-align: center;
  margin-bottom: 28px;
}

.city {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  margin: 10px 0;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    hsla(230, 20%, 20%, 0.6),
    hsla(230, 20%, 16%, 0.8)
  );
  border: 1px solid rgba(168, 85, 247, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.city:nth-child(1) {
  animation-delay: 0.08s;
}
.city:nth-child(2) {
  animation-delay: 0.16s;
}
.city:nth-child(3) {
  animation-delay: 0.24s;
}

.city:hover {
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow:
    0 8px 32px -8px rgba(120, 60, 200, 0.25),
    inset 0 1px 0 rgba(200, 180, 255, 0.05);
  transform: translateY(-2px);
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.city-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.city-emoji {
  font-size: 18px;
}

.date {
  font-size: 12px;
  color: hsl(220, 10%, 55%);
  letter-spacing: 0.3px;
}

.time {
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #e0e4f0;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.time small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #a855f7;
  font-family: "Inter", sans-serif;
  text-shadow: none;
}

a.all-cities {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #22d3ee;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

a.all-cities:hover {
  color: #a855f7;
}

footer {
  text-align: center;
  font-size: 12px;
  color: hsl(220, 10%, 45%);
  margin-top: 32px;
  letter-spacing: 0.3px;
}

footer a {
  color: #22d3ee;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

footer a:hover {
  color: #a855f7;
}
