/* Markdown-specific elements only */

/* Code blocks (triple backticks) - scoped to blog content */
.blog-post-content pre {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #2d3748;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

.blog-post-content pre code {
  background: none !important;
  color: #e2e8f0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Inline code (single backticks) - consistent with code blocks */
.blog-post-content code:not(pre code) {
  background-color: #2d3748;
  color: #e2e8f0;
  padding: 0.2rem 0.4rem;
  border-radius: 0.375rem;
  font-family: "IBM Plex Mono", 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  border: 1px solid rgba(226, 232, 240, 0.2);
  font-weight: 400;
}

/* Callouts - styled callout blocks for !!!info, !!!warning, etc. */
.blog-post-content .callout {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.blog-post-content .callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.blog-post-content .callout p {
  margin: 0;
  font-style: normal;
  color: var(--text);
  font-family: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
}

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

/* Info callout - blue */
.blog-post-content .callout-info {
  background-color: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.blog-post-content .callout-info::before {
  background-color: var(--accent-2);
}

/* Warning callout - yellow/orange */
.blog-post-content .callout-warning {
  background-color: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
}

.blog-post-content .callout-warning::before {
  background-color: var(--accent);
}

/* Tip callout - green */
.blog-post-content .callout-tip {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.blog-post-content .callout-tip::before {
  background-color: var(--accent-5);
}

/* Note callout - purple */
.blog-post-content .callout-note {
  background-color: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
}

.blog-post-content .callout-note::before {
  background-color: var(--accent-3);
}

/* Danger callout - red */
.blog-post-content .callout-danger {
  background-color: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.3);
}

.blog-post-content .callout-danger::before {
  background-color: var(--accent-4);
}

/* Caution callout - orange */
.blog-post-content .callout-caution {
  background-color: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

.blog-post-content .callout-caution::before {
  background-color: var(--accent-6);
}

/* Blockquotes (callouts) - styled to match website theme */
.blog-post-content blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent-2);
  background-color: var(--bg-card);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

.blog-post-content blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text);
  font-family: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
}

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

/* Details/Summary elements - scoped to blog content */
.blog-post-content details {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background-color: #f7fafc;
}

.blog-post-content summary {
  font-weight: 600;
  color: #2d3748;
  cursor: pointer;
  padding: 0.5rem;
  margin: -0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

.blog-post-content summary:hover {
  background-color: #edf2f7;
}

.blog-post-content details[open] summary {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0.5rem;
}

/* Tables - scoped to blog content */
.blog-post-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.blog-post-content th, 
.blog-post-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.blog-post-content th {
  background-color: #f7fafc;
  font-weight: 600;
  color: #2d3748;
}

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

/* Horizontal rule - scoped to blog content */
.blog-post-content hr {
  border: none;
  height: 2px;
  background-color: #e2e8f0;
  margin: 2rem 0;
}

/* Task lists - scoped to blog content */
.blog-post-content input[type="checkbox"] {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

/* Footnotes - scoped to blog content */
.blog-post-content .footnote-ref {
  font-size: 0.875rem;
  vertical-align: super;
  color: #3182ce;
  text-decoration: none;
}

.blog-post-content .footnote-ref:hover {
  text-decoration: underline;
}
