:root {
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top, #0b1227 0%, #0f172a 70%);
  color: #e5e7eb;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.app {
  width: min(920px, 92vw);
  border: 1px solid #334155;
  border-radius: 14px;
  background: #111827;
  padding: 22px;
}

h1 {
  margin: 0;
  font-size: 1.7rem;
}

p {
  color: #9ca3af;
}

.controls {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: #cbd5e1;
}

input {
  width: 100%;
  border: 1px solid #334155;
  background: #0b1220;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}

.row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  border: 1px solid #334155;
  background: #1f2937;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

button:hover {
  border-color: #38bdf8;
}

.status {
  margin-top: 14px;
}

.results-wrap {
  margin-top: 12px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #0b1220;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #334155;
}

.results-head h2 {
  margin: 0;
  font-size: 1rem;
}

#resultCount {
  color: #9ca3af;
  font-size: 0.88rem;
}

.results {
  max-height: 380px;
  overflow: auto;
}

.result-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #1e293b;
}

.result-row:last-child {
  border-bottom: none;
}

.word {
  font-weight: 600;
  color: #e2e8f0;
}

.meta {
  color: #94a3b8;
  font-size: 0.88rem;
}

.seo-content {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #0b1220;
}

.seo-content h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #cbd5e1;
}

.seo-content p {
  margin: 6px 0;
  color: #9ca3af;
  line-height: 1.5;
}

a {
  color: #93c5fd;
}
