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

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

:root {
  --text: #1C1C1E;
  --text-sec: #48484A;
  --text-ter: #6C6C70;
  --bg: #FFFFFF;
  --bg-el: #F2F2F7;
  --bg-sec: #E5E5EA;
  --accent: #007AFF;
  --accent2: #AF52DE;
  --success: #30D158;
  --warning: #F59E0B;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

/* ── Nav ── */
.blog-nav {
  position: sticky; top: 0; z-index: 100;
  padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-sec);
}
.blog-nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
  font-size: 20px; font-weight: 900; letter-spacing: -0.03em;
}
.blog-nav-logo span {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.blog-nav-cta {
  padding: 8px 18px; border-radius: 8px; border: none;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700; font-family: inherit;
  cursor: pointer; text-decoration: none;
}
.blog-nav-cta:hover { opacity: 0.9; }

/* ── Article ── */
.blog-article {
  max-width: 720px; margin: 0 auto;
  padding: 48px 24px 80px;
}
.blog-breadcrumb {
  font-size: 13px; color: var(--text-ter); margin-bottom: 24px;
}
.blog-breadcrumb a { color: var(--accent); text-decoration: none; }
.blog-breadcrumb a:hover { text-decoration: underline; }

.blog-article h1 {
  font-size: clamp(32px, 5vw, 44px); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.15;
  color: var(--text); margin-bottom: 16px;
}
.blog-meta {
  font-size: 14px; color: var(--text-ter); margin-bottom: 32px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.blog-tag {
  font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(0,122,255,0.08); color: var(--accent);
}

.blog-article h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
  margin: 48px 0 16px; color: var(--text); line-height: 1.25;
}
.blog-article h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  margin: 36px 0 12px; color: var(--text);
}
.blog-article p {
  font-size: 16px; color: var(--text-sec); line-height: 1.8;
  margin-bottom: 20px;
}
.blog-article strong { color: var(--text); }
.blog-article a { color: var(--accent); text-decoration: underline; }
.blog-article ul, .blog-article ol {
  margin: 0 0 20px 24px; color: var(--text-sec);
}
.blog-article li {
  font-size: 16px; line-height: 1.8; margin-bottom: 8px;
}
.blog-article blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px; margin: 24px 0;
  background: rgba(0,122,255,0.04);
  border-radius: 0 10px 10px 0;
  font-size: 15px; color: var(--text); font-style: italic;
}
.blog-article blockquote strong { font-style: normal; }

/* Key takeaway / callout */
.blog-callout {
  padding: 20px 24px; margin: 32px 0;
  background: linear-gradient(135deg, rgba(0,122,255,0.06), rgba(175,82,222,0.04));
  border: 1px solid rgba(0,122,255,0.15);
  border-radius: 14px;
}
.blog-callout-title {
  font-size: 14px; font-weight: 800; color: var(--accent);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em;
}

/* CTA box */
.blog-cta {
  margin: 48px 0; padding: 32px;
  background: linear-gradient(135deg, rgba(0,122,255,0.08), rgba(175,82,222,0.06));
  border: 1px solid rgba(0,122,255,0.18);
  border-radius: 18px; text-align: center;
}
.blog-cta h3 {
  font-size: 22px; font-weight: 800; color: var(--text);
  margin: 0 0 8px; letter-spacing: -0.02em;
}
.blog-cta p {
  font-size: 15px; color: var(--text-sec); margin-bottom: 20px;
}
.blog-cta-btn {
  display: inline-block; padding: 12px 28px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 10px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; text-decoration: none;
}
.blog-cta-btn:hover { opacity: 0.9; }

/* ── Footer ── */
.blog-footer {
  padding: 24px 32px; border-top: 1px solid var(--bg-sec);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-ter);
}
.blog-footer a { color: var(--text-ter); text-decoration: none; }
.blog-footer a:hover { color: var(--accent); }

/* ── Blog Index ── */
.blog-hero {
  max-width: 720px; margin: 0 auto;
  padding: 64px 24px 48px; text-align: center;
}
.blog-hero h1 {
  font-size: clamp(32px, 5vw, 48px); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 12px;
}
.blog-hero p { font-size: 17px; color: var(--text-sec); }

.blog-grid {
  max-width: 960px; margin: 0 auto;
  padding: 0 24px 80px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.blog-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg); border: 1px solid var(--bg-sec);
  border-radius: 16px; padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.blog-card-tag {
  font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  display: inline-block; margin-bottom: 12px;
}
.blog-card h2 {
  font-size: 18px; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.3; margin-bottom: 8px; color: var(--text);
}
.blog-card p {
  font-size: 14px; color: var(--text-sec); line-height: 1.6;
  margin-bottom: 12px;
}
.blog-card-meta {
  font-size: 12px; color: var(--text-ter);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .blog-article { padding: 32px 18px 60px; }
  .blog-article h1 { font-size: 28px; }
  .blog-article h2 { font-size: 22px; }
  .blog-grid { grid-template-columns: 1fr; }
}
