/* FundedReady blog styles */

.blog-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}
.blog-topbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e6edf3;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}
.blog-topbar .logo-accent { color: #26a69a; }
.blog-topbar .logo-icon { font-size: 22px; }
.blog-nav { display: flex; gap: 20px; }
.blog-nav a {
  color: #8b949e;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.blog-nav a:hover { color: #e6edf3; background: rgba(48,54,61,0.4); }
.blog-nav a[aria-current="page"] { color: #26a69a; }

/* ── Blog index ── */
.blog-index {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}
.blog-index-hero {
  text-align: center;
  margin-bottom: 48px;
}
.blog-index-hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: #e6edf3;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.blog-index-hero p {
  font-size: 17px;
  color: #8b949e;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.blog-card {
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid #21262d;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover {
  border-color: #30363d;
  transform: translateY(-2px);
}
.blog-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.blog-card-hero {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: #0d1117;
  display: block;
}
.blog-card-body {
  padding: 20px;
}
.blog-card-body h2 {
  font-size: 19px;
  font-weight: 600;
  color: #e6edf3;
  margin: 10px 0 8px;
  line-height: 1.35;
}
.blog-card-body p {
  font-size: 14px;
  color: #8b949e;
  line-height: 1.5;
  margin-bottom: 10px;
}
.blog-card-date {
  font-size: 12px;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.blog-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #26a69a;
  background: rgba(38,166,154,0.1);
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Blog post ── */
.blog-post {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  color: #c9d1d9;
  line-height: 1.75;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.blog-date {
  font-size: 13px;
  color: #6e7681;
}
.blog-post h1 {
  font-size: 38px;
  font-weight: 700;
  color: #e6edf3;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.blog-lede {
  font-size: 18px;
  color: #b1b8c0;
  margin-bottom: 32px;
  line-height: 1.6;
}
.blog-hero {
  margin: 0 -12px 36px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #21262d;
}
.blog-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: #0d1117;
}

.blog-body h2 {
  font-size: 26px;
  font-weight: 700;
  color: #e6edf3;
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
}
.blog-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #e6edf3;
  margin: 32px 0 10px;
}
.blog-body p {
  font-size: 16px;
  margin-bottom: 18px;
  color: #c9d1d9;
}
.blog-body a {
  color: #58a6ff;
  text-decoration: underline;
  text-decoration-color: rgba(88,166,255,0.4);
  text-underline-offset: 3px;
}
.blog-body a:hover { text-decoration-color: #58a6ff; }
.blog-body strong { color: #e6edf3; font-weight: 600; }
.blog-body em { color: #e6edf3; }
.blog-body ul,
.blog-body ol {
  margin: 0 0 20px 20px;
  padding-left: 10px;
}
.blog-body li {
  font-size: 16px;
  margin-bottom: 8px;
  color: #c9d1d9;
}
.blog-body blockquote {
  border-left: 3px solid #26a69a;
  padding: 4px 0 4px 18px;
  margin: 24px 0;
  color: #b1b8c0;
  font-style: italic;
}
.blog-body code {
  background: rgba(110,118,129,0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  color: #f0b90b;
}
.blog-body pre {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 20px 0;
}
.blog-body pre code {
  background: transparent;
  padding: 0;
  color: #e6edf3;
}
.blog-body hr {
  border: none;
  border-top: 1px solid #21262d;
  margin: 40px 0;
}
.blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.blog-cta,
.blog-affiliate {
  background: rgba(22, 27, 34, 0.7);
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 24px;
  margin: 40px 0;
}
.blog-cta h3 {
  color: #e6edf3;
  margin-bottom: 8px;
  font-size: 19px;
}
.blog-cta p { color: #b1b8c0; margin-bottom: 14px; font-size: 15px; }
.blog-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #26a69a 0%, #2bbbad 100%);
  color: #0a0a0f;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}
.blog-cta-btn:hover { filter: brightness(1.1); }
.blog-affiliate p { margin: 0; color: #b1b8c0; font-size: 14px; }
.blog-affiliate a {
  color: #f0b90b;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.related {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #21262d;
}
.related h2 {
  font-size: 20px;
  color: #e6edf3;
  margin-bottom: 12px;
}
.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related li {
  margin-bottom: 10px;
}
.related a {
  color: #58a6ff;
  text-decoration: none;
  font-size: 15px;
}
.related a:hover { text-decoration: underline; }

.blog-footer {
  text-align: center;
  padding: 40px 24px;
  color: #6e7681;
  font-size: 13px;
  border-top: 1px solid #21262d;
  margin-top: 60px;
}
.blog-footer a {
  color: #8b949e;
  text-decoration: none;
}
.blog-footer a:hover { color: #e6edf3; }

@media (max-width: 560px) {
  .blog-index-hero h1 { font-size: 32px; }
  .blog-post h1 { font-size: 30px; }
  .blog-lede { font-size: 16px; }
  .blog-body h2 { font-size: 22px; margin: 32px 0 10px; }
  .blog-hero { margin: 0 0 28px; }
}
