/* Google Sans font import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: background-color 0.2s, color 0.2s;
}

/* Dark theme (default) */
html.dark {
  color-scheme: dark;
}

html.dark body {
  background-color: #000000;
  color: #ffffff;
}

/* Light theme */
html.light {
  color-scheme: light;
}

html.light body {
  background-color: #ffffff;
  color: #0f172a;
}

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

html.dark ::-webkit-scrollbar-track {
  background: #18181b;
}

html.light ::-webkit-scrollbar-track {
  background: #f1f5f9;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}

html.light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Photo grid animations */
.photo-card {
  overflow: hidden;
  border-radius: 0.5rem;
  transition: transform 0.2s;
}

.photo-card:hover {
  transform: translateY(-2px);
}

.photo-card img {
  transition: transform 0.3s ease;
}

.photo-card:hover img {
  transform: scale(1.05);
}

/* Lightbox */
#lightbox {
  backdrop-filter: blur(10px);
  animation: fadeIn 0.2s;
}

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

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #18181b 25%, #27272a 50%, #18181b 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

html.light .skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Admin overlay */
.admin-overlay {
  transition: opacity 0.2s;
}

/* Drag and drop zone */
.drop-zone-active {
  border-color: #3b82f6 !important;
  background-color: rgba(59, 130, 246, 0.1);
}

/* Button transitions */
button {
  transition: all 0.2s;
}

button:active {
  transform: scale(0.98);
}

/* Tag badges */
.tag-badge {
  transition: background-color 0.2s;
}

.tag-badge:hover {
  filter: brightness(1.2);
}
