/* Shared UI styles for all tool pages */
:root {
  --bg: #0f1115;
  --surface: #171a21;
  --border: #262b36;
  --text: #e8eaf0;
  --muted: #9aa3b2;
  --accent: #6c8cff;
  --accent-strong: #4f6ef7;
  --green: #34d399;
  --red: #f87171;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
header .logo { font-weight: 700; font-size: 1.1rem; color: var(--text); }
header .logo span { color: var(--accent); }
header nav a { margin-left: 1.25rem; color: var(--muted); font-size: .9rem; }
header nav a:hover { color: var(--text); }
main { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }
h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: -.02em; margin-bottom: .5rem; }
.subtitle-lede { color: var(--muted); margin-bottom: 1.5rem; max-width: 700px; }
.privacy-note {
  display: inline-block;
  font-size: .8rem;
  color: var(--green);
  border: 1px solid rgba(52,211,153,.3);
  border-radius: 999px;
  padding: .25rem .75rem;
  margin-bottom: 1.5rem;
  background: rgba(52,211,153,.06);
}
.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (max-width: 720px) { .workspace { grid-template-columns: 1fr; } }
.pane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.pane label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.pane textarea {
  flex: 1;
  min-height: 260px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .85rem;
  padding: .75rem;
  resize: vertical;
}
.pane textarea:focus { outline: none; border-color: var(--accent); }
.controls { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
button, .btn {
  background: var(--accent-strong);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .65rem 1.4rem;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}
button:hover, .btn:hover { background: var(--accent); text-decoration: none; }
button.secondary, .btn.secondary { background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 500; }
button.secondary:hover, .btn.secondary:hover { border-color: var(--accent); }
.file-drop {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1rem;
  cursor: pointer;
}
.file-drop.dragover { border-color: var(--accent); color: var(--accent); }
.status { font-size: .9rem; margin-top: .5rem; }
.status.ok { color: var(--green); }
.status.err { color: var(--red); }
article.seo { max-width: 760px; margin-top: 3rem; }
article.seo h2 { font-size: 1.35rem; margin: 1.75rem 0 .75rem; }
article.seo h3 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
article.seo p, article.seo li { color: var(--muted); }
article.seo ul, article.seo ol { padding-left: 1.5rem; margin: .5rem 0; }
article.seo code { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: .1rem .35rem; font-size: .85em; }
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: .6rem 0;
}
details.faq-item summary { cursor: pointer; font-weight: 600; }
details.faq-item p { margin-top: .6rem; color: var(--muted); }
input[type="number"], select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: .5rem .75rem;
  font-size: .95rem;
}
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}
footer a { color: var(--muted); margin: 0 .5rem; }
