/* JaPozz Cyberpunk Theme */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
  /* JaPozz Brand Color Palette - Intensified for maximum neon impact */
  --cyber-black: #000000;       /* Nero profondo per contrasto massimo */
  --cyber-dark: #0f0f0f;        /* Nero leggermente meno profondo */
  --cyber-gray: #1a1a1a;        /* Grigio scuro */
  --cyber-neon-pink: #ff0080;   /* Rosa primario - Intenso e vivace */
  --cyber-neon-blue: #00d9ff;   /* Blu primario - Elettrico e brillante */
  --cyber-neon-green: #00ff88;  /* Verde cyber - Complementare */
  --cyber-neon-purple: #b847ff; /* Viola accento */
  --cyber-neon-yellow: #ffff00; /* Giallo accento */
  --cyber-white: #ffffff;       /* Bianco puro */
  --cyber-light-gray: #cccccc;  /* Grigio chiaro */
  
  /* JaPozz specific optimized colors */
  --japozz-pink: #ff0080;       /* Rosa primario dal logo */
  --japozz-blue: #00d9ff;       /* Blu primario dal logo */
  --japozz-green: #00ff88;      /* Verde cyber complementare */
  
  /* Gradient Backgrounds */
  --gradient-cyber: linear-gradient(135deg, var(--cyber-neon-pink) 0%, var(--cyber-neon-blue) 100%);
  --gradient-dark: linear-gradient(135deg, var(--cyber-black) 0%, var(--cyber-dark) 100%);
  --gradient-neon: linear-gradient(90deg, var(--cyber-neon-green) 0%, var(--cyber-neon-blue) 50%, var(--cyber-neon-purple) 100%);
  
  /* Typography */
  --font-orbitron: 'Orbitron', monospace;
  --font-rajdhani: 'Rajdhani', sans-serif;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-rajdhani);
  background: var(--cyber-black);
  color: var(--cyber-white);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Cyberpunk Grid Background */
.cyber-grid-bg {
  background-image: 
    linear-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  position: relative;
}

.cyber-grid-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(10, 10, 10, 0.8) 70%);
  pointer-events: none;
}

/* Subtle Neon Text Effects - Refined JaPozz Brand */
.neon-text {
  font-family: var(--font-orbitron);
  text-shadow: 
    0 0 2px currentColor,
    0 0 4px currentColor,
    0 0 6px currentColor;
  animation: neonPulse 4s ease-in-out infinite alternate;
}

.neon-pink { 
  color: var(--japozz-pink); 
  text-shadow: 
    0 0 2px var(--japozz-pink),
    0 0 4px var(--japozz-pink),
    0 0 6px var(--japozz-pink);
}

.neon-blue { 
  color: var(--japozz-blue); 
  text-shadow: 
    0 0 2px var(--japozz-blue),
    0 0 4px var(--japozz-blue),
    0 0 6px var(--japozz-blue);
}

.neon-green { 
  color: var(--japozz-green); 
  text-shadow: 
    0 0 2px var(--japozz-green),
    0 0 4px var(--japozz-green),
    0 0 6px var(--japozz-green);
}

.neon-purple { 
  color: var(--cyber-neon-purple);
  text-shadow: 
    0 0 2px var(--cyber-neon-purple),
    0 0 4px var(--cyber-neon-purple),
    0 0 6px var(--cyber-neon-purple);
}

.neon-yellow { 
  color: var(--cyber-neon-yellow);
  text-shadow: 
    0 0 2px var(--cyber-neon-yellow),
    0 0 4px var(--cyber-neon-yellow),
    0 0 6px var(--cyber-neon-yellow);
}

@keyframes neonPulse {
  from { 
    text-shadow: 
      0 0 2px currentColor,
      0 0 4px currentColor,
      0 0 6px currentColor;
  }
  to { 
    text-shadow: 
      0 0 3px currentColor,
      0 0 6px currentColor,
      0 0 9px currentColor,
      0 0 12px currentColor;
  }
}

/* Glitch Effect */
.glitch {
  position: relative;
  font-family: var(--font-orbitron);
  font-weight: 900;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 2s infinite linear alternate-reverse;
  color: var(--cyber-neon-pink);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 1.5s infinite linear alternate-reverse;
  color: var(--cyber-neon-blue);
  z-index: -2;
}

@keyframes glitch-1 {
  0% { clip: rect(42px, 9999px, 44px, 0); }
  25% { clip: rect(12px, 9999px, 59px, 0); }
  50% { clip: rect(69px, 9999px, 70px, 0); }
  75% { clip: rect(32px, 9999px, 35px, 0); }
  100% { clip: rect(25px, 9999px, 30px, 0); }
}

@keyframes glitch-2 {
  0% { clip: rect(65px, 9999px, 119px, 0); }
  25% { clip: rect(52px, 9999px, 74px, 0); }
  50% { clip: rect(79px, 9999px, 85px, 0); }
  75% { clip: rect(12px, 9999px, 95px, 0); }
  100% { clip: rect(15px, 9999px, 20px, 0); }
}

/* JaPozz Style Cyber Buttons */
.cyber-btn {
  font-family: var(--font-orbitron);
  background: transparent;
  border: 2px solid var(--japozz-pink);
  color: var(--japozz-pink);
  padding: 12px 30px;
  cursor: pointer;
  position: relative;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  overflow: hidden;
  border-radius: 8px;
}

.cyber-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--japozz-pink) 0%, var(--japozz-blue) 100%);
  transition: left 0.3s ease;
  z-index: -1;
}

.cyber-btn:hover {
  color: var(--cyber-white);
  box-shadow: 
    0 0 5px var(--japozz-pink),
    0 0 10px var(--japozz-pink),
    0 0 15px var(--japozz-blue),
    inset 0 0 5px rgba(255, 0, 128, 0.1);
  transform: translateY(-2px);
}

.cyber-btn:hover::before {
  left: 0;
}

.cyber-btn-pink {
  border-color: var(--japozz-pink);
  color: var(--japozz-pink);
}

.cyber-btn-blue {
  border-color: var(--japozz-blue);
  color: var(--japozz-blue);
}

.cyber-btn-blue::before {
  background: linear-gradient(135deg, var(--japozz-blue) 0%, var(--japozz-pink) 100%);
}

.cyber-btn-green {
  border-color: var(--cyber-neon-green);
  color: var(--cyber-neon-green);
}

.cyber-btn-green::before {
  background: linear-gradient(135deg, var(--cyber-neon-green) 0%, var(--japozz-blue) 100%);
}

.cyber-btn-green:hover {
  box-shadow: 
    0 0 5px var(--cyber-neon-green),
    0 0 10px var(--cyber-neon-green),
    0 0 15px var(--japozz-blue),
    inset 0 0 5px rgba(0, 255, 136, 0.1);
}

/* Product Cards */
.product-card {
  background: linear-gradient(145deg, var(--cyber-dark) 0%, var(--cyber-gray) 100%);
  border: 1px solid var(--cyber-gray);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px;
  background: var(--gradient-neon);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 255, 136, 0.3);
}

.product-card:hover::before {
  opacity: 0.1;
}

/* Anime-style Elements */
.anime-border {
  position: relative;
  border: 2px solid var(--cyber-neon-pink);
}

.anime-border::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--cyber-neon-blue);
  border-radius: inherit;
  z-index: -1;
  animation: borderShift 3s ease-in-out infinite;
}

@keyframes borderShift {
  0%, 100% { 
    border-color: var(--cyber-neon-blue);
    transform: rotate(0deg);
  }
  50% { 
    border-color: var(--cyber-neon-purple);
    transform: rotate(2deg);
  }
}

/* Loading Animation */
.cyber-loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--cyber-gray);
  border-radius: 50%;
  border-top-color: var(--cyber-neon-green);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

::-webkit-scrollbar-track {
  background: var(--cyber-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-cyber);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-neon);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cyber-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .neon-text {
    font-size: 1.5rem;
  }
  
  .glitch {
    font-size: 1.2rem;
  }
}

/* JaPozz Logo Styles - Optimized for transparency and neon effects */
.japozz-logo {
  /* Intense neon glow matching brand colors */
  filter: 
    drop-shadow(0 0 8px rgba(255, 0, 128, 0.8))    /* Rosa primario - inner glow */
    drop-shadow(0 0 16px rgba(255, 0, 128, 0.6))   /* Rosa primario - mid glow */
    drop-shadow(0 0 24px rgba(0, 217, 255, 0.5))   /* Blu primario - outer glow */
    drop-shadow(0 0 32px rgba(0, 255, 136, 0.3));  /* Verde cyber - ambient */
  
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  mix-blend-mode: screen; /* Makes black background transparent */
}

.japozz-logo:hover {
  /* Enhanced hover glow for premium feel */
  filter: 
    drop-shadow(0 0 12px rgba(255, 0, 128, 1.0))   /* Rosa primario - intense inner */
    drop-shadow(0 0 24px rgba(255, 0, 128, 0.8))   /* Rosa primario - strong mid */
    drop-shadow(0 0 36px rgba(0, 217, 255, 0.7))   /* Blu primario - prominent outer */
    drop-shadow(0 0 48px rgba(0, 255, 136, 0.5))   /* Verde cyber - wide ambient */
    drop-shadow(0 0 64px rgba(255, 0, 128, 0.3));  /* Rosa primario - ultra wide */
  
  transform: scale(1.08);
  mix-blend-mode: screen;
}

/* JaPozz Brand Colors (matching the logo) */
.japozz-pink { color: #ff0080; }
.japozz-blue { color: #00d9ff; }
.text-japozz-pink { color: #ff0080; }
.text-japozz-blue { color: #00d9ff; }

/* Logo Container - Enhanced for brand colors */
.logo-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-container::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: linear-gradient(45deg, 
    rgba(255, 0, 128, 0.15) 0%,     /* Rosa primario */
    rgba(0, 217, 255, 0.15) 50%,    /* Blu primario */ 
    rgba(0, 255, 136, 0.15) 100%);  /* Verde cyber */
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(4px);
}

.logo-container:hover::before {
  opacity: 1;
}

/* Subtle neon for section titles */
.neon-text-subtle {
  font-family: var(--font-orbitron);
  text-shadow: 
    0 0 1px currentColor,
    0 0 3px currentColor,
    0 0 5px currentColor;
}

/* Alternative text logo for mobile/fallback */
.japozz-text-logo {
  font-family: var(--font-orbitron);
  font-weight: 900;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #ff0080 0%, #00d9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  position: relative;
}

.japozz-text-logo::before {
  content: 'JaPozz';
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #ff0080 0%, #00d9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(8px);
  opacity: 0.7;
  z-index: -1;
}

/* Utility Classes */
.bg-cyber-dark { background-color: var(--cyber-dark); }
.bg-cyber-black { background-color: var(--cyber-black); }
.bg-cyber-gray { background-color: var(--cyber-gray); }
.bg-gradient-cyber { background: var(--gradient-cyber); }
.bg-gradient-dark { background: var(--gradient-dark); }
.bg-gradient-neon { background: var(--gradient-neon); }

.text-cyber-white { color: var(--cyber-white); }
.text-cyber-light { color: var(--cyber-light-gray); }
.border-cyber-neon { border-color: var(--cyber-neon-green); }

.font-orbitron { font-family: var(--font-orbitron); }
.font-rajdhani { font-family: var(--font-rajdhani); }

/* Cart Sidebar Styles */
#cart-sidebar {
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.8);
  background: linear-gradient(145deg, var(--cyber-dark) 0%, #0a0a0a 100%);
}

#cart-sidebar::-webkit-scrollbar {
  width: 6px;
}

#cart-sidebar::-webkit-scrollbar-thumb {
  background: var(--gradient-cyber);
  border-radius: 3px;
}

/* Outline Button Style */
.cyber-btn-outline {
  background: transparent;
  border: 1px solid var(--cyber-gray);
  color: var(--cyber-light-gray);
}

.cyber-btn-outline:hover {
  border-color: var(--cyber-neon-pink);
  color: var(--cyber-neon-pink);
  background: rgba(255, 0, 128, 0.1);
  box-shadow: 0 0 10px rgba(255, 0, 128, 0.3);
}

/* Cart Item Hover Effects */
#cart-items > div:hover {
  transform: translateX(-4px);
}

/* Mobile Menu Toggle */
#mobile-menu-toggle {
  z-index: 100;
}