/* =============================================
   ShortTrim Blog — Design System
   ============================================= */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #111827;
  background: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #2563eb;
}

/* =============================================
   Layout
   ============================================= */

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   Navigation
   ============================================= */

nav {
  background: #0f172a;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-cta {
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.15s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.nav-brand-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-left: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.nav-link:hover {
  color: #ffffff;
}

/* =============================================
   Blog Hero (index.html)
   ============================================= */

.blog-hero {
  background: #0f172a;
  color: #ffffff;
  padding: 64px 0 56px;
}

.blog-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
}

.blog-hero p {
  color: #94a3b8;
  font-size: 18px;
  margin-top: 12px;
}

/* =============================================
   Blog Grid (index.html)
   ============================================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.blog-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border-color: #d1d5db;
}

.card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-top: 8px;
  line-height: 1.4;
}

.card-excerpt {
  font-size: 14px;
  color: #6b7280;
  margin-top: 10px;
  line-height: 1.65;
}

.card-meta {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =============================================
   Article Hero
   ============================================= */

.hero {
  background: #0f172a;
  color: #ffffff;
  padding: 60px 0 52px;
}

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #60a5fa;
  background: rgba(96,165,250,0.12);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  max-width: 680px;
}

.hero-meta {
  color: #94a3b8;
  font-size: 14px;
  margin-top: 16px;
}

/* =============================================
   Article Body
   ============================================= */

.article-body {
  padding: 52px 0 88px;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-top: 52px;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-top: 32px;
  line-height: 1.4;
}

.article-body p {
  line-height: 1.8;
  color: #374151;
  margin-top: 16px;
  font-size: 16px;
}

.article-body ul,
.article-body ol {
  margin-top: 16px;
  padding-left: 24px;
}

.article-body li {
  color: #374151;
  line-height: 1.75;
  margin-top: 8px;
  font-size: 16px;
}

.article-body strong {
  color: #111827;
  font-weight: 600;
}

/* Intro lead paragraph */
.article-intro {
  font-size: 17px;
  color: #4b5563;
  line-height: 1.8;
  margin-top: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 32px;
}

/* =============================================
   Tool Sections
   ============================================= */

.tool-section {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  margin-top: 28px;
  background: #fafafa;
}

.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
  padding: 3px 9px;
  flex-shrink: 0;
  margin-top: 4px;
}

.tool-name {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.tool-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 20px;
  margin-top: 4px;
  flex-shrink: 0;
}

.badge-best {
  background: #dcfce7;
  color: #166534;
}

.badge-budget {
  background: #fef9c3;
  color: #854d0e;
}

.badge-popular {
  background: #ede9fe;
  color: #5b21b6;
}

.badge-editor {
  background: #fee2e2;
  color: #991b1b;
}

.badge-agency {
  background: #e0f2fe;
  color: #0c4a6e;
}

.tool-pricing {
  font-size: 14px;
  color: #6b7280;
  margin-top: 12px;
  font-weight: 500;
}

.tool-pricing strong {
  color: #111827;
}

.tool-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.pros,
.cons {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
}

.pros {
  border: 1px solid #bbf7d0;
}

.cons {
  border: 1px solid #fecaca;
}

.pros h4,
.cons h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.pros h4 { color: #16a34a; }
.cons h4 { color: #dc2626; }

.pros ul,
.cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros li,
.cons li {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
  margin-top: 6px;
  padding-left: 18px;
  position: relative;
}

.pros li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

.cons li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 700;
}

/* ShortTrim highlight */
.tool-section.featured {
  border-color: #2563eb;
  background: #eff6ff;
}

.tool-section.featured .tool-name {
  color: #1d4ed8;
}

/* =============================================
   Comparison Table
   ============================================= */

.table-wrap {
  overflow-x: auto;
  margin-top: 32px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: #ffffff;
}

.table-wrap thead th {
  background: #f8fafc;
  text-align: left;
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.table-wrap tbody td {
  padding: 13px 16px;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.table-wrap tbody tr:last-child td {
  border-bottom: none;
}

/* ShortTrim row highlight */
.table-wrap tbody tr.highlight td {
  background: #eff6ff;
  font-weight: 600;
  color: #1e40af;
}

.table-wrap tbody tr.highlight td:first-child {
  border-left: 3px solid #2563eb;
}

.check { color: #16a34a; font-weight: 700; }
.cross { color: #dc2626; }

/* =============================================
   Step Guide (for how-to articles)
   ============================================= */

.steps {
  margin-top: 32px;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  align-items: flex-start;
}

.step-num {
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-top: 0;
}

.step-content p {
  margin-top: 6px;
  font-size: 15px;
  color: #4b5563;
}

/* =============================================
   FAQ Section
   ============================================= */

.faq {
  margin-top: 56px;
}

.faq > h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
  margin-top: 0;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 22px 0;
}

.faq-item:first-of-type {
  border-top: 1px solid #e5e7eb;
  margin-top: 24px;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-top: 0;
  line-height: 1.5;
}

.faq-item p {
  color: #4b5563;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
}

/* =============================================
   CTA Box
   ============================================= */

.cta-box {
  background: #eff6ff;
  border: 2px solid #2563eb;
  border-radius: 20px;
  padding: 44px 40px;
  text-align: center;
  margin: 56px 0 0;
}

.cta-box h2 {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
  margin-top: 0;
}

.cta-box p {
  color: #4b5563;
  font-size: 16px;
  margin-top: 10px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 10px;
  margin-top: 24px;
  transition: background 0.15s;
}

.btn-cta:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.cta-note {
  font-size: 13px;
  color: #6b7280;
  margin-top: 10px;
}

/* =============================================
   Footer
   ============================================= */

footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 44px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copy {
  font-size: 13px;
  margin-left: auto;
  color: #64748b;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    padding: 44px 0 36px;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .article-body {
    padding: 36px 0 64px;
  }

  .article-body h2 {
    font-size: 21px;
    margin-top: 40px;
  }

  .tool-section {
    padding: 20px 18px;
  }

  .tool-pros-cons {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 32px 24px;
  }

  .cta-box h2 {
    font-size: 22px;
  }

  .footer-copy {
    margin-left: 0;
  }

  .nav-inner {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .container,
  .container-wide {
    padding: 0 16px;
  }
}
