/* Blog base styles */
:root {
  --blog-bg: #f6f4ef;
  --blog-ink: #1b1b1b;
  --blog-accent: #0a6a4f;
  --blog-card: #ffffff;
  --blog-muted: #6a6a6a;
  --blog-border: #e2ded6;
}

body.blog-page {
  background: var(--blog-bg);
  color: var(--blog-ink);
}

/* Dark mode support */
.theme-dark body.blog-page,
body.dark-mode.blog-page {
  --blog-bg: #0b0f17;
  --blog-ink: #e7eef7;
  --blog-accent: #63e6c3;
  --blog-card: #111826;
  --blog-muted: #9aa7b6;
  --blog-border: rgba(255,255,255,0.12);
  background: var(--blog-bg);
  color: var(--blog-ink);
}

.blog-hero {
  padding: 48px 16px 24px;
  background: linear-gradient(135deg, #e7f3ee 0%, #f6f4ef 60%);
  border-bottom: 1px solid var(--blog-border);
}

.theme-dark .blog-hero,
body.dark-mode.blog-page .blog-hero {
  background: radial-gradient(circle at top left, rgba(37, 111, 159, 0.25), rgba(11, 15, 23, 0.9) 65%), linear-gradient(135deg, #0f1623 0%, #0b0f17 60%);
}

.blog-hero h1 {
  margin: 0 0 12px;
  font-size: 30px;
}

.blog-hero p {
  margin: 0;
  color: var(--blog-muted);
}

.blog-hero-cta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.laser-cta {
  position: relative;
  overflow: hidden;
}

.laser-cta::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  background: conic-gradient(from 0deg, #00c97d, #00a2ff, #7cff6b, #00c97d);
  filter: blur(8px);
  opacity: 0.85;
  z-index: -2;
  animation: laserSpin 3.6s linear infinite;
}

.laser-cta::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #00c97d 35%, transparent);
  box-shadow: 0 0 16px rgba(0, 201, 125, 0.35), 0 0 28px rgba(0, 162, 255, 0.25);
  z-index: -1;
}

@keyframes laserSpin {
  to {
    transform: rotate(360deg);
  }
}

.blog-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: start;
}

.blog-sidebar {
  position: sticky;
  top: calc(var(--header-size, 4rem) + 1rem);
}

.blog-panel {
  background: var(--blog-card);
  border: 1px solid var(--blog-border);
  border-radius: 16px;
  padding: 16px;
}

.theme-dark .blog-panel,
body.dark-mode.blog-page .blog-panel {
  box-shadow: 0 12px 30px rgba(3, 10, 24, 0.35);
}

.blog-panel h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.blog-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.blog-panel a {
  color: var(--blog-accent);
  text-decoration: none;
  font-weight: 700;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.blog-card {
  background: var(--blog-card);
  border: 1px solid var(--blog-border);
  border-radius: 16px;
  padding: 16px;
}

.theme-dark .blog-card,
body.dark-mode.blog-page .blog-card {
  box-shadow: 0 12px 30px rgba(3, 10, 24, 0.35);
}

.blog-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.blog-card p {
  margin: 0 0 12px;
  color: var(--blog-muted);
}

.blog-card a {
  color: var(--blog-accent);
  text-decoration: none;
  font-weight: 700;
}

.blog-list {
  display: grid;
  gap: 16px;
}

.blog-list article {
  background: var(--blog-card);
  border: 1px solid var(--blog-border);
  border-radius: 16px;
  padding: 16px;
}

.theme-dark .blog-list article,
body.dark-mode.blog-page .blog-list article {
  box-shadow: 0 12px 30px rgba(3, 10, 24, 0.35);
}

.blog-list h2 {
  margin-top: 0;
}

.blog-post-card {
  position: relative;
  overflow: hidden;
}

.blog-post-card::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  filter: blur(10px);
  opacity: 0.9;
  z-index: -2;
  animation: laserSpin 4.2s linear infinite;
}

.blog-post-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #00c97d 25%, transparent);
  z-index: -1;
}

.theme-dark .blog-post-card::after,
body.dark-mode.blog-page .blog-post-card::after {
  border: 1px solid rgba(255,255,255,0.08);
}

.blog-post-card.laser-blue::before {
  background: conic-gradient(from 0deg, #00a2ff, #3b6bff, #56e0ff, #00a2ff);
}

.blog-post-card.laser-red::before {
  background: conic-gradient(from 0deg, #ff3b30, #ff6b6b, #ff2d55, #ff3b30);
}

.blog-post-card.laser-blue::after {
  box-shadow: 0 0 16px rgba(0, 162, 255, 0.35), 0 0 28px rgba(0, 162, 255, 0.25);
}

.blog-post-card.laser-red::after {
  box-shadow: 0 0 16px rgba(255, 59, 48, 0.35), 0 0 28px rgba(255, 59, 48, 0.25);
}

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

  .blog-sidebar {
    position: static;
  }
}

.blog-post {
  background: var(--blog-card);
  border: 1px solid var(--blog-border);
  border-radius: 16px;
  padding: 24px;
  line-height: 1.95;
}

.blog-post h1 {
  margin-top: 0;
}

.blog-post h2 {
  margin-top: 24px;
}

.blog-post .post-meta {
  color: var(--blog-muted);
  font-size: 14px;
}

.blog-cta {
  margin: 24px 0;
  display: flex;
  justify-content: center;
}

.blog-cta p {
  margin: 0;
}

.blog-tags {
  margin-top: 16px;
  font-size: 14px;
  color: var(--blog-muted);
}

.blog-breadcrumbs {
  font-size: 14px;
  color: var(--blog-muted);
  margin-bottom: 12px;
}

.blog-breadcrumbs a {
  color: var(--blog-accent);
  text-decoration: none;
}
