/* Shared styles for blog/case study detail pages */

.prose-article h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1b2f45;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.prose-article h2:first-child {
  margin-top: 0;
}

.prose-article h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1b2f45;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.prose-article p {
  color: #374151;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.prose-article ul,
.prose-article ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose-article ul li,
.prose-article ol li {
  color: #374151;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.prose-article ul li { list-style: disc; }
.prose-article ol li { list-style: decimal; }

.prose-article strong { color: #1b2f45; font-weight: 600; }

.prose-article a {
  color: #2aa5df;
  text-decoration: underline;
  text-decoration-color: rgba(215, 192, 27, 0.4);
  text-underline-offset: 2px;
  font-weight: 500;
}

.prose-article a:hover {
  color: #1b2f45;
}

.prose-article code {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #1b2f45;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875em;
}

.prose-article pre {
  background: #0f1b2d;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(15, 27, 45, 0.15);
}

.prose-article pre code {
  background: transparent;
  border: none;
  color: #e8d020;
  padding: 0;
  font-size: 0.85em;
  line-height: 1.6;
}

/* Code snippet component */
.code-snippet {
  margin: 1.75rem 0;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #0b1424;
  box-shadow: 0 10px 30px rgba(15, 27, 45, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.code-snippet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: linear-gradient(180deg, #16243a 0%, #11192b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.code-snippet__dots {
  display: inline-flex;
  gap: 0.4rem;
  margin-right: 0.85rem;
}
.code-snippet__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  display: inline-block;
}
.code-snippet__dot--red { background: #ff5f57; }
.code-snippet__dot--yellow { background: #febc2e; }
.code-snippet__dot--green { background: #28c840; }
.code-snippet__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
}
.code-snippet__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(42, 165, 223, 0.15);
  border: 1px solid rgba(42, 165, 223, 0.3);
  color: #7dd3fc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.code-snippet__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.code-snippet__copy:hover {
  background: rgba(215, 192, 27, 0.12);
  border-color: rgba(215, 192, 27, 0.35);
  color: #e8d020;
}
.code-snippet__copy.copied {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}
.code-snippet pre {
  background: transparent;
  margin: 0;
  padding: 1.1rem 1.25rem 1.25rem;
  border-radius: 0;
  box-shadow: none;
  overflow-x: auto;
}
.code-snippet pre code {
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.65;
}

/* Terminal-style line for one-off shell commands */
.terminal-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  background: #0b1424;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.6rem;
  margin: 0.85rem 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: #e2e8f0;
  box-shadow: 0 4px 18px rgba(15, 27, 45, 0.18);
}
.terminal-line::before {
  content: '$';
  color: #d7c01b;
  font-weight: 700;
}

/* Inline image figure for prose articles */
.blog-figure {
  margin: 2rem 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 27, 45, 0.18);
  border: 1px solid rgba(15, 27, 45, 0.06);
  background: #ffffff;
}
.blog-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.blog-figure figcaption {
  padding: 0.85rem 1.15rem;
  background: #f8fafc;
  color: #475569;
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  font-style: italic;
}

.prose-article blockquote {
  border-left: 4px solid #d7c01b;
  background: #fef9e7;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  color: #1b2f45;
  font-style: italic;
}

/* Table of Contents */
.toc-item {
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
  text-decoration: none;
}

.toc-item.active {
  color: #1b2f45;
  font-weight: 600;
  border-left-color: #d7c01b;
}

.toc-item:hover {
  color: #1b2f45;
}

/* Tag chips */
.tag-chip {
  transition: all 0.2s ease;
}

.tag-chip:hover {
  background: rgba(215, 192, 27, 0.15);
  border-color: rgba(215, 192, 27, 0.5);
  color: #d7c01b;
}
