/* style.css - Pratham's Urban Dictionary */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.15rem;
}

.brand svg {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.4rem;
  background: #3b82f6;
  color: #fff;
  border-radius: 999px;
}

nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

nav a {
  color: #475569;
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover {
  color: #1d4ed8;
}

main {
  max-width: 760px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}

.search {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.search input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
}

.search input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.search button {
  padding: 0.75rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #3b82f6;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.search button:hover {
  background: #2563eb;
}

.search button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.result {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
}

.result h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  color: #1d4ed8;
}

.result .pos {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.result p {
  margin: 0.6rem 0 0;
  line-height: 1.6;
}

.result .example {
  font-style: italic;
  color: #475569;
}

.status {
  color: #64748b;
  font-size: 0.95rem;
}

.status.error {
  color: #dc2626;
}