/**
 * Strip Zoom - Glassmorphic Controls Stylesheet
 * October Gallery - octobergallery.co.uk
 * 
 * Styles for the zoom/pan enhancement to Strip lightbox
 * Note: These styles are also injected by strip-zoom.js automatically
 *       Include this file separately if you want to customize or override
 */

/* ==================== CONTROL BAR ==================== */
.strip-zoom-controls {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  
  /* Glassmorphism effect */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  
  z-index: 100;
  transition: opacity 0.2s ease;
}

/* Position variants */
.strip-zoom-controls-bottom-right {
  bottom: 20px;
  right: 20px;
}

.strip-zoom-controls-bottom-left {
  bottom: 20px;
  left: 20px;
}

.strip-zoom-controls-top-right {
  top: 20px;
  right: 20px;
}

.strip-zoom-controls-top-left {
  top: 20px;
  left: 20px;
}

/* ==================== BUTTONS ==================== */
.strip-zoom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.strip-zoom-btn:hover {
  transform: scale(1.1);
  background: #fff;
}

.strip-zoom-btn:active {
  transform: scale(0.95);
}

.strip-zoom-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.strip-zoom-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: none;
}

.strip-zoom-btn svg {
  display: block;
}

/* Button-specific styling */
.strip-zoom-in {}
.strip-zoom-out {}
.strip-zoom-reset {}

/* ==================== ZOOM LEVEL INDICATOR ==================== */
.strip-zoom-level {
  min-width: 48px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
  padding: 0 4px;
}

/* ==================== IMAGE STATES ==================== */
.strip-zoom-enabled {
  will-change: transform;
  transform-origin: center center;
}

.strip-zoom-dragging {
  cursor: grabbing !important;
}

/* ==================== MOBILE ADJUSTMENTS ==================== */
@media (max-width: 768px) {
  .strip-zoom-controls {
    gap: 8px;
    padding: 10px 14px;
  }
  
  .strip-zoom-btn {
    width: 44px;
    height: 44px;
  }
  
  .strip-zoom-level {
    font-size: 14px;
    min-width: 54px;
  }
  
  /* Move up to avoid Strip info bar */
  .strip-zoom-controls-bottom-right,
  .strip-zoom-controls-bottom-left {
    bottom: 80px;
  }
}

/* Small screens - more compact */
@media (max-width: 480px) {
  .strip-zoom-controls {
    gap: 4px;
    padding: 6px 10px;
  }
  
  .strip-zoom-btn {
    width: 40px;
    height: 40px;
  }
  
  .strip-zoom-level {
    font-size: 12px;
    min-width: 42px;
  }
}

/* ==================== STRIP INTEGRATION ==================== */
/* Hide controls during Strip transitions */
.strp-opening .strip-zoom-controls,
.strp-closing .strip-zoom-controls {
  opacity: 0;
  pointer-events: none;
}

/* Adjust for Strip info bar at bottom */
.strp-page.strp-has-position .strip-zoom-controls-bottom-right,
.strp-page.strp-has-position .strip-zoom-controls-bottom-left {
  bottom: 80px;
}

/* Ensure controls don't interfere with Strip navigation */
.strip-zoom-controls {
  pointer-events: auto;
}

/* ==================== DARK THEME VARIANT ==================== */
/* Add class 'strip-zoom-dark' to .strp-container for dark theme */
.strip-zoom-dark .strip-zoom-controls {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.15);
}

.strip-zoom-dark .strip-zoom-btn {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.strip-zoom-dark .strip-zoom-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

.strip-zoom-dark .strip-zoom-level {
  color: rgba(255, 255, 255, 0.9);
}

/* ==================== OCTOBER GALLERY RED ACCENT ==================== */
/* Add class 'strip-zoom-og' for OG red accent */
.strip-zoom-og .strip-zoom-btn:hover {
  background: #E41E33;
  color: #fff;
}

.strip-zoom-og .strip-zoom-btn:active {
  background: #c41929;
}
