/* ===== ScoutClaw Blog & Tools Styles ===== */
/* Extends style.css — same design tokens */

/* --- Blog Index --- */
.blog-hero {
  padding: 8rem 0 3rem;
  text-align: center;
}
.blog-hero h1 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.blog-hero-sub {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  padding-bottom: 5rem;
}
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
}
.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.blog-card h2 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.blog-card h2 a {
  transition: color 0.2s;
}
.blog-card h2 a:hover {
  color: var(--primary);
}
.blog-card-excerpt {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* --- Article Page --- */
.article-header {
  padding: 8rem 0 2rem;
  text-align: center;
}
.article-breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.article-breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}
.article-breadcrumb a:hover {
  color: var(--primary);
}
.article-breadcrumb .sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}
.article-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: inline-block;
}
.article-header h1 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.article-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* Article body */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.article-body h2 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--fg);
}
.article-body h3 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.1875rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--fg);
}
.article-body p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.article-body li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.article-body strong {
  color: var(--fg);
  font-weight: 600;
}
.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover {
  color: #d14f14;
}
.article-body blockquote {
  border-left: 3px solid var(--primary);
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: rgba(232, 93, 28, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body blockquote p {
  margin-bottom: 0;
  font-style: italic;
}

/* Article table */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}
.article-body table th {
  background: var(--secondary);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  font-family: 'Outfit', sans-serif;
}
.article-body table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(38, 38, 38, 0.5);
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
}
.article-body table tr:hover td {
  background: rgba(31, 31, 31, 0.3);
}

/* Table of contents */
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.toc-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc li {
  padding: 0.375rem 0;
}
.toc a {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}
.toc a:hover {
  color: var(--primary);
}

/* CTA Banner */
.cta-banner {
  background: var(--card);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}
.cta-banner h3 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--fg);
}
.cta-banner p {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.cta-banner .btn {
  color: #fff;
  text-decoration: none;
}
.cta-banner .btn:hover {
  color: #fff;
}

/* Key takeaway box */
.key-takeaway {
  background: rgba(232, 93, 28, 0.05);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.key-takeaway-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.key-takeaway p {
  margin-bottom: 0;
}

/* --- FBA Calculator --- */
.calc-hero {
  padding: 8rem 0 3rem;
  text-align: center;
}
.calc-hero h1 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.calc-hero-sub {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto;
}

.calc-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.calc-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.calc-panel-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calc-panel-title svg {
  color: var(--primary);
}

.calc-field {
  margin-bottom: 1rem;
}
.calc-field:last-child {
  margin-bottom: 0;
}
.calc-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.375rem;
  font-weight: 500;
}
.calc-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}
.calc-input:focus {
  outline: none;
  border-color: var(--primary);
}
.calc-select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--fg);
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238c8c8c' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}
.calc-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Results panel */
.calc-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(38, 38, 38, 0.5);
}
.calc-result-row:last-child {
  border-bottom: none;
}
.calc-result-label {
  font-size: 0.875rem;
  color: var(--muted);
}
.calc-result-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9375rem;
  font-weight: 600;
}
.calc-result-highlight {
  background: rgba(232, 93, 28, 0.05);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 0.5rem;
}
.calc-result-highlight .calc-result-row {
  border-bottom: none;
  padding: 0.25rem 0;
}
.calc-result-big {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
}
.calc-verdict {
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}
.calc-verdict.profitable {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}
.calc-verdict.unprofitable {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}
.calc-verdict.marginal {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: var(--warning);
}

/* --- Related Articles --- */
.related-section {
  border-top: 1px solid var(--border);
  padding: 4rem 0 5rem;
}
.related-section h2 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .blog-hero, .article-header, .calc-hero {
    padding: 6rem 0 2rem;
  }
  .blog-hero h1, .article-header h1, .calc-hero h1 {
    font-size: 1.75rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  .article-body {
    padding: 1.5rem 1rem 3rem;
  }
  .article-body h2 {
    font-size: 1.25rem;
  }
  .article-body p, .article-body li {
    font-size: 0.9375rem;
  }
}
@media (max-width: 480px) {
  .blog-hero h1, .article-header h1, .calc-hero h1 {
    font-size: 1.5rem;
  }
  .cta-banner {
    padding: 1.5rem 1rem;
  }
  .calc-result-big {
    font-size: 1.375rem;
  }
}
