/**
 * tool-pages.css
 * Shared styles for the tool-intent landing pages (/word-to-epub, /ocr, /web-to-pdf).
 * Mirrors the dark theme used across the blog and landing pages.
 */

:root {
  --primary: #00ff00;
  --primary-dim: #00cc00;
  --secondary: #c084fc;
  --accent-cyan: #22d3ee;
  --accent-pink: #f472b6;
  --accent-orange: #fb923c;
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --border: rgba(255,255,255,0.1);
  --gradient-main: linear-gradient(135deg, #22d3ee 0%, #c084fc 50%, #f472b6 100%);
  --gradient-button: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navigation */
nav.main-nav {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { width: 40px; height: 40px; }
.nav-logo span {
  font-size: 1.25rem; font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }

/* Breadcrumb */
.breadcrumb {
  background: rgba(20, 20, 20, 0.8);
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border);
}
.breadcrumb-container { max-width: 1100px; margin: 0 auto; font-size: 0.85rem; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { color: var(--text-muted); margin: 0 0.5rem; }
.breadcrumb .current { color: var(--primary); }

/* Hero */
.tool-hero {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
  padding: 4.5rem 2rem 3.5rem;
  text-align: center;
}
.tool-hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-cyan); margin-bottom: 1rem;
}
.tool-hero h1 {
  font-size: 2.75rem; font-weight: 800; line-height: 1.2;
  max-width: 820px; margin: 0 auto 1.25rem;
}
.tool-hero h1 span {
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tool-hero p.sub {
  color: var(--text-secondary); font-size: 1.15rem;
  max-width: 640px; margin: 0 auto 2rem;
}
.tool-cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 0.9rem 1.75rem;
  border-radius: 10px; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: all 0.2s; border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--gradient-button); color: #0a0a0a; }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.tool-hero .reassure { margin-top: 1.25rem; font-size: 0.85rem; color: var(--text-muted); }

/* Generic section wrapper */
.tool-section { max-width: 900px; margin: 0 auto; padding: 3.5rem 2rem; }
.tool-section h2 { font-size: 1.85rem; font-weight: 700; margin-bottom: 1.5rem; }
.tool-section h3 { font-size: 1.2rem; font-weight: 600; margin: 1.75rem 0 0.5rem; }
.tool-section p { color: var(--text-secondary); margin-bottom: 1rem; }
.tool-section ul { color: var(--text-secondary); margin: 0 0 1rem 1.25rem; }
.tool-section li { margin-bottom: 0.5rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1rem; }
.step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem;
}
.step .num {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #0a0a0a; background: var(--gradient-button);
  margin-bottom: 0.85rem;
}
.step h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--text-primary); }
.step p { font-size: 0.92rem; margin: 0; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1rem; }
.feature {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem;
}
.feature h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--text-primary); }
.feature p { font-size: 0.92rem; margin: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details {
  border-bottom: 1px solid var(--border); padding: 1.1rem 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--text-primary);
  font-size: 1.02rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--primary); font-weight: 700; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0.75rem 0 0; }

/* Related links */
.tool-related { max-width: 900px; margin: 0 auto; padding: 0 2rem 3rem; }
.tool-related h2 { font-size: 1.35rem; margin-bottom: 1.25rem; }
.tool-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tool-related-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem; display: block; color: inherit;
}
.tool-related-card:hover { border-color: var(--secondary); transform: translateY(-3px); text-decoration: none; }
.tool-related-card span { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-cyan); margin-bottom: 0.4rem; }
.tool-related-card h3 { font-size: 0.98rem; color: var(--text-primary); margin: 0; line-height: 1.4; }

/* Final CTA */
.tool-final-cta {
  background: linear-gradient(135deg, rgba(192,132,252,0.12), rgba(34,211,238,0.12));
  border-top: 1px solid var(--border); text-align: center;
  padding: 3.5rem 2rem;
}
.tool-final-cta h2 { font-size: 1.9rem; margin-bottom: 0.75rem; }
.tool-final-cta p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Footer */
footer.tool-footer {
  border-top: 1px solid var(--border);
  padding: 2rem; text-align: center; color: var(--text-muted); font-size: 0.9rem;
}
footer.tool-footer a { color: var(--text-secondary); }

@media (max-width: 768px) {
  .tool-hero h1 { font-size: 2rem; }
  .steps, .feature-grid, .tool-related-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; font-size: 0.8rem; flex-wrap: wrap; justify-content: flex-end; }
  .nav-links a:last-child { display: none; }
}
