/* ── Shortcode block styles ──────────────────────────────────────────
   All classes prefixed sc- to avoid collisions.
   Mobile-first: base styles target small screens, media queries add desktop enhancements.
   ──────────────────────────────────────────────────────────────────── */

/* ── Sized Image ───────────────────────────────────────────────────── */
.sc-image { margin: 1.5rem 0; }
.sc-image img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
}
.sc-image--rounded img { border-radius: 12px; }
.sc-image__caption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-family: 'IBM Plex Mono', monospace;
  color: rgba(232,236,255,0.45);
  text-align: center;
}
.sc-image--center { text-align: center; }
.sc-image--left { text-align: left; }
.sc-image--right { text-align: right; }

@media (min-width: 761px) {
  .sc-image--small { max-width: 320px; }
  .sc-image--medium { max-width: 520px; }
  .sc-image--center { margin-left: auto; margin-right: auto; }
  .sc-image--right { margin-left: auto; margin-right: 0; }
}

/* ── Embeds (YouTube, Spotify) ─────────────────────────────────────── */
.sc-embed { margin: 1.5rem 0; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.07); }
.sc-embed iframe { display: block; width: 100%; border: none; }
.sc-embed--youtube { aspect-ratio: 16/9; }
.sc-embed--youtube iframe { height: 100%; }
.sc-embed--spotify iframe { width: 100%; }

/* ── Callout Box ───────────────────────────────────────────────────── */
.sc-callout {
  display: flex;
  gap: 0.85rem;
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem;
  border-radius: 8px;
  border-left: 3px solid;
}
.sc-callout--info {
  border-color: #55d9ff;
  background: rgba(85,217,255,0.06);
  color: rgba(232,236,255,0.85);
}
.sc-callout--info .sc-callout__icon { color: #55d9ff; }

.sc-callout--warning {
  border-color: #ffd700;
  background: rgba(255,215,0,0.06);
  color: rgba(232,236,255,0.85);
}
.sc-callout--warning .sc-callout__icon { color: #ffd700; }

.sc-callout--revelation {
  border-color: #935bff;
  background: rgba(147,91,255,0.06);
  color: rgba(232,236,255,0.85);
}
.sc-callout--revelation .sc-callout__icon { color: #935bff; }

.sc-callout--quote {
  border-color: #50c878;
  background: rgba(80,200,120,0.06);
  color: rgba(232,236,255,0.85);
}
.sc-callout--quote .sc-callout__icon { color: #50c878; }

.sc-callout__icon { flex-shrink: 0; padding-top: 0.1rem; }
.sc-callout__title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: rgba(232,236,255,0.95);
}
.sc-callout__body {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(232,236,255,0.72);
}

/* ── Pull Quote ────────────────────────────────────────────────────── */
.sc-pullquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2.5rem;
  border: none;
  border-left: 3px solid #50c878;
  background: rgba(80,200,120,0.04);
  border-radius: 0 8px 8px 0;
}
.sc-pullquote::before {
  content: '\201C';
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: 3rem;
  line-height: 1;
  color: rgba(80,200,120,0.25);
  font-family: Georgia, serif;
}
.sc-pullquote__text {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: rgba(232,236,255,0.88);
  margin: 0;
}
.sc-pullquote__cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-style: normal;
  font-family: 'IBM Plex Mono', monospace;
  color: rgba(80,200,120,0.7);
  letter-spacing: 0.06em;
}

/* ── Pull Quote accent variants ────────────────────────────────────── */
/* Default (emerald) is already in the base .sc-pullquote rule */
.sc-pullquote--violet {
  border-left-color: #935bff;
  background: rgba(147,91,255,0.04);
}
.sc-pullquote--violet::before { color: rgba(147,91,255,0.25); }
.sc-pullquote--violet .sc-pullquote__cite { color: rgba(147,91,255,0.7); }

.sc-pullquote--cyan {
  border-left-color: #55d9ff;
  background: rgba(85,217,255,0.04);
}
.sc-pullquote--cyan::before { color: rgba(85,217,255,0.25); }
.sc-pullquote--cyan .sc-pullquote__cite { color: rgba(85,217,255,0.7); }

.sc-pullquote--gold {
  border-left-color: #ffd700;
  background: rgba(255,215,0,0.04);
}
.sc-pullquote--gold::before { color: rgba(255,215,0,0.25); }
.sc-pullquote--gold .sc-pullquote__cite { color: rgba(255,215,0,0.7); }

/* ── Text + Image ──────────────────────────────────────────────────── */
.sc-textimage {
  display: flex;
  flex-direction: column;  /* mobile: stack */
  gap: 1.25rem;
  margin: 1.75rem 0;
  align-items: var(--sc-valign, flex-start);
}
.sc-textimage__image {
  width: 100%;
  flex-shrink: 0;
}
.sc-textimage__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  display: block;
}
.sc-textimage__text {
  flex: 1;
  color: rgba(232,236,255,0.82);
  line-height: 1.8;
  font-size: 1rem;
}
.sc-textimage__text p { margin: 0 0 1rem; }
.sc-textimage__text p:last-child { margin-bottom: 0; }
.sc-textimage__text a { color: #50c878; }
.sc-textimage__text strong { color: rgba(232,236,255,0.95); font-weight: 700; }
.sc-textimage__text code {
  background: rgba(255,255,255,0.05);
  color: #55d9ff;
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88em;
}

@media (min-width: 761px) {
  .sc-textimage {
    flex-direction: row;           /* default: image first → LEFT */
    align-items: var(--sc-valign, flex-start);
  }
  .sc-textimage--right {
    flex-direction: row-reverse;   /* image last in visual order → RIGHT */
  }
  .sc-textimage__image {
    width: var(--sc-img-w, 40%);
    max-width: var(--sc-img-w, 40%);
  }
}

/* ── Accordion accent variants ─────────────────────────────────────── */
/* Default (violet) already defined in .sc-accordion base rule */
.sc-accordion--emerald {
  border-color: rgba(80,200,120,0.2);
  background: rgba(80,200,120,0.03);
}
.sc-accordion--emerald .sc-accordion__question::after { color: #50c878; }
.sc-accordion--emerald .sc-accordion__question:hover  { background: rgba(80,200,120,0.06); }
.sc-accordion--emerald .sc-accordion__answer          { border-top-color: rgba(80,200,120,0.1); }

.sc-accordion--cyan {
  border-color: rgba(85,217,255,0.2);
  background: rgba(85,217,255,0.03);
}
.sc-accordion--cyan .sc-accordion__question::after { color: #55d9ff; }
.sc-accordion--cyan .sc-accordion__question:hover  { background: rgba(85,217,255,0.06); }
.sc-accordion--cyan .sc-accordion__answer          { border-top-color: rgba(85,217,255,0.1); }

.sc-accordion--gold {
  border-color: rgba(255,215,0,0.2);
  background: rgba(255,215,0,0.03);
}
.sc-accordion--gold .sc-accordion__question::after { color: #ffd700; }
.sc-accordion--gold .sc-accordion__question:hover  { background: rgba(255,215,0,0.06); }
.sc-accordion--gold .sc-accordion__answer          { border-top-color: rgba(255,215,0,0.1); }

/* ── Divider ───────────────────────────────────────────────────────── */
.sc-divider {
  border: none;
  margin: 2rem 0;
  height: 1px;
}
.sc-divider--simple {
  background: rgba(232,236,255,0.1);
}
.sc-divider--gradient {
  height: 2px;
  background: linear-gradient(90deg, transparent, #50c878, #935bff, #55d9ff, transparent);
}
.sc-divider--dots {
  height: auto;
  background: none;
  text-align: center;
  line-height: 1;
}
.sc-divider--dots::before {
  content: '· · · · ·';
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  color: rgba(147,91,255,0.4);
}
.sc-divider--cosmic {
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, rgba(80,200,120,0.3), rgba(147,91,255,0.5), rgba(85,217,255,0.3), transparent 95%);
  box-shadow: 0 0 12px rgba(147,91,255,0.2), 0 0 4px rgba(80,200,120,0.15);
  border-radius: 2px;
}

/* ── Button / CTA ──────────────────────────────────────────────────── */
.sc-button-wrap { margin: 1.5rem 0; text-align: center; }
.sc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.6rem;
  border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}
.sc-button--primary {
  background: #50c878;
  color: #050312;
  border: 1px solid #50c878;
  font-weight: 700;
}
.sc-button--primary:hover {
  background: #5dd88a;
  box-shadow: 0 0 20px rgba(80,200,120,0.3);
}
.sc-button--secondary {
  background: #935bff;
  color: #050312;
  border: 1px solid #935bff;
  font-weight: 700;
}
.sc-button--secondary:hover {
  background: #a675ff;
  box-shadow: 0 0 20px rgba(147,91,255,0.3);
}
.sc-button--outline {
  background: transparent;
  color: rgba(232,236,255,0.85);
  border: 1px solid rgba(232,236,255,0.2);
}
.sc-button--outline:hover {
  border-color: #50c878;
  color: #50c878;
  box-shadow: 0 0 16px rgba(80,200,120,0.15);
}

/* ── Two Columns ───────────────────────────────────────────────────── */
.sc-columns {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.sc-columns__left, .sc-columns__right {
  flex: 1;
  line-height: 1.7;
  color: rgba(232,236,255,0.80);
}
@media (min-width: 761px) {
  .sc-columns { flex-direction: row; gap: 2rem; }
}

/* ── Accordion / FAQ ───────────────────────────────────────────────── */
.sc-accordion {
  margin: 0.75rem 0;
  border: 1px solid rgba(147,91,255,0.15);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(147,91,255,0.03);
}
.sc-accordion__question {
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(232,236,255,0.90);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}
.sc-accordion__question::-webkit-details-marker { display: none; }
.sc-accordion__question::after {
  content: '+';
  font-size: 1.2rem;
  color: #935bff;
  transition: transform 0.25s;
}
.sc-accordion[open] .sc-accordion__question::after {
  transform: rotate(45deg);
}
.sc-accordion__question:hover {
  background: rgba(147,91,255,0.06);
}
.sc-accordion__answer {
  padding: 0 1.2rem 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(232,236,255,0.68);
  border-top: 1px solid rgba(147,91,255,0.1);
}

/* ── Featured badge ────────────────────────────────────────────────── */
.sc-featured-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.3);
  color: #ffd700;
  margin-bottom: 0.75rem;
}

/* ── Reading time ──────────────────────────────────────────────────── */
.sc-reading-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: rgba(232,236,255,0.35);
  letter-spacing: 0.08em;
}

/* ── Accent color tinting ──────────────────────────────────────────── */
.sc-accent--emerald { color: rgba(80,200,120,0.55); }
.sc-accent--violet { color: rgba(147,91,255,0.55); }
.sc-accent--cyan { color: rgba(85,217,255,0.55); }
.sc-accent--gold { color: rgba(255,215,0,0.55); }

/* ── Wiki related entries ──────────────────────────────────────────── */
.sc-related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(147,91,255,0.12);
}
.sc-related__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(147,91,255,0.5);
  margin-bottom: 0.75rem;
}
.sc-related__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sc-related__link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 5px;
  background: rgba(80,200,120,0.06);
  border: 1px solid rgba(80,200,120,0.18);
  color: #50c878;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.sc-related__link:hover {
  background: rgba(80,200,120,0.12);
  border-color: rgba(80,200,120,0.35);
}
