/**
 * Lightbox and zoom styles for mermaid diagrams.
 */

/* -- Inline diagrams -- */
.mermaid {
  cursor: zoom-in;
}

/* -- Lightbox overlay -- */
.mermaid-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(30, 30, 30, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* SVG inside the lightbox */
.mermaid-lightbox-svg {
  max-width: 90%;
  max-height: 90%;
  cursor: grab;
  transform-origin: center;
  transition: transform 0.1s ease-out;
}

.mermaid-lightbox-svg.is-dragging {
  cursor: grabbing;
}

.mermaid-lightbox-overlay svg {
  max-width: none !important;
  max-height: none !important;
  width: 90vw;
  height: 90vh;
  object-fit: contain;
}

/* -- Close button -- */
.mermaid-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mermaid-lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: rotate(90deg);
}
