/**
 * Screenshot Lightbox Styles
 * Version: 1.0.0
 */

.screenshot-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screenshot-lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox-container {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 95vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #111;
  z-index: 10001;
}

.lightbox-close:hover {
  background: #fff;
  transform: scale(1.1);
}

.lightbox-close:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .lightbox-close {
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
  }
  
  .lightbox-image {
    max-height: 90vh;
  }
}

/* Prevent body scroll when lightbox is open */
body:has(.screenshot-lightbox.active) {
  overflow: hidden;
}

/* Add zoom cursor to screenshots */
#how .screenshot-image,
.steps-container .screenshot-image {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

#how .screenshot-image:hover,
.steps-container .screenshot-image:hover {
  transform: scale(1.02);
}

#how .screenshot-image:focus,
.steps-container .screenshot-image:focus {
  outline: 2px solid var(--primary, #6366F1);
  outline-offset: 4px;
  border-radius: 12px;
}
