/* Professional Invoice Generator — Blog Shared Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #6366f1;
  --brand-dark: #4f46e5;
  --brand-light: #e0e7ff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --max-w: 780px;
  --max-w-wide: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.site-nav {
  background: var(--text);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1.5rem;
}
.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo span { color: var(--brand); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--brand) !important;
  color: #fff !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--brand-dark) !important; }

/* ── HERO ── */
.post-hero {
  background: linear-gradient(135deg, #1e293b 0%, #312e81 100%);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}
.post-hero .hero-category {
  display: inline-block;
  background: rgba(99,102,241,.3);
  color: #a5b4fc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.post-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  max-width: 780px;
  margin: 0 auto 1rem;
}
.post-hero .hero-meta {
  color: #94a3b8;
  font-size: 0.9rem;
}
.post-hero .hero-meta span { margin: 0 0.6rem; }

/* ── LAYOUT ── */
.post-wrapper {
  max-width: var(--max-w);
  margin: 3rem auto;
  padding: 0 1.5rem;
}

/* ── INTRO BOX ── */
.post-intro {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  color: #312e81;
}

/* ── TYPOGRAPHY ── */
.post-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}
.post-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.75rem 0 0.5rem;
}
.post-body p { margin-bottom: 1.25rem; color: var(--text); }
.post-body ul, .post-body ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--text);
}
.post-body li { margin-bottom: 0.45rem; }
.post-body strong { color: var(--text); }
.post-body a { color: var(--brand); text-decoration: underline; }
.post-body a:hover { color: var(--brand-dark); }

/* ── CALLOUT / TIP ── */
.tip-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  color: #15803d;
}
.tip-box strong { color: #14532d; }

.warning-box {
  background: #fffbeb;
  border-left: 4px solid #d97706;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  color: #92400e;
}

/* ── CHECKLIST ── */
.checklist { list-style: none; margin-left: 0 !important; }
.checklist li { padding-left: 2rem; position: relative; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0.25rem;
  color: #16a34a;
  font-weight: 700;
}

/* ── CTA BOX ── */
.cta-box {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
  color: #fff;
}
.cta-box h3 { color: #fff; margin: 0 0 0.6rem; font-size: 1.3rem; border: none; }
.cta-box p { color: #c7d2fe; margin-bottom: 1.25rem; }
.cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--brand) !important;
  font-weight: 700;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  text-decoration: none !important;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }

/* ── FAQ ── */
.faq-section {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin: 2.5rem 0;
}
.faq-section h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
  border: none;
  padding: 0;
}
.faq-item { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.faq-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--brand-dark);
  border: none;
  padding: 0;
}
.faq-item p { margin: 0; font-size: 0.95rem; }

/* ── RELATED POSTS ── */
.related-posts { margin: 2.5rem 0; }
.related-posts h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  border: none;
  padding: 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.related-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.related-card:hover { border-color: var(--brand); box-shadow: 0 2px 8px rgba(99,102,241,.15); }
.related-card .rc-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 0.35rem;
}
.related-card .rc-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.back-link:hover { color: var(--brand-dark); }
.back-link::before { content: "←"; }

/* ── FOOTER ── */
.site-footer {
  background: var(--text);
  color: #94a3b8;
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
  font-size: 0.88rem;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand p { max-width: 260px; margin-top: 0.5rem; line-height: 1.6; }
.footer-links h4 { color: #fff; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: #94a3b8; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w-wide);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  text-align: center;
  font-size: 0.82rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .post-hero { padding: 2.5rem 1.2rem 2rem; }
  .post-wrapper { margin-top: 2rem; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .related-grid { grid-template-columns: 1fr; }
}
