/* AI Content Humanizer — Redesigned (tool-redesign-system compliant) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
  --primary: #8b5cf6;
  --primary-light: #f5f3ff;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #f1f5f9;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

html[data-theme="dark"] {
  --bg: #0f172a;
  --card-bg: #1e293b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
}

.tool-hero {
  background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: #fff;
}

.tool-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff !important;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 1rem;
}

.tool-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.calc-card {
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 1.5rem;
}

.calc-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1e293b;
}

html[data-theme="dark"] .calc-card h2 {
  color: #f8fafc;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e293b;
}

html[data-theme="dark"] .form-field label {
  color: #f8fafc;
}

.form-field textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  transition: border-color 0.2s;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
  min-height: 250px;
}

.form-field textarea[readonly] {
  background: #f8fafc;
}

.form-field textarea:focus {
  border-color: #3b82f6;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.calc-btn {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  flex: 1;
  min-width: 150px;
}

.calc-btn:hover {
  background: #2563eb;
}

.calc-btn.is-success {
  background: #10b981;
}
.calc-btn.is-success:hover {
  background: #059669;
}
.calc-btn.is-success:disabled {
  background: #a7f3d0;
  cursor: not-allowed;
}

.calc-btn.is-light {
  background: #f1f5f9;
  color: #475569;
}
.calc-btn.is-light:hover {
  background: #e2e8f0;
}

.related-tools-section {
  margin: 2rem 0;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .related-tools-grid { grid-template-columns: 1fr; }
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-decoration: none;
  transition: all 0.2s;
}

.tool-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  background: #f8fafc;
}

.tool-title {
  font-weight: 600;
  font-size: 14px;
  color: #1e293b;
  margin: 0 0 0.25rem;
}

.tool-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.content-section h2 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 2rem 0 0.75rem;
  border-left: 3px solid #3b82f6;
  padding-left: 0.75rem;
}

.content-section p {
  color: #64748b;
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 1rem;
}

.steps-box {
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 14px;
  padding: 1.5rem;
  counter-reset: steps;
}
.steps-box li {
  list-style: none;
  padding: 0.5rem 0 0.5rem 2.5rem;
  position: relative;
  color: #64748b;
  font-size: 14px;
  border-bottom: 1px solid #cccccc;
}
.steps-box li:last-child { border-bottom: none; }
.steps-box li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 24px;
  height: 24px;
  background: #3b82f6;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 24px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-pill {
  background: #f8fafc;
  border: 1px solid #cccccc;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.feature-pill strong {
  color: #3b82f6;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 14px;
  margin-bottom: 0.35rem;
}
.feature-pill p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.85rem;
}

.faq-item h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-list li { border-bottom: 1px solid #cccccc; }
.related-list li:last-child { border-bottom: none; }
.related-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0;
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
}
.related-list a:hover { color: #3b82f6; }
.related-list a::before { content: "→"; color: #3b82f6; font-weight: 700; flex-shrink: 0; }

html[data-theme="dark"] .calc-card { background: #1f2937; border-color: #374151; }
html[data-theme="dark"] .form-field textarea { background: #111827; color: #f9fafb; border-color: #374151; }
html[data-theme="dark"] .form-field textarea[readonly] { background: #1f2937; }
html[data-theme="dark"] .form-field textarea:focus { border-color: #3b82f6; }
html[data-theme="dark"] .content-section h2 { border-color: #3b82f6; }
html[data-theme="dark"] .related-list a::before { color: #3b82f6; }
html[data-theme="dark"] .feature-pill { background: #1f2937; border-color: #374151; }
html[data-theme="dark"] .faq-item { background: #1f2937; border-color: #374151; }
html[data-theme="dark"] .tool-card { background: #1f2937; border-color: #374151; }
html[data-theme="dark"] .steps-box { background: #1f2937; border-color: #374151; }
html[data-theme="dark"] .tool-title { color: #f8fafc; }
html[data-theme="dark"] .faq-item h3 { color: #f8fafc; }
html[data-theme="dark"] .calc-btn.is-light { background: #334155; color: #f8fafc; }
html[data-theme="dark"] .calc-btn.is-light:hover { background: #475569; }
