/**
 * image-viewer.css
 * AGENT #7 - TAP TO ENLARGE IMAGE VIEWER (November 14, 2025)
 * 
 * Full-screen glassmorphism modal for viewing images
 */

/* ========================================
   IMAGE VIEWER OVERLAY
======================================== */

.image-viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 9, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.image-viewer-overlay.active {
  opacity: 1;
}

/* ========================================
   IMAGE VIEWER CONTENT
======================================== */

.image-viewer-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

/* ========================================
   FULL SIZE IMAGE
======================================== */

.image-viewer-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
              0 0 1px rgba(85, 93, 255, 0.3);
  cursor: default;
  animation: imageZoomIn 0.3s ease;
}

@keyframes imageZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========================================
   PREVENT BODY SCROLL WHEN MODAL OPEN
======================================== */

body.image-viewer-open {
  overflow: hidden;
}

/* ========================================
   MOBILE RESPONSIVE (Tablets & Phones)
======================================== */

@media (max-width: 768px) {
  .image-viewer-img {
    max-width: 95vw;
    max-height: 85vh;
    border-radius: 8px;
  }

  .image-viewer-content {
    max-width: 95vw;
  }
}

/* ========================================
   SMALL PHONES (< 480px)
======================================== */

@media (max-width: 480px) {
  .image-viewer-img {
    border-radius: 6px;
  }
}

/* ========================================
   ACCESSIBILITY (Reduce Motion)
======================================== */

@media (prefers-reduced-motion: reduce) {
  .image-viewer-overlay {
    transition: none;
  }

  .image-viewer-img {
    animation: none;
  }
}

/* ========================================
   HIGH RESOLUTION DISPLAYS
======================================== */

@media (min-resolution: 2dppx) {
  .image-viewer-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

