/* Profanity & Content Filter Checker Styles */
.pcfc-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.pcfc-card {
  background: var(--tf-surface, #ffffff);
  border: 1px solid var(--tf-border, #e2e8f0);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pcfc-header {
  margin-bottom: 1.25rem;
}

.pcfc-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--tf-text, #0f172a);
}

.pcfc-subtitle {
  font-size: 0.95rem;
  color: var(--tf-muted, #64748b);
  margin: 0;
  line-height: 1.45;
}

.pcfc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  background: var(--tf-bg-alt, #f8fafc);
  border: 1px solid var(--tf-border, #e2e8f0);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.pcfc-tool-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pcfc-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tf-text, #1e293b);
}

.pcfc-select {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid var(--tf-border, #cbd5e1);
  border-radius: 6px;
  background: var(--tf-surface, #ffffff);
  color: var(--tf-text, #0f172a);
}

.pcfc-btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pcfc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pcfc-btn-secondary {
  background: var(--tf-surface, #ffffff);
  border-color: var(--tf-border, #cbd5e1);
  color: var(--tf-text, #334155);
}

.pcfc-btn-secondary:hover {
  background: var(--tf-bg-alt, #f1f5f9);
}

.pcfc-input-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pcfc-textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.5;
  border: 1px solid var(--tf-border, #cbd5e1);
  border-radius: 6px;
  background: var(--tf-surface, #ffffff);
  color: var(--tf-text, #0f172a);
  resize: vertical;
}

.pcfc-custom-filters {
  margin-bottom: 1.25rem;
}

.pcfc-details {
  background: var(--tf-bg-alt, #f8fafc);
  border: 1px solid var(--tf-border, #e2e8f0);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
}

.pcfc-summary {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tf-text, #334155);
  cursor: pointer;
}

.pcfc-custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--tf-border, #e2e8f0);
}

@media (max-width: 640px) {
  .pcfc-custom-grid {
    grid-template-columns: 1fr;
  }
}

.pcfc-custom-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pcfc-label-sm {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tf-muted, #64748b);
}

.pcfc-input-sm {
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  border: 1px solid var(--tf-border, #cbd5e1);
  border-radius: 4px;
  background: var(--tf-surface, #ffffff);
  color: var(--tf-text, #0f172a);
}

.pcfc-diagnostics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
  .pcfc-diagnostics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pcfc-stat-box {
  background: var(--tf-bg-alt, #f8fafc);
  border: 1px solid var(--tf-border, #e2e8f0);
  border-radius: 6px;
  padding: 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pcfc-stat-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tf-muted, #64748b);
}

.pcfc-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: ui-monospace, monospace;
}

.pcfc-status-clean { color: #16a34a; }
.pcfc-status-warning { color: #d97706; }
.pcfc-status-severe { color: #dc2626; }

.pcfc-output-section {
  background: var(--tf-surface, #ffffff);
  border: 1px solid var(--tf-border, #e2e8f0);
  border-radius: 8px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.pcfc-output-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  background: var(--tf-bg-alt, #f1f5f9);
  border-bottom: 1px solid var(--tf-border, #e2e8f0);
}

.pcfc-output-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tf-text, #334155);
}

.pcfc-btn-copy {
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid var(--tf-border, #cbd5e1);
  background: var(--tf-surface, #ffffff);
  color: var(--tf-text, #334155);
  cursor: pointer;
}

.pcfc-btn-copy:hover {
  background: var(--tf-bg-alt, #e2e8f0);
}

.pcfc-sanitized-output {
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--tf-text, #0f172a);
  min-height: 80px;
  word-break: break-word;
}

.pcfc-flagged-wrap {
  background: var(--tf-bg-alt, #f8fafc);
  border: 1px solid var(--tf-border, #e2e8f0);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.pcfc-section-heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.6rem 0;
  color: var(--tf-text, #0f172a);
}

.pcfc-flagged-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pcfc-flag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.pcfc-notice {
  font-size: 0.85rem;
  min-height: 1.2rem;
}

.pcfc-notice-success {
  color: #16a34a;
}

.pcfc-hidden {
  display: none !important;
}
