/* Podcast Episode Length Estimator — Tool Styles */
/* Extends /style.css — Creator theme (purple/violet) */

/* ── 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;}

/* ── Hero ── */
.tool-hero {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: #fff;
}
.tool-hero h1 {
  font-size: 2.25rem;
  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.88);
  font-size: 1.05rem;
  max-width: 560px;
  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.35rem 0.95rem;
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 600;
}

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

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

/* ── Form fields ── */
.form-field {
  margin-bottom: 1.25rem;
}
.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

/* ── Two-column grid ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ── Button ── */
.calc-btn {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.calc-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(124,58,237,0.3);
}

/* ── Results grid ── */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 700px) { .results-grid { grid-template-columns: 1fr; } }

.result-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  position: relative;
}
.result-card .rc-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.result-card .rc-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.result-card.highlight {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #f5f3ff, #faf5ff);
  border-color: #c4b5fd;
}
html[data-theme="dark"] .result-card.highlight {
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(168,85,247,0.08));
  border-color: #6d28d9;
}
.result-card.highlight .rc-value {
  font-size: 2rem;
  color: #7c3aed;
}
.result-card .copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--primary-light);
  border: none;
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
}
.result-card .copy-btn:hover { background: var(--primary); color: #fff; }

/* ── Stats strip ── */
.yearly-strip {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.ys-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}
.ys-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

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

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #7c3aed;
}
.icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.tool-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.35;
}
.tool-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* ── Content section ── */
.content-section {
  padding-bottom: 2rem;
}
.content-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  border-left: 3px solid #7c3aed;
  padding-left: 0.75rem;
}
.content-section p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Steps box */
.steps-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  counter-reset: steps;
  margin-bottom: 1rem;
  list-style: none;
}
.steps-box li {
  padding: 0.6rem 0 0.6rem 2.75rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  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.65rem;
  width: 24px;
  height: 24px;
  background: #7c3aed;
  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: 1.25rem;
  margin: 1.25rem 0;
}
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-pill {
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}
.feature-pill strong {
  color: #7c3aed;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.feature-pill p { font-size: 0.84rem; color: var(--text-muted); margin: 0; line-height: 1.55; }
html[data-theme="dark"] .feature-pill { background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.25); }

/* FAQ */
.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.5rem 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: #7c3aed; }
.related-list a::before { content: "→"; color: #7c3aed; 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; }
