/* styles.css - Custom styles for VBGallery */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #10b981;
  --error: #ef4444;
  --border: #e5e7eb;
  --selection: #3b82f6;
}

/* Auth Screen */
#auth-screen {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Hero Category Chips */
.category-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.category-btn.active {
  background: #fff;
  color: #6b46c1;
  border-color: #fff;
}

/* Header Scroll State */
#gallery-header.scrolled {
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Gallery Item */
.gallery-item {
  transition: all 0.3s ease;
}

.gallery-item.selected {
  outline: 3px solid var(--selection);
  outline-offset: -3px;
  box-shadow: 0 0 0 3px var(--selection);
  transform: scale(0.97);
}

.gallery-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item.selected:hover {
  transform: scale(0.97);
}

/* Image Hover Overlay */
.image-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .image-overlay {
  opacity: 1;
}

/* Image hover zoom */
.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

/* Canvas Items */
.canvas-item {
  cursor: move;
  user-select: none;
}

.canvas-item:hover .canvas-item-delete {
  opacity: 1 !important;
}

.canvas-item img {
  pointer-events: none;
}

/* A4 Canvas */
#a4-canvas {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

/* Tray Items */
.tray-item {
  transition: all 0.2s ease;
}

.tray-item:hover {
  transform: scale(1.05);
}

/* Notification */
#notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Lazy image placeholder */
.lazy {
  background: #f3f4f6;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  #a4-canvas {
    max-width: 100%;
  }

  .tray-item {
    width: 60px;
    height: 60px;
  }
}
