/* ==========================================================================
   MARKETPLACE CURADO DE ARTESANÍA DE NARIÑO - HOJA DE ESTILOS PREMIUM
   Estilo: Dark & Gold (Lujo, Herencia y Tecnología)
   ========================================================================== */

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

:root {
  --color-bg: #09090b;
  --color-surface: #131316;
  --color-surface-hover: #1c1c22;
  --color-border: #27272a;
  
  /* El Oro de Nariño */
  --color-gold-deep: #b8860b;
  --color-gold: #d4af37;
  --color-gold-light: #f3e5ab;
  --color-gold-glow: rgba(212, 175, 55, 0.15);
  
  --color-text-primary: #f4f4f5;
  --color-text-secondary: #a1a1aa;
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6, .font-title {
  font-family: var(--font-title);
  letter-spacing: -0.02em;
}

/* Glassmorphism Styles */
.glass {
  background: rgba(19, 19, 22, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-gold {
  background: rgba(19, 19, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Gold Glowing Elements */
.gold-glow {
  box-shadow: 0 0 25px var(--color-gold-glow);
}

.gold-glow-hover:hover {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gold-gradient-text {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 50%, var(--color-gold-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, var(--color-gold-deep) 0%, var(--color-gold) 50%, var(--color-gold-light) 100%);
}

.gold-border-glow {
  position: relative;
}

.gold-border-glow::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  background: linear-gradient(135deg, var(--color-gold-deep), var(--color-gold-light), var(--color-gold-deep));
  border-radius: inherit;
  z-index: -1;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.gold-border-glow:hover::before {
  opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* QR Scanner Animation Effect */
.qr-scanner-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: white;
  padding: 8px;
}

.qr-scanner-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, #10b981, transparent);
  box-shadow: 0 0 12px #10b981;
  animation: scan 2.5s linear infinite;
  z-index: 10;
}

@keyframes scan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

/* Badge Holográfico */
.badge-certified {
  background: linear-gradient(135deg, rgba(212,175,55,0.15) 0%, rgba(212,175,55,0.05) 50%, rgba(255,255,255,0) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--color-gold-light);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
}

.badge-certified::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: shine 3s infinite linear;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Sold Badge */
.badge-sold {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

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

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Interactive Card Image */
.zoom-image-container {
  overflow: hidden;
  position: relative;
}

.zoom-image-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.zoom-image-container:hover img {
  transform: scale(1.05);
}

/* Demo Control Widget Styling */
.demo-widget {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Active Navigation indicator */
.nav-link-active {
  color: var(--color-gold) !important;
  border-bottom: 2px solid var(--color-gold);
}

/* Base64 upload preview placeholder */
.upload-box {
  border: 2px dashed rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.upload-box:hover {
  border-color: var(--color-gold);
  background: rgba(212, 175, 55, 0.02);
}

/* Shopping Cart Drawer slide animation classes */
.drawer-open {
  transform: translateX(0) !important;
}

/* Blur overlay behind modal */
.overlay-blur {
  backdrop-filter: blur(4px);
  background: rgba(0,0,0,0.6);
}
