/* ============================================
   tool-page.css — Shared layout for all individual tool pages
   ============================================ */

.tool-page {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-xl) 1.5rem var(--space-2xl);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-faint); }

/* Tool hero */
.tool-hero {
  margin-bottom: 2.5rem;
}
.tool-hero-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.tool-hero-icon {
  width: 56px; height: 56px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}
.tool-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.4rem; }
.tool-hero p  { font-size: 1rem; max-width: 580px; }

/* Tool card container */
.tool-card-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* Two column layout */
.tool-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.tool-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Full width layout */
.tool-full {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Labels */
.label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Slider */
.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-3);
  outline: none;
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform var(--transition);
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* File drop */
.file-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.25rem;
  text-align: center;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.file-drop:hover, .file-drop.drag-over { border-color: var(--accent); background: var(--tag-bg); color: var(--accent); }

/* Result box */
.result-box {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.placeholder-text { font-size: 0.82rem; color: var(--text-faint); }

/* Checkbox group */
.checkbox-group { display: flex; flex-direction: column; gap: 0.6rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: var(--text-muted); cursor: pointer; }
.checkbox-label input { accent-color: var(--accent); width: 15px; height: 15px; }

/* Toggle tabs */
.toggle-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tab-btn {
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  padding: 0.45rem 1.1rem; border-radius: var(--radius-full);
  border: 1.5px solid var(--border); color: var(--text-muted);
  background: transparent; transition: all var(--transition); cursor: pointer;
}
.tab-btn.active, .tab-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--tag-bg); }

/* Code textarea */
.code-input { font-family: 'Courier New', monospace; font-size: 0.85rem; line-height: 1.6; }

/* Btn small */
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

/* Action row */
.action-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Info note */
.info-note {
  background: var(--bg-3);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Back to tools link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2rem;
  transition: color var(--transition);
}
.back-link:hover { color: var(--accent); }

@media (max-width: 680px) {
  .tool-cols { grid-template-columns: 1fr; }
  .tool-card-wrap { padding: 1.25rem; }
}

/* ===== SEO Content Sections ===== */
.content-section { margin-top: 3rem; }
.content-section h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.content-section h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; color: var(--text); }
.content-section p  { font-size: 0.95rem; line-height: 1.85; margin-bottom: 1rem; color: var(--text-muted); }

/* Steps list */
.steps-list { list-style: none; counter-reset: steps; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.steps-list li { counter-increment: steps; display: flex; gap: 1rem; align-items: flex-start; font-size: 0.95rem; line-height: 1.7; color: var(--text-muted); }
.steps-list li::before { content: counter(steps); min-width: 28px; height: 28px; border-radius: 50%; background: var(--tag-bg); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; flex-shrink: 0; margin-top: 0.1rem; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--text); margin-bottom: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q::after { content: '+'; color: var(--accent); font-size: 1.3rem; flex-shrink: 0; }
.faq-q.open::after { content: '−'; }
.faq-a { font-size: 0.9rem; line-height: 1.75; color: var(--text-muted); display: none; padding-top: 0.75rem; }
.faq-a.open { display: block; }

/* Related tools */
.related-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.related-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem; text-decoration: none; transition: all var(--transition); display: flex; align-items: center; gap: 0.75rem; }
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.related-card span:last-child { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--text); }
