/* diccionario.css — Verb Dictionary styles for Exprésate */

/* ── Input ─────────────────────────────────────────────────── */
/* Shared .input class may come from layout.css; this is a fallback */
#verbInput {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(15, 23, 42, .14);
  background: #fff;
  color: #0f172a;
  font-family: var(--font-body, 'Nunito', system-ui, sans-serif);
  font-size: 1rem;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  box-sizing: border-box;
  margin-top: 8px;
}
#verbInput:focus {
  border-color: var(--accent, #38bdf8);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .15);
}

/* ── Starter chips ─────────────────────────────────────────── */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(56, 189, 248, .35);
  background: rgba(56, 189, 248, .07);
  color: var(--accent, #38bdf8);
  font-family: var(--font-body, 'Nunito', system-ui, sans-serif);
  font-size: 0.87rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
  line-height: 1;
}
.chip:hover {
  background: rgba(56, 189, 248, .15);
  border-color: var(--accent, #38bdf8);
  transform: translateY(-1px);
}
.chip:active { transform: translateY(0); }

/* ── Search status line ────────────────────────────────────── */
.search-status {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: rgba(15, 23, 42, .5);
  min-height: 1.3em;
  line-height: 1.4;
}
.search-status:empty { margin: 0; min-height: 0; }

/* ── Suggestions / ambiguous box ──────────────────────────── */
.suggestions-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 1);
  border: 1.5px solid rgba(15, 23, 42, .09);
}
.suggestions-label {
  font-size: 0.85rem;
  color: rgba(15, 23, 42, .5);
  margin: 0 0 10px;
  line-height: 1.4;
}
.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.suggestion-chip {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1.5px solid rgba(15, 23, 42, .14);
  background: #fff;
  font-family: var(--font-body, 'Nunito', system-ui, sans-serif);
  font-size: 0.87rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  line-height: 1.2;
}
.suggestion-chip:hover {
  background: rgba(56, 189, 248, .08);
  border-color: var(--accent, #38bdf8);
  color: var(--accent, #38bdf8);
}

/* ── Verb card ─────────────────────────────────────────────── */
.verb-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.verb-card-title {
  margin: 0;
  font-size: 1.65rem;
  font-family: var(--font-title, 'Baloo 2', system-ui, sans-serif);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
}
.verb-card-title .verb-base {
  color: var(--accent, #38bdf8);
}
.verb-card-subtitle {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, .5);
  margin: 3px 0 16px;
  font-weight: 500;
}
.verb-audio-btn {
  padding: 6px 10px;
  font-size: 1rem;
  line-height: 1;
  border-radius: 10px;
  flex-shrink: 0;
}

/* ── Forms grid ────────────────────────────────────────────── */
.verb-forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}
.verb-form-item {
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 1);
  border: 1.5px solid rgba(15, 23, 42, .08);
}
.verb-form-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(15, 23, 42, .38);
  display: block;
  margin-bottom: 4px;
}
.verb-form-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  font-family: var(--font-title, 'Baloo 2', system-ui, sans-serif);
  line-height: 1.2;
}

/* ── Examples ──────────────────────────────────────────────── */
.verb-examples {
  margin: 0 0 20px;
}
.verb-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(15, 23, 42, .38);
  margin: 0 0 10px;
  display: block;
}
.verb-example {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 1);
  border-left: 3px solid var(--accent, #38bdf8);
  margin-bottom: 8px;
}
.verb-example:last-child { margin-bottom: 0; }
.verb-example-en {
  font-size: 0.97rem;
  font-weight: 600;
  color: #0f172a;
}
.verb-example-es {
  font-size: 0.87rem;
  color: rgba(15, 23, 42, .52);
  font-style: italic;
}

/* ── Quick template ────────────────────────────────────────── */
.verb-template {
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56,189,248,.06) 0%, rgba(99,102,241,.05) 100%);
  border: 1.5px solid rgba(56, 189, 248, .2);
}
.verb-template-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}
.verb-template-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.91rem;
  line-height: 1.4;
}
.verb-template-note {
  min-width: 90px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(15, 23, 42, .42);
  flex-shrink: 0;
}
.verb-template-arrow {
  color: var(--accent, #38bdf8);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.verb-template-en {
  font-weight: 500;
  color: #0f172a;
}
.verb-template-en strong {
  color: var(--accent, #38bdf8);
  font-weight: 700;
}

/* ── Right panel form guide ────────────────────────────────── */
.form-guide {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-guide-item { line-height: 1.4; }
.form-guide-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(15, 23, 42, .38);
  display: block;
  margin-bottom: 2px;
}
.form-guide-example {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  display: block;
}
.form-guide-note {
  font-size: 0.81rem;
  color: rgba(15, 23, 42, .48);
  margin-top: 1px;
  display: block;
}

/* ── Verb count badge ──────────────────────────────────────── */
.verb-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .1);
  border: 1.5px solid rgba(56, 189, 248, .25);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent, #38bdf8);
  margin-left: 8px;
  vertical-align: middle;
  font-family: var(--font-body, 'Nunito', system-ui, sans-serif);
}

/* ── How-to strip (horizontal 3-step) ─────────────────────── */
.how-to-strip {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 14px;
  padding-bottom: 14px;
}
.how-to-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.how-to-num {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent, #38bdf8);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-body, 'Nunito', system-ui, sans-serif);
}
.how-to-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(15, 23, 42, .72);
  line-height: 1.3;
}
.how-to-divider {
  width: 28px;
  height: 2px;
  background: rgba(15, 23, 42, .1);
  flex-shrink: 0;
  margin: 0 4px;
  border-radius: 2px;
}

@media (max-width: 560px) {
  .how-to-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .how-to-divider {
    width: 2px;
    height: 16px;
    margin: 0 0 0 13px;
  }
}

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .verb-forms-grid {
    grid-template-columns: 1fr 1fr;
  }
  .verb-template-note {
    min-width: 70px;
    font-size: 0.75rem;
  }
  .verb-template-row { font-size: 0.88rem; gap: 7px; }
  .chip-row { gap: 6px; }
  .chip { font-size: 0.82rem; padding: 5px 11px; }
  .verb-card-title { font-size: 1.45rem; }
}

/* ============================================================
   RESPONSIVE / ZOOM HARDENING
   Dictionary results should reflow rather than compress when
   browser zoom lowers the effective viewport.
   ============================================================ */
.verb-forms-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
}

.verb-card-title {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.verb-template-row,
.verb-card-header {
  min-width: 0;
}

.verb-template-en,
.verb-example-en,
.verb-example-es {
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .verb-template-row {
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
  }

  .verb-template-note {
    min-width: 0;
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .verb-forms-grid {
    grid-template-columns: 1fr;
  }

  .chip-row,
  .suggestion-chips {
    align-items: stretch;
  }

  .chip,
  .suggestion-chip {
    flex: 1 1 auto;
    justify-content: center;
    white-space: normal;
  }
}
