/* ==========================================================================
   Double A Window Tint — Blog Stylesheet
   Companion to styles.css. Uses the site's actual CSS custom properties,
   nav markup, and section patterns (section-label / red-bar / breadcrumb)
   so the blog reads as part of the same site, not a bolted-on section.
   ========================================================================== */

:root {
  --red: #cc0000;
  --black: #0a0a0a;
  --dark: #0f0f0f;
  --mid: #111111;
  --silver: #aaaaaa;
  --white: #f0f0f0;
}

.blog-body {
  background: var(--black);
  color: var(--white);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.blog-body a { color: inherit; text-decoration: none; }

/* ---- Breadcrumb (matches site pattern) ---- */
.breadcrumb {
  padding: 16px 32px 0;
  font-size: 14px;
  color: #888;
}
.breadcrumb a:hover { color: var(--red); }

/* ---- Section label / red-bar pattern used site-wide ---- */
.section-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 8px;
}
.red-bar {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 10px 0 24px;
}

/* ---- Blog banner ---- */
.blog-banner {
  padding: 56px 32px 40px;
  text-align: center;
}
.blog-banner .red-bar { margin: 14px auto 20px; }
.blog-banner h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0;
  letter-spacing: 0.5px;
}
.blog-banner h1 em { font-style: normal; color: var(--red); }
.blog-banner p {
  color: var(--silver);
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
}

/* ---- Post grid ---- */
.post-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 32px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.post-card {
  background: var(--mid);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--red); }

.post-card .thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--dark), #000);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-card .post-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.post-card .category {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.post-card h2 { font-size: 1.1rem; margin: 0; line-height: 1.3; }
.post-card .excerpt { color: var(--silver); font-size: 14px; margin: 0; flex: 1; }
.post-card .meta {
  font-size: 12px;
  color: #777;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  margin-top: 4px;
}
.post-card .read-more { color: var(--red); font-weight: 700; font-size: 13px; text-transform: uppercase; }

.post-grid .empty-state, .post-grid .error-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--silver);
  padding: 40px 0;
}

/* ---- Single post ---- */
.post-article { max-width: 760px; margin: 0 auto; padding: 40px 32px 80px; }
.post-article h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 10px 0 14px; line-height: 1.2; }
.post-article .meta {
  color: var(--silver);
  font-size: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}
.post-article .featured-image {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  margin: 24px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.post-article .featured-image img { width: 100%; height: auto; display: block; }
.post-article .featured-caption { font-size: 13px; color: #777; margin: 8px 0 32px; font-style: italic; }

.post-article .post-body h2 { font-size: 1.3rem; margin: 34px 0 12px; color: #fff; }
.post-article .post-body h3 { font-size: 1.05rem; margin: 24px 0 10px; color: #fff; }
.post-article .post-body p { color: #ccc; margin: 0 0 16px; }
.post-article .post-body ul,
.post-article .post-body ol { color: #ccc; margin: 0 0 16px; padding-left: 22px; }
.post-article .post-body li { margin-bottom: 6px; }
.post-article .post-body strong { color: #fff; }

.post-cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--mid);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--red);
  border-radius: 4px;
  text-align: center;
}
.post-cta h3 { margin: 0 0 8px; }
.post-cta p { color: var(--silver); margin: 0 0 18px; }

/* ---- Buttons (matches site's btn-primary pattern) ---- */
.btn-primary {
  background: var(--red);
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
  transition: background 0.2s ease;
}
.btn-primary:hover { background: #a30000; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 32px 24px;
  color: var(--silver);
  font-size: 14px;
}
.site-footer .footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.site-footer h4 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  margin: 0 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--red); }
.site-footer .bottom-bar {
  max-width: 1120px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
}
