/* ============================================
   VINTAGE ITEM SOURCING - FUTURISTIC DESIGN
   Digital Reliquary / Quantum Catalog Theme
   ============================================ */

:root {
  /* Color Palette - The Glitch in the Museum */
  --color-bg-primary: #0F1410;
  --color-accent-gold: #D4AF37;
  --color-accent-cyan: #00F5FF;
  --color-text-primary: #E8E8E8;
  --color-text-secondary: #B0B0B0;
  --color-border: rgba(212, 175, 55, 0.2);
  --color-overlay: rgba(15, 20, 16, 0.85);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  
  /* Layout */
  --container-max: 1400px;
  --section-padding: 4rem 1rem;
  
  /* Effects */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows & Glows */
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
  --shadow-cyan: 0 0 15px rgba(0, 245, 255, 0.2);
  --glow-gold: 0 0 30px rgba(212, 175, 55, 0.5);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 245, 255, 0.03) 2px,
      rgba(0, 245, 255, 0.03) 4px
    );
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(1.4rem, 4vw, 4rem);
  background: linear-gradient(135deg, var(--color-accent-gold), var(--color-accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.2rem, 3vw, 3rem);
  color: var(--color-accent-gold);
}

h3 {
  font-size: clamp(1rem, 2vw, 2rem);
  color: var(--color-text-primary);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-gold);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  position: relative;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-overlay);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--color-accent-gold);
}

.main-nav {
  display: flex;
  align-items: center;
  list-style: none;
}

.main-nav a {
  color: var(--color-text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid transparent;
  transition: all var(--transition-base);
  position: relative;
}

.main-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-accent-cyan);
  transition: width var(--transition-base);
}

.main-nav a:hover::before {
  width: 80%;
}

.main-nav a:hover {
  color: var(--color-accent-cyan);
  border-color: var(--color-border);
}

.burger-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-accent-gold);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  font-size: 1.5rem;
  transition: all var(--transition-base);
  order: 999;
}

.burger-toggle:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: var(--shadow-gold);
}

.burger-toggle.active {
  background: var(--color-accent-gold);
  color: var(--color-bg-primary);
}

/* Mobile Navigation */
@media (max-width: 1023px) {
  .burger-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--color-bg-primary);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-md);
    transition: right var(--transition-base);
    z-index: 999;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav a {
    width: 100%;
    text-align: left;
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
  }
  
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
  }
  
  .nav-overlay.active {
    display: block;
  }
}

/* ============================================
   HERO BANNERS (Full-Width)
   ============================================ */

.hero-banner {
  position: relative;
  width: 100vw;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-overlay);
  z-index: 2;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: grayscale(30%) contrast(1.1);
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h1 {
  margin-bottom: var(--space-lg);
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xl);
}

/* ============================================
   SECTIONS & CONTAINERS
   ============================================ */

.main-content {
  position: relative;
  z-index: 2;
}

.content-section {
  padding: var(--section-padding);
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}

.content-section > h2,
.content-section > p {
  text-align: center;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  justify-items: center;
  align-items: start;
}

.section-item {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  text-align: left;
}

.section-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.section-item:hover::before {
  left: 100%;
}

.section-item:hover {
  border-color: var(--color-accent-cyan);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-5px);
}

.section-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  filter: grayscale(20%);
  transition: filter var(--transition-base);
  display: block;
}

.section-item:hover .section-image {
  filter: grayscale(0%);
}

/* ============================================
   OBJECT SCANNING EFFECT
   ============================================ */

.scannable-object {
  position: relative;
  overflow: hidden;
}

.scan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.scannable-object:hover .scan-overlay {
  opacity: 1;
}

.scan-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 245, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: scanMove 2s linear infinite;
}

@keyframes scanMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(20px); }
}

.scan-info {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(15, 20, 16, 0.9);
  padding: var(--space-sm);
  border: 1px solid var(--color-accent-cyan);
  font-size: 0.75rem;
  color: var(--color-accent-cyan);
}

/* ============================================
   ERA-SHIFT NAVIGATION
   ============================================ */

.era-shift-control {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 1000;
  background: var(--color-overlay);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 200px;
}

.era-shift-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent-cyan);
  text-align: center;
}

.era-slider {
  width: 100%;
  height: 6px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  -webkit-appearance: none;
}

.era-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--color-accent-gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
}

.era-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--color-accent-gold);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-gold);
}

.era-years {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--color-text-secondary);
}

/* Era-specific styles applied via JS */
body.era-1850 {
  --color-accent-gold: #8B7355;
  --font-display: 'Playfair Display', serif;
}

body.era-1920 {
  --color-accent-gold: #FFD700;
  --color-accent-cyan: #FF6B6B;
}

body.era-1970 {
  --color-accent-gold: #FF8C00;
  --color-accent-cyan: #00CED1;
}

body.era-2050 {
  --color-accent-gold: #D4AF37;
  --color-accent-cyan: #00F5FF;
}

/* ============================================
   FORMS
   ============================================ */

.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-xl);
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--color-accent-gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent-cyan);
  box-shadow: var(--shadow-cyan);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.checkbox-input {
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.submit-button {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: 2px solid var(--color-accent-gold);
  color: var(--color-accent-gold);
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-accent-gold);
  transition: left var(--transition-base);
  z-index: -1;
}

.submit-button:hover {
  color: var(--color-bg-primary);
}

.submit-button:hover::before {
  left: 0;
}

/* ============================================
   MAPS
   ============================================ */

.map-container {
  width: 100%;
  height: 400px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-lg);
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(50%) contrast(1.2);
}

/* ============================================
   PRODUCTS
   ============================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.product-card {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.product-card:hover {
  border-color: var(--color-accent-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-5px);
}

.product-title {
  font-size: 1.5rem;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-sm);
}

.product-price {
  font-size: 1.25rem;
  color: var(--color-accent-cyan);
  font-weight: 600;
  margin-top: var(--space-md);
}

/* ============================================
   BEFORE/AFTER SLIDER
   ============================================ */

.comparison-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: var(--space-xl) auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.comparison-image {
  width: 100%;
  height: auto;
  display: block;
}

.comparison-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-accent-cyan);
  cursor: ew-resize;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.comparison-slider::before {
  content: '◄ ►';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-accent-cyan);
  color: var(--color-bg-primary);
  padding: var(--space-sm);
  border-radius: 50%;
  font-size: 0.75rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.comparison-overlay img {
  width: 200%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  position: absolute;
  left: 0;
  top: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  margin-top: var(--space-xxl);
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-overlay);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
  list-style: none;
}

.footer-nav a {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-accent-gold);
}

.footer-info {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  margin-top: var(--space-md);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.date {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  font-style: italic;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  :root {
    --section-padding: 2rem 1rem;
  }
  
  .hero-banner {
    min-height: 50vh;
  }
  
  .section-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .era-shift-control {
    bottom: var(--space-md);
    right: var(--space-md);
    min-width: 150px;
  }
  
  .site-header {
    padding: var(--space-md);
  }
  
  .footer-nav {
    flex-direction: column;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: var(--space-md);
  }
  
  .form-container {
    padding: var(--space-md);
  }
  
  .era-shift-control {
    position: relative;
    bottom: auto;
    right: auto;
    margin: var(--space-lg) auto;
    width: 90%;
  }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.flicker-effect {
  animation: flicker 3s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pulse-effect {
  animation: pulse 2s infinite;
}

/* Privacy Policy Popup */
.privacy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.privacy-popup.active {
  display: flex;
}

.privacy-content {
  background: var(--color-bg-primary);
  border: 2px solid var(--color-accent-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.privacy-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: transparent;
  border: 1px solid var(--color-accent-gold);
  color: var(--color-accent-gold);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.privacy-close:hover {
  background: var(--color-accent-gold);
  color: var(--color-bg-primary);
}

