/* ============================================
   Blog Card — Shimmer Hover
   ============================================ */

.blog-card__shimmer {
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 300% 300%;
  background-position: 100% 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.blog-card:hover .blog-card__shimmer {
  opacity: 1;
  animation: blog-shimmer 1.5s ease-in-out infinite;
}

@keyframes blog-shimmer {
  0% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card:hover .blog-card__shimmer {
    animation: none;
    opacity: 0;
  }
}

/* ============================================
   Blog Post Content — Rich Text Styling
   ============================================ */

.blog-content {
  color: #1a1a2e;
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Headings */
.blog-content h1 {
  font-family: "Meyer", sans-serif;
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #12093a;
}

.blog-content h2 {
  font-family: "Meyer", sans-serif;
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 600;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: #12093a;
}

.blog-content h3 {
  font-family: "Meyer", sans-serif;
  font-size: 1.375rem;
  line-height: 1.4;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #12093a;
}

.blog-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: #12093a;
}

/* First heading shouldn't have top margin */
.blog-content > h1:first-child,
.blog-content > h2:first-child,
.blog-content > h3:first-child,
.blog-content > h4:first-child {
  margin-top: 0;
}

/* Paragraphs */
.blog-content p {
  margin-bottom: 1.25rem;
}

.blog-content p:last-child {
  margin-bottom: 0;
}

/* Links */
.blog-content a {
  color: #413a61;
  text-decoration: underline;
  text-decoration-color: #413a6166;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.blog-content a:hover {
  text-decoration-color: #413a61;
}

/* Bold / Italic */
.blog-content strong {
  font-weight: 600;
  color: #12093a;
}

/* Lists */
.blog-content ul {
  list-style: disc;
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
}

.blog-content ol {
  list-style: decimal;
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.blog-content li::marker {
  color: #413a61;
}

/* Nested lists */
.blog-content li > ul,
.blog-content li > ol {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Blockquotes */
.blog-content blockquote {
  border-left: 4px solid #281F70;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #f8f7fc;
  border-radius: 0 12px 12px 0;
  color: #444955;
  font-style: italic;
}

.blog-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Code — inline */
.blog-content code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: #f0eef5;
  color: #413a61;
  padding: 0.15em 0.4em;
  border-radius: 6px;
}

/* Code — blocks */
.blog-content pre {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: #0e0539;
  color: #e0ddf0;
  border-radius: 16px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
}

.blog-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* Horizontal rule */
.blog-content hr {
  border: none;
  border-top: 1px solid #e0ddf0;
  margin: 2.5rem 0;
}

/* Images within content */
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 1.5rem 0;
}

.blog-content figure {
  margin: 1.5rem 0;
}

.blog-content figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #696d77;
  margin-top: 0.5rem;
}

/* Tables */
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.blog-content th {
  text-align: left;
  font-weight: 600;
  color: #12093a;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e0ddf0;
}

.blog-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0eef5;
}

.blog-content tr:last-child td {
  border-bottom: none;
}

/* ActionText attachments */
.blog-content .attachment {
  margin: 1.5rem 0;
}

.blog-content .attachment img {
  border-radius: 16px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .blog-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  .blog-content h1 {
    font-size: 1.75rem;
  }

  .blog-content h2 {
    font-size: 1.5rem;
  }

  .blog-content h3 {
    font-size: 1.25rem;
  }

  .blog-content pre {
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.8125rem;
  }

  .blog-content blockquote {
    padding: 0.75rem 1rem;
  }
}
