/* =========================================================
   blog.css — Blog index + blog post pages
   POCO NAPA AUTOPRO
   ========================================================= */

/* ===================== PAGE HERO ===================== */
.page-hero {
  position: relative;
  padding: 180px 0 100px;
  background: linear-gradient(160deg, rgba(6,13,46,0.92) 0%, rgba(10,18,64,0.80) 100%), url('images/shop.jpg') center 30% / cover no-repeat;
  overflow: hidden;
  text-align: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,13,46,0.55) 0%, rgba(6,13,46,0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.page-hero-content h1 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-hero-content p {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .page-hero { padding: 140px 0 72px; }
}

/* ===================== BLOG INDEX ===================== */
.blog-section {
  padding: 100px 0;
  background: var(--bg-base);
}

.blog-featured {
  margin-bottom: 64px;
}

/* --- Blog Card Base --- */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,199,44,0.25);
  box-shadow: var(--shadow);
}

/* --- Featured Card --- */
.blog-card--featured {
  display: flex;
  flex-direction: row;
  gap: 0;
  min-height: 420px;
}

.blog-card--featured .blog-card-image {
  flex: 1;
  min-height: 300px;
  background-size: cover;
  background-position: center;
}

.blog-card--featured .blog-card-body {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card--featured .blog-card-title {
  font-size: clamp(22px, 2.5vw, 28px);
}

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 0;
}

.blog-grid .blog-card-image {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.blog-grid .blog-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

/* --- Card Elements --- */
.blog-card-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(255,199,44,0.10);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.blog-card-title {
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #fff;
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-read-more {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* Stretched link — covers the entire card */
  position: static;
}
.blog-read-more::after {
  content: '';
  position: absolute;
  inset: 0;
}

.blog-read-more .arrow-icon {
  transition: transform 0.2s;
}

.blog-read-more:hover .arrow-icon {
  transform: translateX(4px);
}

/* --- Breakpoints --- */
@media (max-width: 1000px) {
  .blog-card--featured {
    flex-direction: column;
  }
  .blog-card--featured .blog-card-image {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-section {
    padding: 64px 0;
  }
}

/* ===================== BLOG POST ===================== */
.blog-post-section {
  padding: 80px 0;
  background: var(--bg-base);
}

.blog-post-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.50);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 48px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.blog-back-link:hover {
  color: var(--yellow);
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.blog-post-meta .blog-card-tag {
  margin-bottom: 0;
}

.blog-post-meta-info {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.50);
  flex-wrap: wrap;
}

/* --- Article Body --- */
.blog-post-body h2 {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  margin: 48px 0 16px;
  color: #fff;
  letter-spacing: -0.01em;
}

.blog-post-body p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.78);
  margin-bottom: 24px;
}

.blog-post-body ul,
.blog-post-body ol {
  margin: 0 0 24px 24px;
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  line-height: 1.8;
}

.blog-post-body li {
  margin-bottom: 10px;
}

.blog-photo {
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
}

.blog-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-photo figcaption {
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  line-height: 1.6;
}

/* --- Post CTA --- */
.blog-post-cta {
  margin-top: 64px;
  padding: 48px;
  background: rgba(255,199,44,0.08);
  border: 1px solid rgba(255,199,44,0.20);
  border-radius: var(--radius);
  text-align: center;
}

.blog-post-cta h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.blog-post-cta p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.btn-cta-yellow {
  display: inline-block;
  background: var(--yellow);
  color: #060D2E;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-cta-yellow:hover {
  opacity: 0.88;
}
