/* CloudMindMaps blog — shared styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --maxw: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Top nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 16px; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 30px; height: 30px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--text-secondary); }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
}
.nav-cta:hover { background: var(--accent-dark); text-decoration: none; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 960px; margin: 0 auto; padding: 0 24px; }

.breadcrumb { font-size: 13px; color: var(--text-muted); margin: 28px 0 0; }
.breadcrumb a { color: var(--text-secondary); }

/* ---------- Blog index ---------- */
.blog-hero { text-align: center; padding: 56px 0 24px; }
.blog-hero h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.blog-hero p { font-size: 18px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 24px 0 64px; }
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-light); text-decoration: none; }
.post-card .tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.post-card h2 { font-size: 19px; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 10px; }
.post-card p { font-size: 14px; color: var(--text-secondary); flex: 1; }
.post-card .meta { font-size: 12px; color: var(--text-muted); margin-top: 16px; }

.post-card.featured { grid-column: 1 / -1; flex-direction: row; gap: 28px; align-items: center; }
.post-card.featured .feat-body { flex: 1; }
.post-card.featured h2 { font-size: 26px; }
.post-card.featured .feat-art {
  width: 220px; height: 150px; flex-shrink: 0; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Article ---------- */
.article { padding: 8px 0 40px; }
.article .tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 4px 10px; border-radius: 20px; margin: 24px 0 16px;
}
.article h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 16px; }
.article .byline { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; display: flex; align-items: center; gap: 8px; }
.article .lead { font-size: 19px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 28px; }
.article h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin: 40px 0 14px; }
.article h3 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; }
.article p { margin-bottom: 18px; font-size: 17px; }
.article ul, .article ol { margin: 0 0 18px 24px; }
.article li { margin-bottom: 8px; font-size: 17px; }
.article strong { font-weight: 600; color: var(--text); }
.article blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 20px;
  margin: 24px 0;
  color: var(--text-secondary);
  font-style: italic;
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  border-radius: 0 8px 8px 0;
}
.article code {
  background: #eef0f4; padding: 2px 6px; border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px;
}
.article table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.article th, .article td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.article th { background: color-mix(in srgb, var(--accent) 6%, transparent); font-weight: 600; }
.article figure { margin: 28px 0; }

.cta-box {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin: 44px 0;
}
.cta-box h3 { color: #fff; font-size: 22px; margin: 0 0 8px; }
.cta-box p { color: rgba(255,255,255,0.9); margin: 0 0 20px; font-size: 16px; }
.cta-btn {
  display: inline-block; background: #fff; color: var(--accent-dark) !important;
  font-weight: 700; padding: 12px 28px; border-radius: 24px; font-size: 15px;
}
.cta-btn:hover { background: #f1f1ff; text-decoration: none; }

.related { border-top: 1px solid var(--border); padding: 32px 0 0; margin-top: 40px; }
.related h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 16px; }
.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.site-footer a { color: var(--text-secondary); margin: 0 8px; }
.site-footer .foot-brand { font-weight: 700; color: var(--text); font-size: 15px; margin-bottom: 8px; }

@media (max-width: 640px) {
  .blog-hero h1 { font-size: 30px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card.featured { flex-direction: column; align-items: stretch; }
  .post-card.featured .feat-art { width: 100%; }
  .article h1 { font-size: 27px; }
  .nav-links a:not(.nav-cta) { display: none; }
}
