/* ========================================
   BLOG CSS — Nicholas Lee / nslegal-ip.com
   Blog listing page + individual post styles.
   ======================================== */

/* ========================================
   BLOG LISTING PAGE
   ======================================== */
.blog-hero {
  padding-top: 120px;
  padding-bottom: 48px;
}

.blog-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.blog-hero p {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 560px;
}

/* Category filters */
.blog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.filter-btn {
  padding: 8px 18px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--white);
  border-color: var(--violet);
  background: rgba(98, 60, 234, 0.08);
}

/* Post grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: var(--section-pad);
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.post-card .post-category {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 16px;
}

.post-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 12px;
}

.post-card h2 a {
  transition: color 0.2s ease;
}

.post-card h2 a:hover {
  color: var(--violet-light);
}

.post-card .post-excerpt {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.post-card .post-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-card .post-meta time {
  color: var(--text-muted);
}

.post-card .read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--violet-light);
  transition: color 0.2s ease;
}

.post-card .read-more:hover {
  color: var(--white);
}

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

/* ========================================
   INDIVIDUAL BLOG POST
   ======================================== */
.post-header {
  padding-top: 120px;
  padding-bottom: 40px;
  max-width: 720px;
  margin: 0 auto;
}

.post-header .post-category {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 20px;
}

.post-header h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.post-header .post-meta {
  font-size: 15px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
}

.post-header .post-meta .author {
  font-weight: 500;
  color: var(--text);
}

/* Article body */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: var(--section-pad);
}

.post-body h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-top: 48px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.post-body h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-top: 36px;
  margin-bottom: 16px;
  line-height: 1.35;
}

.post-body p {
  font-size: 18px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 24px;
}

.post-body ul,
.post-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.post-body li {
  font-size: 18px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 8px;
}

.post-body strong {
  color: var(--white);
  font-weight: 600;
}

.post-body em {
  color: var(--text-secondary);
}

.post-body a {
  color: var(--violet-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.post-body a:hover {
  color: var(--white);
}

.post-body blockquote {
  border-left: 3px solid var(--violet);
  padding: 16px 24px;
  margin: 32px 0;
  background: rgba(98, 60, 234, 0.04);
  border-radius: 0 8px 8px 0;
}

.post-body blockquote p {
  font-size: 19px;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.post-body hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* CTA card at bottom of every post */
.post-cta {
  max-width: 720px;
  margin: 0 auto 64px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}

.post-cta h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.post-cta p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Back to blog link */
.post-nav {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.post-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.post-nav a:hover {
  color: var(--violet-light);
}

/* Attorney advertising disclaimer */
.post-disclaimer {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 48px;
  font-size: 12px;
  font-style: italic;
  color: #606060;
}

/* ========================================
   HOMEPAGE "LATEST INSIGHTS" SECTION
   ======================================== */
.insights {
  padding: var(--section-pad) 0;
  position: relative;
}

.insights::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.insights-grid .post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.insights-grid .post-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.insights-more {
  text-align: center;
}

@media (max-width: 900px) {
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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