/* =========================================
   Interimflow Blog — Shared Styles
   ========================================= */

:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --primary-light: #ede9fe;
  --accent: #f59e0b;
  --foreground: #1a1a2e;
  --muted: #6b7280;
  --muted-bg: #f9fafb;
  --border: #e5e7eb;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
  --shadow-hover: 0 8px 40px rgba(124, 58, 237, 0.18);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--foreground);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

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

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.navbar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  font-weight: 800; font-size: 1.2rem; color: var(--foreground);
  display: flex; align-items: center; gap: .5rem;
}
.navbar-brand span { color: var(--primary); }
.navbar-links { display: flex; gap: 1.5rem; align-items: center; }
.navbar-links a { color: var(--muted); font-size: .9rem; font-weight: 500; }
.navbar-links a:hover { color: var(--primary); }
.btn-nav {
  background: var(--primary); color: var(--white) !important;
  padding: .45rem 1.1rem; border-radius: 8px; font-weight: 600 !important;
  font-size: .85rem !important;
}
.btn-nav:hover { background: var(--primary-dark) !important; color: var(--white) !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: none; transition: all .25s; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(124,58,237,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,.45);
  color: var(--white);
}
.btn-outline {
  border: 2px solid var(--primary); color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ── Hero Blog Index ── */
.blog-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #3b0764 100%);
  color: var(--white);
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.blog-hero .tag {
  display: inline-block;
  background: rgba(245,158,11,.2); color: var(--accent);
  border: 1px solid rgba(245,158,11,.4);
  border-radius: 999px; padding: .25rem .9rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .05em;
  margin-bottom: 1.25rem; text-transform: uppercase;
}
.blog-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.blog-hero p { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto; }

/* ── Article Hero ── */
.article-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #3b0764 100%);
  color: var(--white); padding: 5rem 2rem 3.5rem;
}
.article-hero-inner { max-width: 760px; margin: 0 auto; }
.article-hero .category {
  display: inline-block; background: rgba(245,158,11,.2); color: var(--accent);
  border: 1px solid rgba(245,158,11,.4); border-radius: 999px;
  padding: .25rem .9rem; font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.25rem;
}
.article-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.25; margin-bottom: 1rem; }
.article-hero .meta { color: rgba(255,255,255,.65); font-size: .88rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.article-hero .meta span { display: flex; align-items: center; gap: .35rem; }

/* ── Cards Grid ── */
.section { padding: 4rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }

.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem; margin-top: 2.5rem;
}
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-img {
  height: 200px; display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  border-radius: 999px; padding: .2rem .75rem; font-size: .75rem; font-weight: 600;
  margin-bottom: .75rem;
}
.card h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .6rem; color: var(--foreground); line-height: 1.35; }
.card p { color: var(--muted); font-size: .9rem; line-height: 1.6; flex: 1; }
.card-footer { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.card-date { font-size: .78rem; color: var(--muted); }
.read-more {
  font-size: .85rem; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: .3rem;
}
.read-more::after { content: '→'; transition: transform .2s; }
.card:hover .read-more::after { transform: translateX(4px); }

/* ── Article Body ── */
.article-body { padding: 3.5rem 2rem 4rem; }
.article-content { max-width: 760px; margin: 0 auto; }

.article-content h2 {
  font-size: 1.6rem; font-weight: 700; margin: 2.5rem 0 1rem;
  color: var(--foreground); line-height: 1.3;
  padding-left: 1rem; border-left: 4px solid var(--primary);
}
.article-content h3 {
  font-size: 1.2rem; font-weight: 600; margin: 2rem 0 .75rem; color: var(--foreground);
}
.article-content p { color: #374151; margin-bottom: 1.25rem; }
.article-content ul, .article-content ol {
  padding-left: 1.5rem; margin-bottom: 1.25rem; color: #374151;
}
.article-content li { margin-bottom: .5rem; }
.article-content strong { color: var(--foreground); }

.callout {
  background: var(--primary-light); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem; margin: 2rem 0;
}
.callout p { margin: 0; color: var(--primary-dark); font-weight: 500; }

.stat-block {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem; margin: 2rem 0;
}
.stat-item {
  background: var(--muted-bg); border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
  border: 1px solid var(--border);
}
.stat-item .num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-item .label { font-size: .82rem; color: var(--muted); margin-top: .25rem; }

.steps { counter-reset: step; margin: 1.5rem 0; }
.step {
  display: flex; gap: 1rem; margin-bottom: 1.5rem;
  align-items: flex-start;
}
.step-num {
  min-width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-content h4 { font-weight: 600; margin-bottom: .3rem; }
.step-content p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius); padding: 3rem 2.5rem;
  text-align: center; color: var(--white); margin: 3rem 0;
}
.cta-banner h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: .75rem; color: var(--white); }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 1.75rem; }
.cta-banner .btn-white {
  background: var(--white); color: var(--primary);
  padding: .75rem 2rem; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: transform .2s, box-shadow .2s;
}
.cta-banner .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); color: var(--primary); }

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: 760px; margin: 0 auto; padding: 1.25rem 2rem;
  font-size: .82rem; color: var(--muted);
  display: flex; gap: .5rem; align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .5; }

/* ── Related Articles ── */
.related { background: var(--muted-bg); padding: 4rem 2rem; }
.related h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; text-align: center; }

/* ── Footer ── */
.site-footer {
  background: var(--foreground); color: rgba(255,255,255,.7);
  padding: 3rem 2rem 2rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; margin-bottom: 2.5rem; }
.footer-brand strong { color: var(--white); font-size: 1.1rem; }
.footer-brand p { font-size: .85rem; margin-top: .5rem; max-width: 260px; }
.footer-links h4 { color: var(--white); font-size: .9rem; font-weight: 600; margin-bottom: .75rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .85rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  font-size: .8rem; gap: .5rem;
}

/* ── Animations ── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .navbar-links .hide-mobile { display: none; }
  .stat-block { grid-template-columns: 1fr 1fr; }
  .article-hero { padding: 3.5rem 1.25rem 2.5rem; }
  .article-body { padding: 2rem 1.25rem 3rem; }
  .cta-banner { padding: 2rem 1.25rem; }
}
