/* FrogWords - tool-specific styles. Shared shell (tool-shell.css) provides
   tokens, topnav, hero, privacy bar, panels, buttons, and ad-slot rules;
   this file carries the textarea, stats grid, and controls row. */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Input area ──────────────────────────────────────────────────────── */

.fw-textarea {
  width: 100%;
  min-height: 220px;
  padding: 1rem 1.1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.65;
  resize: vertical;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.fw-textarea::placeholder { color: var(--muted); opacity: 0.75; }
.fw-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ─── Stats grid ──────────────────────────────────────────────────────── */

.fw-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
@media (max-width: 640px) {
  .fw-stats { grid-template-columns: repeat(2, 1fr); }
}

.fw-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.9rem 0.5rem 0.85rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  text-align: center;
}

.fw-stat__num {
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.fw-stat__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 0.3rem;
  line-height: 1.3;
}

/* ─── Controls row ────────────────────────────────────────────────────── */

.fw-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

@media (max-width: 560px) {
  .fw-stat__num { font-size: 1.35rem; }
}
