/* UI Components: Blockquotes, Code, Tables, Callouts */

/* ---- Blockquotes ---- */

.entry-content blockquote {
  border-left: 3px solid var(--doc-primary);
  background-color: var(--doc-surface);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 0 var(--doc-radius) var(--doc-radius) 0;
}

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

/* Callout variants via CSS classes (added via WP editor or shortcodes) */
.entry-content .callout-info {
  border-left-color: var(--doc-accent-blue);
  background-color: rgba(41, 170, 225, 0.06);
}

.entry-content .callout-warning {
  border-left-color: var(--doc-accent-orange);
  background-color: rgba(255, 120, 60, 0.06);
}

.entry-content .callout-danger {
  border-left-color: #d32f2f;
  background-color: rgba(211, 47, 47, 0.06);
}

.entry-content .callout-success {
  border-left-color: var(--doc-accent);
  background-color: rgba(102, 240, 160, 0.06);
}

/* ---- Inline Code ---- */

.entry-content code:not(pre code) {
  background-color: rgba(135, 131, 120, 0.15);
  border: none;
  border-radius: var(--doc-radius);
  padding: 0.15em 0.4em;
  font-size: 0.875em;
  font-family: var(--doc-font-mono);
  color: var(--doc-text);
}

/* ---- Code Blocks ---- */

.entry-content pre {
  background-color: var(--doc-primary-dark);
  border: none;
  border-radius: var(--doc-radius);
  margin: 1rem 0;
  padding: 1rem;
  overflow-x: auto;
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: #abb2bf;
  font-family: var(--doc-font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  border-radius: 0;
}

/* Syntax highlighting - One Dark inspired */
.entry-content pre .comment { color: #5c6370; font-style: italic; }
.entry-content pre .keyword { color: #c678dd; }
.entry-content pre .string { color: #98c379; }
.entry-content pre .number { color: #d19a66; }
.entry-content pre .function { color: #61afef; }
.entry-content pre .operator { color: #56b6c2; }

/* ---- Tables ---- */

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.entry-content table th {
  background-color: var(--doc-surface);
  color: var(--doc-text-muted);
  font-weight: 600;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--doc-border);
}

.entry-content table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--doc-border);
  vertical-align: top;
}

.entry-content table tbody tr:nth-child(even) {
  background-color: var(--doc-surface);
}

/* ---- Definition Lists ---- */

.entry-content dl {
  margin-bottom: 1rem;
}

.entry-content dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

.entry-content dd {
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ---- Keyboard Shortcuts ---- */

.entry-content kbd {
  display: inline-block;
  padding: 0.15em 0.4em;
  font-size: 0.8em;
  font-family: var(--doc-font-mono);
  background-color: var(--doc-surface);
  border: 1px solid var(--doc-border);
  border-radius: 3px;
  box-shadow: 0 1px 0 var(--doc-border);
}

/* ---- Abbreviations ---- */

.entry-content abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

/* ---- Alerts / Notices (wp-block-group variants) ---- */

.wp-block-group.is-style-info,
.wp-block-group.is-style-warning,
.wp-block-group.is-style-danger,
.wp-block-group.is-style-success {
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border-radius: var(--doc-radius);
  border-left: 3px solid;
}

.wp-block-group.is-style-info {
  border-left-color: var(--doc-accent-blue);
  background-color: rgba(41, 170, 225, 0.06);
}

.wp-block-group.is-style-warning {
  border-left-color: var(--doc-accent-orange);
  background-color: rgba(255, 120, 60, 0.06);
}

.wp-block-group.is-style-danger {
  border-left-color: #d32f2f;
  background-color: rgba(211, 47, 47, 0.06);
}

.wp-block-group.is-style-success {
  border-left-color: var(--doc-accent);
  background-color: rgba(102, 240, 160, 0.06);
}
