

.threads-checker {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.tc-header {
  margin-bottom: 2rem;
}

.tc-header h1 {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.tc-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.tc-input-section {
  margin-bottom: 1.5rem;
}

.tc-label {
  display: block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  margin-bottom: 0.5rem;
}

.tc-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.tc-textarea:focus {
  outline: none;
  border-color: #1e6b5a;
  box-shadow: 0 0 0 3px rgba(30, 107, 90, 0.1);
}

.tc-input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.tc-char-count {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  color: #94a3b8;
}

.tc-btn {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.tc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tc-btn--check {
  background: #0f766e;
  color: #fff;
}

.tc-btn--check:hover:not(:disabled) {
  background: #0d9488;
}

.tc-btn--publish {
  background: #0f766e;
  color: #fff;
}

.tc-btn--publish:hover:not(:disabled) {
  background: #0d9488;
}

.tc-btn--success {
  background: #16a34a !important;
}

.tc-btn--copy {
  background: #f1f5f9;
  color: #475569;
}

.tc-btn--copy:hover {
  background: #e2e8f0;
}

.tc-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  color: #64748b;
  font-size: 0.9rem;
}

.tc-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid #e2e8f0;
  border-top-color: #1e6b5a;
  border-radius: 50%;
  animation: tc-spin 0.8s linear infinite;
}

@keyframes tc-spin {
  to { transform: rotate(360deg); }
}

.tc-error {
  padding: 0.85rem 1.25rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #991b1b;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.tc-results {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.tc-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.tc-results-title {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
}

.tc-verdict-badge {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tc-verdict--safe {
  background: #dcfce7;
  color: #166534;
}

.tc-verdict--caution {
  background: #fef3c7;
  color: #92400e;
}

.tc-verdict--danger {
  background: #fef2f2;
  color: #991b1b;
}

.tc-verdict--unknown {
  background: #f1f5f9;
  color: #475569;
}

.tc-categories {
  padding: 0.5rem;
}

.tc-cat-item {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
}

.tc-cat-item:last-child {
  margin-bottom: 0;
}

.tc-cat--safe {
  background: #f0fdf4;
}

.tc-cat--caution {
  background: #fffbeb;
}

.tc-cat--violation {
  background: #fef2f2;
}

.tc-cat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.tc-cat-status {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.tc-cat--safe .tc-cat-status {
  background: #16a34a;
  color: #fff;
}

.tc-cat--caution .tc-cat-status {
  background: #f59e0b;
  color: #fff;
}

.tc-cat--violation .tc-cat-status {
  background: #e11d48;
  color: #fff;
}

.tc-cat-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
}

.tc-cat-note {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  padding-left: 2.85rem;
}

.tc-rewrites-section {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.tc-rewrites-title {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  margin-bottom: 0.5rem;
}

.tc-rewrite-item {
  padding: 0.65rem 0.85rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.tc-rewrite-item:last-child {
  margin-bottom: 0;
}

.tc-publish-section {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  align-items: center;
}

.tc-post-link {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.8rem;
  color: #0f766e;
  text-decoration: none;
  margin-left: 0.5rem;
}

.tc-post-link:hover {
  text-decoration: underline;
}

.tc-raw-result {
  padding: 1rem;
}

.tc-raw-result pre {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.tc-info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.tc-info h2 {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1.25rem;
}

.tc-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.tc-info-card {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fafafa;
}

.tc-info-step {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f766e;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0fdfa;
  border-radius: 6px;
}

.tc-info-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tc-info-text strong {
  font-size: 0.85rem;
  color: #1e293b;
}

.tc-info-text span {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}

.tc-categories-legend h3 {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.tc-legend-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tc-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #475569;
}

.tc-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tc-legend-dot--safe { background: #16a34a; }
.tc-legend-dot--caution { background: #f59e0b; }
.tc-legend-dot--violation { background: #e11d48; }

@media (max-width: 640px) {
  .threads-checker {
    padding: 1rem;
  }

  .tc-header h1 {
    font-size: 1.2rem;
  }

  .tc-info-grid {
    grid-template-columns: 1fr;
  }
}
