/* Universal Screenshot Click-to-Toggle Preview - Click to expand, click again to close */

/* Modal Overlay */
#image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
}

#image-modal.active {
  display: flex;
}

#modal-img,
#modal-video {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.5);
  pointer-events: none;
}

#modal-video {
  max-width: 85vw;
}

/* Animation for smooth transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#image-modal.active #modal-img,
#image-modal.active #modal-video {
  animation: fadeIn 0.2s ease-out;
}

/* App thumbnails - smaller fixed size for table */
.app-thumb {
  width: 90px !important;
  height: 60px !important;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid #1e1e2e;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: inline-block;
}

.app-thumb:hover {
  transform: translateY(-2px);
  border-color: #7c3aed;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

/* Hero preview thumbnails */
.hero-preview {
  width: 45vw !important;
  max-width: 500px !important;
  height: 55vh !important;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid #1e1e2e;
  transition: all 0.2s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-preview:hover {
  border-color: #7c3aed;
  box-shadow: 0 24px 48px rgba(124, 58, 237, 0.3);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .thumbnail {
    width: 150px;
  }

  #image-modal {
    padding: 1rem;
  }
}
