/* ============================================
   MARKET IMAGE POPUP
   ============================================ */

/* Overlay */
.market-image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  backdrop-filter: blur(4px);
  padding: 20px;
}

.market-image-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Image Container */
.market-image-container {
  position: relative;
  max-width: 95%;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Image */
.market-image-popup-img {
  max-width: 100%;
  max-height: 95vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 2px solid #e2a301;
}

/* Close Button */
.market-image-close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background: linear-gradient(90deg, #8d0a00 0%, #885100 100%);
  border: 2px solid #e2a301;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #ffd500;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.market-image-close-btn:hover {
  transform: rotate(90deg) scale(1.1);
  background: linear-gradient(90deg, #a30c00 0%, #9a5e00 100%);
  color: #fff;
}

/* Instructions Text */
.market-image-instructions {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-primary);
  font-size: 14px;
  color: #ffd500;
  text-align: center;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .market-image-container {
    max-width: 100%;
  }

  .market-image-popup-img {
    max-height: 85vh;
    border-radius: 8px;
  }

  .market-image-close-btn {
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .market-image-instructions {
    bottom: -50px;
    font-size: 12px;
    white-space: normal;
    max-width: 90%;
  }
}

