/* AutoStock Engine - Strict Rubik & Rubik Black Typography Design System */
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --bg-main: #09090b;
  --bg-card: #121215;
  --bg-card-hover: #18181c;
  --bg-subtle: #1c1c21;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.2);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body, input, button, select, textarea, code, pre, kbd, samp {
  font-family: 'Rubik', sans-serif !important;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Rubik Black Utilities */
.rubik-black, .font-black {
  font-family: 'Rubik', sans-serif !important;
  font-weight: 900 !important;
}

.mono, .font-mono {
  font-family: 'Rubik', sans-serif !important;
  letter-spacing: -0.01em;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Glassmorphism Header */
.glass-header {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Dropzone Styling */
.dropzone-container {
  border: 2px dashed #27272a;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(18, 18, 21, 0.4);
}
.dropzone-container:hover, .dropzone-container.dragover {
  border-color: #71717a;
  background: rgba(24, 24, 28, 0.8);
  transform: scale(1.002);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  transition: all 0.2s ease;
}
.card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

/* Status Pills - High Contrast Dark Backgrounds for Photo Overlays */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: all 0.15s ease;
}
.pill-pending {
  background: rgba(18, 12, 3, 0.94);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.55);
}
.pill-processing {
  background: rgba(3, 16, 22, 0.94);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.55);
  animation: pulse-glow 2s infinite;
}
.pill-tagged {
  background: rgba(3, 18, 12, 0.94);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.55);
}
.pill-rejected {
  background: rgba(24, 5, 9, 0.94);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.55);
}
.pill-uploaded {
  background: rgba(5, 12, 26, 0.94);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.55);
}
.pill-editorial {
  background: rgba(22, 9, 34, 0.94) !important;
  color: #e9d5ff !important;
  border: 1px solid rgba(168, 85, 247, 0.6) !important;
}
.pill-neutral {
  background: rgba(15, 15, 18, 0.94);
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Keyword Chips */
.keyword-chip {
  display: inline-block;
  background: #1c1c21;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.keyword-chip:hover {
  background: #27272a;
  border-color: #52525b;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Pulse animation */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Modal Overlay */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

/* Switch toggle */
.toggle-checkbox:checked {
  right: 0;
  border-color: #10b981;
}
.toggle-checkbox:checked + .toggle-label {
  background-color: #10b981;
}
