/* 
 * Lumina Vault - Ultra Sleek Gallery Store Styles
 * Crafted with Senior UI/UX Precision
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-main: #07090E;
  --bg-surface: #0E131F;
  --bg-surface-elevated: #151D2E;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --accent-indigo: #6366F1;
  --accent-violet: #8B5CF6;
  --accent-rose: #F43F5E;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-cyan: #06B6D4;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: #F3F4F6;
  overflow-x: hidden;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Mobile Safe Area & No-Scrollbar Utilities */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pb-safe {
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

/* Mobile Bottom Sheet Drawer */
.mobile-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  max-height: 82vh;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
}
@media (min-width: 640px) {
  .mobile-bottom-sheet {
    position: absolute;
    bottom: auto;
    top: 1rem;
    right: 1rem;
    left: auto;
    border-radius: 1rem;
    max-height: 85vh;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  }
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0B0E17;
}
::-webkit-scrollbar-thumb {
  background: #1F293D;
  border-radius: 9999px;
  border: 2px solid #0B0E17;
}
::-webkit-scrollbar-thumb:hover {
  background: #374151;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(14, 19, 31, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
}

.glass-dropdown {
  background: rgba(18, 24, 38, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.glass-modal {
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Card Glow & Hover Lift */
.media-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  will-change: transform;
}
.media-card:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.6), 0 0 20px -5px rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.35);
}

.media-card.selected {
  border-color: #6366F1 !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5), 0 15px 30px -8px rgba(99, 102, 241, 0.3);
}

/* Gradient Text */
.gradient-brand {
  background: linear-gradient(135deg, #A5B4FC 0%, #6366F1 50%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Range Slider */
input[type=range].slider-sleek {
  -webkit-appearance: none;
  background: #1F293D;
  height: 6px;
  border-radius: 9999px;
  outline: none;
  transition: background 0.2s;
}
input[type=range].slider-sleek:hover {
  background: #2D3748;
}
input[type=range].slider-sleek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #6366F1;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
  transition: transform 0.15s ease, background 0.15s ease;
}
input[type=range].slider-sleek::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #818CF8;
}

/* 500% Deep Zoom Viewer Viewport */
#zoomViewport {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
#zoomViewport.is-dragging {
  cursor: grabbing !important;
}

#zoomTarget {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  transition: transform 0.05s ease-out;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}
#zoomViewport.is-dragging #zoomTarget {
  transition: none !important;
}

#viewerImg, #viewerVideo {
  display: block;
  max-width: none;
  max-height: none;
  user-select: none;
  pointer-events: none;
}

/* Minimap / Radar Viewport */
.minimap-container {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 160px;
  height: 100px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 40;
  pointer-events: auto;
}
.minimap-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.65;
}
.minimap-box {
  position: absolute;
  border: 2px solid #6366F1;
  background: rgba(99, 102, 241, 0.2);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
  cursor: move;
  pointer-events: auto;
}

/* Loupe Magnifier Lens */
.loupe-lens {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 2px solid #818CF8;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.4), 0 10px 30px rgba(0,0,0,0.6);
  pointer-events: none;
  overflow: hidden;
  z-index: 50;
  display: none;
}

/* Inspection Grid Overlay */
.inspection-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
}

/* Masonry Layout */
.masonry-columns {
  column-count: 2;
  column-gap: 0.75rem;
}
@media (min-width: 768px) {
  .masonry-columns { column-count: 3; column-gap: 1.25rem; }
}
@media (min-width: 1280px) {
  .masonry-columns { column-count: 4; }
}
@media (min-width: 1600px) {
  .masonry-columns { column-count: 5; }
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .masonry-item { margin-bottom: 1.25rem; }
}

/* Dropzone Active Pulse */
.dropzone-active {
  border-color: #6366F1 !important;
  background: rgba(99, 102, 241, 0.08) !important;
  box-shadow: inset 0 0 30px rgba(99, 102, 241, 0.2);
}

/* Heart Favorite Animation */
@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.heart-pop {
  animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Floating Batch Dock Animation */
@keyframes slideUpDock {
  from { transform: translate(-50%, 100px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
.dock-enter {
  animation: slideUpDock 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Color Chips */
.batch-chip-indigo { background: rgba(99, 102, 241, 0.15); border-color: rgba(99, 102, 241, 0.3); color: #A5B4FC; }
.batch-chip-emerald { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); color: #6EE7B7; }
.batch-chip-rose { background: rgba(244, 63, 94, 0.15); border-color: rgba(244, 63, 94, 0.3); color: #FDA4AF; }
.batch-chip-amber { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); color: #FCD34D; }
.batch-chip-purple { background: rgba(168, 85, 247, 0.15); border-color: rgba(168, 85, 247, 0.3); color: #D8B4FE; }
.batch-chip-cyan { background: rgba(6, 182, 212, 0.15); border-color: rgba(6, 182, 212, 0.3); color: #67E8F9; }

