/* Έλεγχος ταχύτητας — χρησιμοποιεί τη βάση από /review/review.css */

.st-hero {
  padding-bottom: 56px;
}

.st-tool {
  padding: 56px 0 120px;
  border-top: 1px solid var(--line);
}

.st-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.st-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
}

.st-url input {
  width: 100%;
  min-height: 53px;
  padding: 0 20px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.st-url input::placeholder {
  color: #5f667a;
}

.st-strategy {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(3, 3, 9, 0.72);
}

.st-strategy label {
  cursor: pointer;
}

.st-strategy input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.st-strategy span {
  display: block;
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.st-strategy input:checked + span {
  background: var(--accent-soft);
  color: var(--accent);
}

.st-strategy input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.st-submit:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.st-error {
  margin: 16px 0 0;
  padding: 13px 18px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 14px;
  background: rgba(255, 107, 107, 0.08);
  color: #ffb4b4;
  font-size: 14px;
}

.st-loading {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 70px 0 30px;
  text-align: center;
}

.st-loading[hidden],
.st-results[hidden],
.st-error[hidden] {
  display: none;
}

.st-loading p {
  margin: 14px 0 0;
  font-weight: 600;
}

.st-loading small {
  color: var(--muted);
}

.st-spinner {
  width: 54px;
  height: 54px;
  border: 3px solid rgba(79, 224, 228, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: st-spin 0.9s linear infinite;
}

@keyframes st-spin {
  to {
    transform: rotate(360deg);
  }
}

.st-results {
  display: grid;
  gap: 22px;
  margin-top: 44px;
}

.st-tested {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.st-tested strong {
  color: var(--text);
}

.st-scores {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.st-score {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  text-align: center;
}

.st-ring {
  --value: 0;
  --color: var(--accent);
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(var(--color) calc(var(--value) * 1%), rgba(255, 255, 255, 0.07) 0);
}

.st-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--bg);
}

.st-ring span {
  position: relative;
  color: var(--color);
  font-family: "Outfit", sans-serif;
  font-size: 30px;
  font-weight: 700;
}

.st-score p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
}

.st-good {
  --color: #3ddc97;
}

.st-mid {
  --color: #ffb547;
}

.st-bad {
  --color: #ff6b6b;
}

.st-panel {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.st-panel h2,
.st-cta h2 {
  margin: 0 0 20px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.st-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
}

.st-metrics div {
  padding: 16px;
  border-radius: 16px;
  background: rgba(3, 3, 9, 0.6);
}

.st-metrics dt {
  color: var(--muted);
  font-size: 12px;
}

.st-metrics dd {
  margin: 6px 0 0;
  color: var(--color, var(--text));
  font-family: "Outfit", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.st-opps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-opps li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(3, 3, 9, 0.6);
  font-size: 14px;
}

.st-opps li span:last-child {
  flex: 0 0 auto;
  color: #ffb547;
  font-weight: 700;
}

.st-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(79, 224, 228, 0.25);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 224, 228, 0.1), transparent 23rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
}

.st-cta > div > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.st-lead {
  display: grid;
  gap: 16px;
}

.st-lead .submit-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.st-lead-msg {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.st-lead-msg.is-ok {
  color: #3ddc97;
}

.st-lead-msg.is-err {
  color: #ffb4b4;
}

.st-note {
  margin: 40px 0 0;
  color: #737a8f;
  font-size: 12px;
  line-height: 1.6;
}

.st-note a {
  margin-left: 6px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .st-form {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .st-url input {
    padding: 0 10px;
  }

  .st-strategy {
    justify-content: stretch;
  }

  .st-strategy label {
    flex: 1;
    text-align: center;
  }

  .st-scores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-ring {
    width: 80px;
    height: 80px;
  }

  .st-ring span {
    font-size: 25px;
  }

  .st-cta {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .st-opps li {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-spinner {
    animation-duration: 3s;
  }
}
