/* Blog post content styles (shared by all posts under blog/posts/) */

.blog-content {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #e2e8f0;
}

.blog-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.blog-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

.blog-content a {
  color: #d7b46a;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.blog-content a:hover {
  opacity: 0.8;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
}

.blog-content code {
  background: rgba(100, 116, 139, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.blog-content pre {
  background: rgba(15, 23, 42, 0.8);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-content blockquote {
  border-left: 4px solid #d7b46a;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #cbd5e1;
}

.blog-content strong {
  font-weight: 700;
  color: white;
}

.blog-content hr {
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  margin: 2.5rem 0;
}

/* GFM tables */
.blog-content .table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  -webkit-overflow-scrolling: touch;
}

.blog-content table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}

.blog-content th,
.blog-content td {
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

.blog-content th {
  background: rgba(15, 23, 42, 0.85);
  color: white;
  font-weight: 700;
}

.blog-content tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.35);
}

.blog-content tbody tr:hover {
  background: rgba(30, 41, 59, 0.55);
}

/* GFM task lists */
.blog-content ul:has(input[type='checkbox']) {
  list-style: none;
  padding-left: 0;
}

.blog-content li:has(> input[type='checkbox']) {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
}

.blog-content input[type='checkbox'] {
  margin-top: 0.35rem;
  width: 1rem;
  height: 1rem;
  accent-color: #d7b46a;
  flex-shrink: 0;
}

/* CTA block (injected from markdown placeholders) */
.cta-block {
  background: linear-gradient(135deg, rgba(215, 180, 106, 0.15), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(215, 180, 106, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.cta-block h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: white;
}

.cta-block p {
  margin-bottom: 1.5rem;
  color: #cbd5e1;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #f5e2a8 0%, #d7b46a 38%, #b8892e 100%);
  color: #020617;
  font-weight: 900;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow:
    0 4px 0 rgba(15, 23, 42, 0.35),
    0 8px 24px rgba(215, 180, 106, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

/* Override .blog-content link styles for CTA buttons */
.blog-content a.cta-button,
.blog-content .cta-button {
  color: #020617;
  text-decoration: none;
}

.blog-content a.cta-button:hover,
.blog-content .cta-button:hover {
  opacity: 1;
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 4px 0 rgba(15, 23, 42, 0.3),
    0 12px 32px rgba(215, 180, 106, 0.45);
}

.blog-content a.cta-button:focus-visible,
.blog-content .cta-button:focus-visible {
  outline: 2px solid #d7b46a;
  outline-offset: 3px;
}
