/* =============================================
   FAQ Schema Generator (Tool Specific)
   ============================================= */

.tool-content.faq-schema-content {
  max-width: 85%;
  width: 85%;
}
@media (max-width: 1024px) {
  .tool-content.faq-schema-content {
    max-width: 100%;
    width: 100%;
  }
}

.faq-schema-tool {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 980px) {
  .faq-schema-tool {
    grid-template-columns: 1fr;
  }
}

.faq-schema-card {
  padding: 20px 22px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}
.faq-schema-card::before {
  display: none;
}

.faq-card-header {
  margin-bottom: 16px;
}
.faq-card-header h2 {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-transform: none;
}

.faq-pairs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.faq-pair {
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: #f2f2f28c;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.faq-pair:hover {
  border-color: #cbd5f5;
}

.faq-pair-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-question-input,
.faq-answer-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #adadad;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.faq-question-input:focus,
.faq-answer-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.faq-question-input::placeholder,
.faq-answer-input::placeholder {
  color: var(--text-muted);
}

.faq-answer-input {
  min-height: 60px;
  resize: vertical;
  line-height: 1.6;
}

.faq-pair-remove {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f9fafb;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: 2px;
}
.faq-pair-remove:hover {
  background: #fad6d6;
  color: #414143;
}

.faq-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid #adadad;
  border-radius: 6px;
  background: #ffffff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.faq-add-btn:hover {
  border-color: #3259da;
  color: #2563eb;
  background: #f8fafc;
}

.faq-output-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-output-code {
  width: 100%;
  min-height: 190px;
  max-height: 320px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #ffffff;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #6b7280;
  resize: vertical;
}

.faq-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #1d75f6;
  background: #1d75f6;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.faq-action-btn:hover {
  background: #1c64d6;
  border-color: #1c64d6;
}

.faq-action-btn--secondary {
  background: #1d75f6;
  border-color: #1d75f6;
}

.faq-output-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: #6b7280;
}

.faq-format-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.faq-format-help {
  color: #2563eb;
  text-decoration: none;
}
.faq-format-help:hover {
  text-decoration: underline;
}

/* Dark mode overrides for FAQ Schema Generator */
[data-theme="dark"] .faq-schema-card {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.55);
}
[data-theme="dark"] .faq-card-header h2 {
  color: #cbd5f5;
}
[data-theme="dark"] .faq-pair {
  background: #0b1220;
  border-color: rgba(148, 163, 184, 0.25);
}
[data-theme="dark"] .faq-question-input,
[data-theme="dark"] .faq-answer-input {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
}
[data-theme="dark"] .faq-question-input::placeholder,
[data-theme="dark"] .faq-answer-input::placeholder {
  color: rgba(226, 232, 240, 0.5);
}
[data-theme="dark"] .faq-pair-remove {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}
[data-theme="dark"] .faq-add-btn {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.3);
  color: #cbd5f5;
}
[data-theme="dark"] .faq-output-code {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.3);
  color: #cbd5f5;
}
[data-theme="dark"] .faq-output-options {
  color: #cbd5f5;
}
[data-theme="dark"] .faq-format-help {
  color: #60a5fa;
}
