/* CSS Keyframe Builder — Tool Styles */
/* Extends /style.css — only visual overrides here */

/* ── Ad slots hidden ── */
.ad-slot,.ad-leaderboard,.ad-in-article,.ad-anchor,.ad-placeholder,[class*='ad-slot']{display:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;}

/* ── Page hero ── */
.tool-hero {
  background: linear-gradient(135deg, #db2777 0%, #9333ea 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: #fff;
}
.tool-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff !important;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.tool-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}
.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;
}

/* ── Main layout ── */
.tool-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ── Two-column builder layout ── */
.keyframe-builder-layout {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .keyframe-builder-layout { grid-template-columns: 1fr; }
}

/* ── Calculator card ── */
.calc-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.calc-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Settings subheadings */
.settings-subhead {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

/* ── Form fields ── */
.form-field {
  margin-bottom: 1.1rem;
}
.form-field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.form-field .input {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  width: 100%;
}
.form-field .input:focus {
  border-color: #db2777;
  box-shadow: 0 0 0 3px rgba(219,39,119,0.12);
}

/* Range inputs */
.range-input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: var(--border);
  outline: none;
  accent-color: #db2777;
  cursor: pointer;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #db2777;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(219,39,119,0.35);
}
.range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #db2777;
  cursor: pointer;
  border: none;
}

/* Select overrides */
.select.is-fullwidth select,
.form-field .select select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.select.is-fullwidth select:focus,
.form-field .select select:focus {
  border-color: #db2777;
  box-shadow: 0 0 0 3px rgba(219,39,119,0.12);
}

/* ── Add stop button ── */
.add-stop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg);
  border: 1.5px dashed #db2777;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #db2777;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
  margin-top: 0.5rem;
}
.add-stop-btn:hover {
  background: #fdf2f8;
  border-style: solid;
}
html[data-theme="dark"] .add-stop-btn:hover {
  background: rgba(219,39,119,0.1);
}

/* ── Animation preview area ── */
.anim-preview-wrap {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 2rem;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
html[data-theme="dark"] .anim-preview-wrap {
  background: #1a1f2e;
}

/* ── Code output textarea ── */
.code-output {
  width: 100%;
  background: #0f172a;
  color: #e2e8f0;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.65;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}
.code-output:focus {
  border-color: #db2777;
  box-shadow: 0 0 0 3px rgba(219,39,119,0.12);
}
html[data-theme="dark"] .code-output {
  background: #0a0f1a;
  border-color: #2d3548;
}

/* ── Main action button ── */
.calc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #db2777, #9333ea);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.75rem;
  width: 100%;
  justify-content: center;
}
.calc-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(219,39,119,0.35);
}

/* ── Related tools ── */
.related-tools-section {
  margin: 2rem 0;
}
.related-tools-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 600px) {
  .related-tools-grid { grid-template-columns: 1fr; }
}

/* ── Content section ── */
.content-section {
  margin-top: 2rem;
}
.content-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  border-left: 3px solid #db2777;
  padding-left: 0.75rem;
}
.content-section p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.content-section code {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.88rem;
  color: #db2777;
}

/* Steps box */
.steps-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  counter-reset: steps;
  list-style: none;
}
.steps-box li {
  list-style: none;
  padding: 0.5rem 0 0.5rem 2.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.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: #db2777;
  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 pills */
.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: #fdf2f8;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
html[data-theme="dark"] .feature-pill {
  background: rgba(219,39,119,0.1);
}
.feature-pill strong {
  color: #db2777;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.feature-pill p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* FAQ items */
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.85rem;
}
.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.faq-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* Related list */
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-list li {
  border-bottom: 1px solid var(--border);
}
.related-list li:last-child { border-bottom: none; }
.related-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.related-list a:hover { color: #db2777; }
.related-list a::before {
  content: "→";
  color: #db2777;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Footer ── */
#footer-root {
  background: #000000;
  margin-top: 3rem;
}
.site-footer {
  background: #000000 !important;
  color: #94a3b8 !important;
}
.site-footer a { color: #94a3b8 !important; }
.site-footer a:hover { color: #fff !important; }
