/* Rare Chinese Character Reader — RT-TXT-053
   Widget styling. The form shell + ad/section styling come from the platform
   tool layout; this file scopes the rc-* result components. TEAL/cyan text-tool
   theme (accent #0D9488). Loaded automatically by show.blade.php when present. */

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

.rc-input-row { display: flex; flex-direction: column; gap: 6px; }
.rc-input-row label {
  font-family: var(--rt-font-mono); font-size: 11px; color: var(--rt-ink-muted);
  text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
}
.rc-input-row textarea {
  padding: 14px 16px; border: 1px solid var(--rt-hairline); border-radius: 8px;
  font-size: 22px; line-height: 1.5; background: #fff; min-height: 72px;
  font-family: inherit; resize: vertical; width: 100%;
}
.rc-input-row textarea:focus {
  outline: none; border-color: #0D9488; box-shadow: 0 0 0 3px rgba(13,148,136,.14);
}

.rc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-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; background: #0D9488; color: #fff; border: 1px solid #0F766E;
}
.rc-btn:hover { background: #0F766E; }
.rc-btn-sample, .rc-btn-clear {
  background: #fff; color: #0F766E; border: 1px solid rgba(13,148,136,.4);
}
.rc-btn-sample:hover, .rc-btn-clear:hover { background: #CCFBF1; }

.rc-note {
  padding: 10px 14px; background: #F0FDFA; border-left: 3px solid #0D9488;
  border-radius: 0 6px 6px 0; font-size: 12.5px; color: var(--rt-ink-muted);
  line-height: 1.55; margin-top: 4px;
}

.rc-empty {
  padding: 22px 18px; text-align: center; color: var(--rt-ink-muted);
  font-style: italic; background: var(--rt-surface-2); border-radius: 8px;
  border: 1px dashed var(--rt-hairline);
}

/* Result cards grid */
.rc-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px; margin-top: 4px;
}

.rc-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px;
  background: #fff; border: 1px solid rgba(13,148,136,.22); border-radius: 12px;
}

.rc-glyph {
  flex: 0 0 auto; font-size: 56px; line-height: 1; min-width: 64px;
  text-align: center; color: #0F766E; font-weight: 500;
  font-family: var(--rt-font-sans), system-ui, sans-serif;
  padding: 6px 8px; background: #CCFBF1; border-radius: 10px;
}

.rc-body { flex: 1 1 auto; min-width: 0; }

.rc-readings { display: flex; flex-direction: column; gap: 6px; }
.rc-reading {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 6px; border-bottom: 1px dashed rgba(13,148,136,.16);
}
.rc-reading:last-child { border-bottom: none; padding-bottom: 0; }
.rc-reading-lbl {
  font-family: var(--rt-font-mono); font-size: 10.5px; color: var(--rt-ink-muted);
  text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
  min-width: 76px; flex: 0 0 auto;
}
.rc-reading-val {
  font-family: 'SF Mono', Menlo, monospace; font-size: 15px; color: #0F2A28;
  word-break: break-word;
}
.rc-strokes { font-variant-numeric: tabular-nums; }

/* Definitions block */
.rc-defwrap { margin-top: 12px; }
.rc-forms { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rc-form {
  font-size: 13px; color: var(--rt-ink-muted);
  font-family: var(--rt-font-sans), system-ui, sans-serif;
}
.rc-form em {
  font-style: normal; font-family: var(--rt-font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .04em; color: #0D9488; margin-right: 3px;
}

.rc-defs { display: flex; flex-direction: column; gap: 8px; }
.rc-def-block {
  padding: 8px 12px; background: #F0FDFA; border-radius: 8px;
  border: 1px solid rgba(13,148,136,.14);
}
.rc-def-py {
  display: inline-block; font-family: 'SF Mono', Menlo, monospace; font-size: 13px;
  font-weight: 700; color: #0D9488; margin-bottom: 4px;
}
.rc-def-list { margin: 0; padding-left: 18px; }
.rc-def-list li { font-size: 13.5px; line-height: 1.5; color: var(--rt-ink); margin: 2px 0; }

.rc-nodict {
  padding: 8px 12px; background: var(--rt-surface-2); border-radius: 8px;
  font-size: 12.5px; color: var(--rt-ink-muted); font-style: italic;
}

@media (max-width: 560px) {
  .rc-cards { grid-template-columns: 1fr; }
  .rc-glyph { font-size: 44px; min-width: 52px; }
  .rc-input-row textarea { font-size: 18px; }
}
