/*
 * blog.css — Styles for /blog and /blog/:slug pages.
 * Owns: .blog-grid, .blog-card, .blog-post* component classes only.
 * Does NOT own: nav, footer, hero (theme.css + city.css shared).
 */

html, body { background: #060C1A; color: #fff; }

/* ── Blog index card grid ───────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 40px auto 0;
}
@media (max-width: 820px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(77, 201, 255, 0.12);
  border-radius: 14px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
  min-height: 240px;
}
.blog-card:hover {
  border-color: rgba(77, 201, 255, 0.45);
  background: rgba(77, 201, 255, 0.04);
  transform: translateY(-4px);
}
.blog-card-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(77, 201, 255, 0.85);
}
.blog-card-tag { color: rgba(77, 201, 255, 0.9); font-weight: 700; }
.blog-card-dot { color: rgba(77, 201, 255, 0.35); }
.blog-card-city { color: rgba(255, 255, 255, 0.55); font-weight: 500; }
.blog-card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 4px 0;
}
.blog-card-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  flex: 1 1 auto;
  margin: 0;
}
.blog-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 8px;
  border-top: 1px solid rgba(77, 201, 255, 0.08);
  padding-top: 14px;
}
.blog-card-foot time { font-weight: 400; }
.blog-card-read { color: #4DC9FF; font-weight: 600; letter-spacing: 0.5px; }

/* ── Blog post detail ───────────────────────────────── */
.blog-post {
  padding: 80px 0 60px;
  background: #060C1A;
  color: rgba(255, 255, 255, 0.85);
}
.blog-post-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.blog-post-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(77, 201, 255, 0.85);
  margin-bottom: 18px;
}
.blog-post-eyebrow span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.blog-post-eyebrow span::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(77, 201, 255, 0.4);
}
.blog-post-eyebrow span:last-child::after { display: none; }
.blog-post h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 22px;
}
.blog-post-lede {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(77, 201, 255, 0.1);
}

/* Article body — typography only, sources bodyHtml from data/posts.js */
.blog-article {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}
.blog-article > p,
.blog-article > ul,
.blog-article > ol {
  margin: 0 0 22px;
}
.blog-article h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin: 40px 0 16px;
  line-height: 1.3;
}
.blog-article h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 32px 0 12px;
  line-height: 1.35;
}
.blog-article ul,
.blog-article ol {
  padding-left: 24px;
}
.blog-article li {
  margin-bottom: 8px;
}
.blog-article a {
  color: #4DC9FF;
  text-decoration: underline;
  text-decoration-color: rgba(77, 201, 255, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.blog-article a:hover {
  text-decoration-color: rgba(77, 201, 255, 0.9);
}
.blog-article a[data-stub="1"] {
  color: rgba(255, 255, 255, 0.45);
  cursor: not-allowed;
  text-decoration-style: dotted;
}

/* ── Related templates strip ───────────────────────── */
.blog-related-templates {
  margin: 48px 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(77, 201, 255, 0.12);
}
.blog-related-templates-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(77, 201, 255, 0.85);
  margin-bottom: 16px;
}
.blog-related-templates-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.blog-related-templates-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(77, 201, 255, 0.25);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #4DC9FF;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.blog-related-templates-row a:hover {
  background: rgba(0, 102, 255, 0.18);
  border-color: rgba(77, 201, 255, 0.55);
}

/* ── FAQ block — blog post page ────────────────────── */
.blog-faq {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(77, 201, 255, 0.12);
}
.blog-faq-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(77, 201, 255, 0.85);
  margin-bottom: 20px;
}
.blog-faq-item {
  margin-bottom: 18px;
}
.blog-faq-q {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  font-size: 1.02rem;
}
.blog-faq-a {
  font-family: 'Inter', sans-serif;
  font-size: 0.96rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

/* ── Primary CTA strip ─────────────────────────────── */
.blog-cta {
  margin-top: 56px;
  padding: 36px 28px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(77, 201, 255, 0.08));
  border: 1px solid rgba(77, 201, 255, 0.3);
  border-radius: 16px;
  text-align: center;
}
.blog-cta p {
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 22px;
  line-height: 1.6;
}

/* ── Related posts rail (bottom of post page) ───────── */
.blog-related-posts {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid rgba(77, 201, 255, 0.12);
}
.blog-related-posts-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(77, 201, 255, 0.85);
  margin-bottom: 20px;
}
.blog-related-posts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 820px) {
  .blog-related-posts-row { grid-template-columns: 1fr; }
}
.blog-related-posts-row a {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(77, 201, 255, 0.12);
  border-radius: 12px;
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.blog-related-posts-row a:hover {
  border-color: rgba(77, 201, 255, 0.45);
  transform: translateY(-2px);
}
.blog-related-posts-row .r-eyebrow {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(77, 201, 255, 0.7);
  margin-bottom: 8px;
}
.blog-related-posts-row .r-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 8px;
}
.blog-related-posts-row .r-read {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: #4DC9FF;
  font-weight: 600;
}
