:root {
  --bg-core: #090b17;
  --bg-shade: #111630;
  --surface: rgba(11, 18, 38, 0.76);
  --surface-strong: rgba(8, 14, 33, 0.92);
  --text: #dff8ff;
  --muted: #90a7d3;
  --neon-cyan: #2df6ff;
  --neon-pink: #ff2dbd;
  --neon-violet: #8a4dff;
  --neon-lime: #b7ff32;
  --border: rgba(95, 149, 255, 0.52);
  --error: #ff637e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(45, 246, 255, 0.15),
      transparent 32%
    ),
    radial-gradient(
      circle at 88% 14%,
      rgba(255, 45, 189, 0.14),
      transparent 28%
    ),
    radial-gradient(
      circle at 78% 82%,
      rgba(138, 77, 255, 0.2),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      #05070f 0%,
      var(--bg-core) 35%,
      var(--bg-shade) 100%
    );
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.55;
}

.app {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 28px 16px 44px;
  position: relative;
  z-index: 1;
}

.header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow:
    0 0 0 1px rgba(45, 246, 255, 0.2),
    0 0 24px rgba(45, 246, 255, 0.18),
    0 0 54px rgba(255, 45, 189, 0.14);
}

.header h1 {
  margin: 0;
  font-family: "Orbitron", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(1.55rem, 4.8vw, 2.35rem);
  letter-spacing: 0.02em;
  text-shadow:
    0 0 10px rgba(45, 246, 255, 0.85),
    0 0 18px rgba(45, 246, 255, 0.35);
}

.subtitle {
  margin-top: 9px;
  color: var(--muted);
  max-width: 38ch;
}

.controls {
  margin: 18px 0;
  display: grid;
  gap: 12px;
}

button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(
    120deg,
    rgba(21, 42, 81, 0.92),
    rgba(28, 18, 61, 0.95)
  );
  color: var(--text);
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 246, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(45, 246, 255, 0.28),
    0 0 16px rgba(45, 246, 255, 0.28),
    0 0 22px rgba(255, 45, 189, 0.2);
}

button:focus-visible,
.place-search input:focus-visible {
  outline: 3px solid rgba(45, 246, 255, 0.8);
  outline-offset: 2px;
}

.place-search {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 9px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 45, 189, 0.15),
    0 0 18px rgba(138, 77, 255, 0.18);
}

.place-search label {
  font-size: 0.88rem;
  color: #a4bcf0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.place-search input {
  width: 100%;
  border: 1px solid rgba(112, 149, 238, 0.5);
  border-radius: 10px;
  padding: 11px;
  font: inherit;
  background: rgba(6, 14, 35, 0.86);
  color: var(--text);
}

.place-search input::placeholder {
  color: #6e86b4;
}

.place-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#useHomeButton,
#useCityCenterButton {
  background: linear-gradient(
    120deg,
    rgba(116, 59, 245, 0.9),
    rgba(255, 45, 189, 0.88)
  );
  border-color: rgba(249, 134, 255, 0.45);
}

#useHomeButton:hover,
#useCityCenterButton:hover {
  border-color: rgba(45, 246, 255, 0.8);
}

.status-wrap {
  margin: 12px 0 16px;
}

.status {
  margin: 0;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(89, 127, 219, 0.45);
  background: rgba(6, 13, 33, 0.84);
}

.status.error {
  color: var(--error);
  border-color: rgba(255, 99, 126, 0.65);
  box-shadow: 0 0 16px rgba(255, 99, 126, 0.2);
}

.station-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.station-item {
  background: rgba(8, 14, 34, 0.92);
  border: 1px solid rgba(93, 128, 214, 0.48);
  border-radius: 14px;
  padding: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(45, 246, 255, 0.1),
    0 0 18px rgba(18, 45, 100, 0.45);
  animation: rise-in 280ms ease both;
}

.station-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.station-name {
  font-weight: 700;
}

.station-bikes {
  font-weight: 800;
  color: var(--neon-lime);
  text-shadow: 0 0 12px rgba(183, 255, 50, 0.46);
  white-space: nowrap;
}

.station-distance {
  margin-top: 4px;
  color: #91ace0;
  font-size: 0.95rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .app {
    padding: 22px 12px 34px;
  }

  .place-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #searchPlaceButton {
    grid-column: span 2;
  }
}
