/* Chinese Typo Checker — RT-TXT-054
   错别字检测 / 易错字对照 widget styling. TEAL text-tool theme (accent #0D9488).
   Scopes the tc-* components: text input, flagged-issue cards, the reference
   list table, empty state, and responsive layout. Loaded automatically by
   show.blade.php when present. The form shell + ad/section styling come from
   the platform tool layout. */

.tc-form { display: flex; flex-direction: column; gap: 14px; }

.tc-method-note {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: #CCFBF1; border: 1px solid rgba(13,148,136,.22);
  border-left: 3px solid #0D9488; border-radius: 0 6px 6px 0;
  font-size: 12.5px; color: #0f766e; line-height: 1.5; font-weight: 600;
  align-self: flex-start;
}

.tc-input-wrap { display: flex; flex-direction: column; gap: 6px; }
.tc-input-label {
  font-family: var(--rt-font-mono); font-size: 11px; color: var(--rt-ink-muted);
  text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
}
.tc-input {
  width: 100%; min-height: 130px; resize: vertical;
  padding: 12px 14px; border: 1px solid var(--rt-hairline); border-radius: 8px;
  font-size: 15.5px; line-height: 1.7; background: #fff; color: var(--rt-ink);
  font-family: var(--rt-font-sans);
}
.tc-input:focus {
  outline: none; border-color: #0D9488; box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}
.tc-charcount {
  font-family: var(--rt-font-mono); font-size: 11px; color: var(--rt-ink-muted);
  text-align: right; font-variant-numeric: tabular-nums;
}

.tc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-btn {
  padding: 10px 18px; font-size: 13px; border-radius: 6px; cursor: pointer;
  font-family: var(--rt-font-mono); text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
}
.tc-btn-go { background: #0D9488; color: #fff; border: 1px solid #0f766e; }
.tc-btn-go:hover { background: #0f766e; }
.tc-btn-reset { background: #fff; color: #0f766e; border: 1px solid rgba(13,148,136,.4); }
.tc-btn-reset:hover { background: #f0fdfa; }
.tc-btn-browse { background: #fff; color: #0f766e; border: 1px solid rgba(13,148,136,.4); margin-left: auto; }
.tc-btn-browse:hover { background: #f0fdfa; }
@media (max-width: 560px) { .tc-btn-browse { margin-left: 0; } }

/* Results */
.tc-results { padding: 0; background: transparent; }
.tc-empty { padding: 16px; text-align: center; color: var(--rt-ink-muted); font-style: italic; }

.tc-summary {
  padding: 12px 16px; border-radius: 8px; font-size: 15px; font-weight: 700;
  margin-bottom: 12px;
}
.tc-summary-clean { background: #ecfdf5; color: #047857; border: 1px solid rgba(5,150,105,.25); }
.tc-summary-found { background: #fef2f2; color: #b91c1c; border: 1px solid rgba(185,28,28,.22); }

/* Highlighted text preview */
.tc-preview {
  padding: 14px 16px; background: var(--rt-surface-2); border: 1px solid var(--rt-hairline);
  border-radius: 8px; font-size: 15.5px; line-height: 1.9; color: var(--rt-ink);
  white-space: pre-wrap; word-break: break-word; margin-bottom: 12px;
}
.tc-mark {
  background: #fde68a; color: #92400e; border-radius: 3px; padding: 0 2px;
  text-decoration: underline wavy #d97706; cursor: help; font-weight: 600;
}

.tc-found-lead { font-size: 13.5px; color: var(--rt-ink-muted); margin: 6px 0 10px; line-height: 1.6; }

/* Flagged-issue cards */
.tc-issues { display: flex; flex-direction: column; gap: 10px; }
.tc-issue {
  padding: 14px 16px; background: #fff; border: 1px solid var(--rt-hairline);
  border-left: 4px solid #0D9488; border-radius: 8px;
}
.tc-issue-pair { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 20px; }
.tc-issue-wrong, .tc-issue-correct { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.tc-issue-wrong { color: #b91c1c; text-decoration: line-through; text-decoration-color: rgba(185,28,28,.55); }
.tc-issue-correct { color: #047857; }
.tc-issue-arrow { color: var(--rt-ink-muted); font-size: 18px; font-weight: 700; }
.tc-tag {
  font-family: var(--rt-font-mono); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: .04em; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  text-decoration: none; line-height: 1.4;
}
.tc-tag-wrong { background: #fee2e2; color: #b91c1c; }
.tc-tag-correct { background: #d1fae5; color: #047857; }
.tc-issue-note {
  margin-top: 8px; font-size: 13.5px; color: var(--rt-ink-muted); line-height: 1.6;
  padding-top: 8px; border-top: 1px dashed rgba(0,0,0,.07);
}

/* Reference list table */
.tc-browse {
  margin-top: 14px; border: 1px solid var(--rt-hairline); border-radius: 10px;
  overflow: hidden; background: #fff;
}
.tc-table-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: #CCFBF1; border-bottom: 1px solid rgba(13,148,136,.22);
}
.tc-table-title {
  font-family: var(--rt-font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; font-weight: 700; color: #0f766e;
}
.tc-table-count { font-family: var(--rt-font-mono); font-size: 11.5px; color: #0f766e; font-variant-numeric: tabular-nums; }
.tc-table-wrap { max-height: 460px; overflow-y: auto; }
.tc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tc-table thead th {
  position: sticky; top: 0; background: var(--rt-surface-2);
  font-family: var(--rt-font-mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .04em; font-weight: 700; color: var(--rt-ink-muted);
  text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--rt-hairline);
}
.tc-table tbody td { padding: 9px 14px; border-bottom: 1px solid rgba(0,0,0,.05); vertical-align: top; line-height: 1.6; }
.tc-table tbody tr:last-child td { border-bottom: none; }
.tc-table tbody tr:nth-child(even) { background: #fafafa; }
.tc-td-wrong { color: #b91c1c; font-weight: 600; white-space: nowrap; }
.tc-td-correct { color: #047857; font-weight: 700; white-space: nowrap; }
.tc-td-note { color: var(--rt-ink-muted); font-size: 13px; }

@media (max-width: 560px) {
  .tc-table { font-size: 13px; }
  .tc-table thead th, .tc-table tbody td { padding: 8px 10px; }
  .tc-issue-pair { font-size: 18px; }
}
