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

:root {
  --color-obsidian-navy: #0B0F19;
  --color-slate-surface: #1E293B;
  --color-slate-border: #334155;
  --color-slate-hover: #2A384F;
  --color-electric-cyan: #00E5FF;
  --color-retro-coral: #FF4757;
  --color-emerald-auth: #10B981;
  --color-gold-collector: #F59E0B;
  --color-pure-white: #FFFFFF;
  --color-muted-gray: #94A3B8;
  --font-headline: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #334155;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: var(--font-body);
  background-color: #0B0F19;
  color: #FFFFFF;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: inherit;
  background-color: #0B0F19;
  color: #FFFFFF;
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography tokens & utility classes */
.font-outfit { font-family: var(--font-headline); }
.font-inter { font-family: var(--font-body); }
.font-mono { font-family: var(--font-mono); }

/* Color tokens as utilities */
.bg-\[\#0B0F19\], .bg-obsidian-navy { background-color: #0B0F19; }
.bg-\[\#1E293B\], .bg-slate-surface { background-color: #1E293B; }
.bg-\[\#2A384F\], .bg-slate-hover { background-color: #2A384F; }
.bg-\[\#00E5FF\], .bg-electric-cyan { background-color: #00E5FF; }
.bg-\[\#FF4757\], .bg-retro-coral { background-color: #FF4757; }
.bg-\[\#10B981\], .bg-emerald-auth { background-color: #10B981; }
.bg-\[\#F59E0B\], .bg-gold-collector { background-color: #F59E0B; }
.bg-white { background-color: #FFFFFF; }
.bg-black { background-color: #000000; }
.bg-transparent { background-color: transparent; }

.text-\[\#0B0F19\] { color: #0B0F19; }
.text-\[\#1E293B\] { color: #1E293B; }
.text-\[\#00E5FF\], .text-electric-cyan { color: #00E5FF; }
.text-\[\#FF4757\], .text-retro-coral { color: #FF4757; }
.text-\[\#10B981\], .text-emerald-auth { color: #10B981; }
.text-\[\#F59E0B\], .text-gold-collector { color: #F59E0B; }
.text-\[\#94A3B8\], .text-muted-gray { color: #94A3B8; }
.text-white { color: #FFFFFF; }

.border-\[\#0B0F19\] { border-color: #0B0F19; }
.border-\[\#1E293B\], .border-slate-surface { border-color: #1E293B; }
.border-\[\#334155\], .border-slate-border { border-color: #334155; }
.border-\[\#00E5FF\], .border-electric-cyan { border-color: #00E5FF; }
.border-\[\#FF4757\], .border-retro-coral { border-color: #FF4757; }
.border-\[\#10B981\], .border-emerald-auth { border-color: #10B981; }

/* Structural utilities */
.container { width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; max-width: 1280px; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.w-full { width: 100%; }
.w-auto { width: auto; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

/* Grid columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:block { display: block; }
  .md\:hidden { display: none; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
}

/* Borders & Rounded */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-r { border-right-width: 1px; }
.rounded-none { border-radius: 0px; }
.rounded-sm { border-radius: 0.125rem; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Text sizes */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0px; }
.top-4 { top: 1rem; }
.top-24 { top: 6rem; }
.right-0 { right: 0px; }
.bottom-0 { bottom: 0px; }
.left-0 { left: 0px; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Effects & Glassmorphism */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2); }
.shadow-cyan { box-shadow: 0 0 20px rgba(0, 229, 255, 0.25); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.cursor-pointer { cursor: pointer; }
.opacity-0 { opacity: 0; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }

/* Interactive Hover States */
.hover\:bg-\[\#2A384F\]:hover, .hover\:bg-slate-hover:hover { background-color: #2A384F; }
.hover\:border-\[\#00E5FF\]:hover, .hover\:border-electric-cyan:hover { border-color: #00E5FF; }
.hover\:text-\[\#00E5FF\]:hover, .hover\:text-electric-cyan:hover { color: #00E5FF; }
.hover\:shadow-cyan:hover { box-shadow: 0 0 25px rgba(0, 229, 255, 0.35); }
.hover\:scale-105:hover { transform: scale(1.05); }

/* PixelClub Bespoke Components */
.pixelclub-card {
  background-color: #1E293B;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.pixelclub-card:hover {
  border-color: #00E5FF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.12);
}

.pixelclub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pixelclub-badge-cyan { background-color: rgba(0, 229, 255, 0.15); color: #00E5FF; border: 1px solid rgba(0, 229, 255, 0.4); }
.pixelclub-badge-emerald { background-color: rgba(16, 185, 129, 0.15); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.4); }
.pixelclub-badge-coral { background-color: rgba(255, 71, 87, 0.15); color: #FF4757; border: 1px solid rgba(255, 71, 87, 0.4); }
.pixelclub-badge-gold { background-color: rgba(245, 158, 11, 0.15); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.4); }

.pixelclub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pixelclub-btn-primary {
  background-color: #00E5FF;
  color: #0B0F19;
  border: 1px solid #00E5FF;
}
.pixelclub-btn-primary:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

.pixelclub-btn-secondary {
  background-color: #1E293B;
  color: #FFFFFF;
  border: 1px solid #334155;
}
.pixelclub-btn-secondary:hover {
  border-color: #00E5FF;
  color: #00E5FF;
  background-color: #2A384F;
}

/* Setzkasten Filter Pills */
.setzkasten-pill {
  padding: 0.5rem 1rem;
  background-color: #1E293B;
  border: 1px solid #334155;
  border-radius: 9999px;
  color: #94A3B8;
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.setzkasten-pill:hover {
  border-color: #00E5FF;
  color: #FFFFFF;
}
.setzkasten-pill.active {
  background-color: #00E5FF;
  border-color: #00E5FF;
  color: #0B0F19;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

/* 4-Shot Macro Gallery */
.macro-gallery-hero {
  aspect-ratio: 1 / 1;
  background-color: #0F172A;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
}
.macro-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  border: 2px solid #334155;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}
.macro-thumb.active, .macro-thumb:hover {
  border-color: #00E5FF;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* Drawer & Modal */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background-color: #1E293B;
  border-left: 1px solid #334155;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer-overlay.open .cart-drawer-panel {
  transform: translateX(0);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

/* Specifications Table */
.pixelclub-spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.pixelclub-spec-table th, .pixelclub-spec-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #334155;
}
.pixelclub-spec-table th {
  color: #94A3B8;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: left;
  font-weight: 500;
  width: 38%;
}
.pixelclub-spec-table td {
  color: #FFFFFF;
  font-size: 0.9rem;
  font-family: var(--font-body);
}

/* Form controls */
input[type="text"], input[type="search"], input[type="email"], select {
  background-color: #0F172A;
  border: 1px solid #334155;
  color: #FFFFFF;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: var(--font-body);
}
input:focus, select:focus {
  border-color: #00E5FF;
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
}
