/* ==========================================
   WrenchUp — Blog Page
   ========================================== */

/* ---- TOPBAR NAV ---- */
.topbar-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.topbar-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.topbar-nav a:hover,
.topbar-nav a.active {
  color: var(--text-primary);
}

.topbar-book {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #0c0c14;
  background: var(--amber);
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.topbar-book:hover { opacity: 0.85; }

/* ---- HERO ---- */
.blog-hero {
  background: var(--bg-dark);
  padding: 140px 40px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  width: fit-content;
  letter-spacing: 0.02em;
}

.blog-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.05;
}

.blog-hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 600px;
}

/* ---- POSTS GRID ---- */
.blog-section {
  background: #fff;
  padding: 100px 40px;
}

.blog-container {
  max-width: 1100px;
  margin: 0 auto;
}

.blog-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.blog-section-header .section-label { color: var(--amber); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card, 16px);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  border-color: rgba(245,158,11,0.4);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.blog-card-meta {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--amber);
}

.blog-card-meta time {
  color: var(--amber);
}

.blog-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
  transition: color 0.2s;
}

.blog-card-link:hover .blog-card-title { color: var(--amber); }

.blog-card-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 620px;
}

.blog-card-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #0c0c14;
  background: var(--amber);
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.blog-card-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ---- CTA ---- */
.blog-cta-section {
  background: var(--bg-section);
  padding: 100px 40px;
  text-align: center;
}

.blog-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.blog-cta-section h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 16px;
}

.blog-cta-section p {
  font-size: 17px;
  color: #6b6b7a;
  line-height: 1.65;
  margin-bottom: 36px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .topbar { padding: 14px 20px; }
  .topbar-nav { display: none; }

  .blog-hero { padding: 120px 20px 64px; }

  .blog-section { padding: 64px 20px; }
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .blog-card { padding: 24px; }

  .blog-cta-section { padding: 64px 20px; }
}

@media (max-width: 600px) {
  .blog-card-title { font-size: 19px; }
}
