/* Universal Navigation CSS with Prism Rainbow Logo Effect */

/* Navigation Container */
html body .nav,
html body .universal-nav,
html body nav.universal-nav,
html body header.universal-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: linear-gradient(135deg, rgba(15, 15, 25, 0.98), rgba(25, 25, 35, 0.95)) !important;
  backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(160, 160, 180, 0.15) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  z-index: 1000 !important;
  padding: 12px 0 !important;
  margin: 0 !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif !important;
}

html body .nav-container,
html body .universal-nav .nav-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif !important;
}

/* Logo Container */
html body .logo,
html body .universal-nav .logo {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif !important;
  letter-spacing: 0.8px !important;
  color: #ffffff !important;
}

/* Logo Image */
html body .logo-image,
html body .universal-nav .logo-image {
  height: 32px !important;
  width: auto !important;
  flex-shrink: 0 !important;
}

/* Logo Text with Holographic Effect - only affects the text span */
html body .logo-text,
html body .universal-nav .logo-text {
  color: #ffffff !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  animation: holographicText 8s linear infinite !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  display: inline-block !important;
  text-shadow: 0 0 2px currentColor !important;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
  html body .logo-text,
  html body .universal-nav .logo-text {
    color: #ffffff !important;
    -webkit-text-fill-color: initial !important;
    background: none !important;
  }
}

html body .logo-dot,
html body .universal-nav .logo-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: conic-gradient(from 0deg, #ff0080, #ff8000, #ffff00, #80ff00, #00ff80, #0080ff, #8000ff, #ff0080) !important;
  box-shadow: 0 0 15px rgba(128, 0, 255, 0.4), 0 0 25px rgba(255, 0, 128, 0.3) !important;
  animation: prismPulse 3s ease-in-out infinite !important;
  flex-shrink: 0 !important;
}

/* Holographic Animation Keyframes */
@keyframes prismPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.1); filter: brightness(1.3); }
}

@keyframes holographicText {
  0% { 
    color: #ff0080 !important;
    text-shadow: 0 0 3px #ff0080 !important;
  }
  14% { 
    color: #ff4000 !important;
    text-shadow: 0 0 3px #ff4000 !important;
  }
  28% { 
    color: #ffff00 !important;
    text-shadow: 0 0 3px #ffff00 !important;
  }
  42% { 
    color: #80ff00 !important;
    text-shadow: 0 0 3px #80ff00 !important;
  }
  57% { 
    color: #00ff80 !important;
    text-shadow: 0 0 3px #00ff80 !important;
  }
  71% { 
    color: #0080ff !important;
    text-shadow: 0 0 3px #0080ff !important;
  }
  85% { 
    color: #8000ff !important;
    text-shadow: 0 0 3px #8000ff !important;
  }
  100% { 
    color: #ff0080 !important;
    text-shadow: 0 0 3px #ff0080 !important;
  }
}

@keyframes holographicFlow {
  0% { 
    background-position: -400% 0%;
  }
  100% { 
    background-position: 400% 0%;
  }
}

@keyframes holographicShift {
  0% { 
    background-position: 0% 50%;
    filter: hue-rotate(0deg) brightness(1) contrast(1.2);
  }
  25% { 
    background-position: 100% 25%;
    filter: hue-rotate(90deg) brightness(1.1) contrast(1.3);
  }
  50% { 
    background-position: 200% 75%;
    filter: hue-rotate(180deg) brightness(1.2) contrast(1.4);
  }
  75% { 
    background-position: 300% 25%;
    filter: hue-rotate(270deg) brightness(1.1) contrast(1.3);
  }
  100% { 
    background-position: 400% 50%;
    filter: hue-rotate(360deg) brightness(1) contrast(1.2);
  }
}

@keyframes holographicShift {
  0%, 100% { 
    background-position: 0% 50%; 
    filter: brightness(1) contrast(1.1);
  }
  33% { 
    background-position: 100% 50%; 
    filter: brightness(1.2) contrast(1.2);
  }
  66% { 
    background-position: 50% 100%; 
    filter: brightness(0.9) contrast(1.3);
  }
}

@keyframes prismShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Menu Items */
html body .menu,
html body .universal-nav .menu {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif !important;
}

html body .menu a,
html body .universal-nav .menu a,
html body .menu .menu-item,
html body .universal-nav .menu .menu-item {
  color: rgba(200, 200, 220, 0.85) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif !important;
  background: transparent !important;
  margin: 0 !important;
}

html body .menu a:hover,
html body .universal-nav .menu a:hover,
html body .menu .menu-item:hover,
html body .universal-nav .menu .menu-item:hover {
  color: #00bcd4 !important;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(0, 229, 255, 0.05)) !important;
  transform: translateY(-1px) !important;
}

html body .menu a.active,
html body .universal-nav .menu a.active,
html body .menu .menu-item.active,
html body .universal-nav .menu .menu-item.active {
  color: #00bcd4 !important;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.15), rgba(0, 229, 255, 0.1)) !important;
  font-weight: 600 !important;
}

/* Cart Button */
html body .cart-container,
html body .universal-nav .cart-container {
  display: flex !important;
  align-items: center !important;
  margin-left: 20px !important;
}

html body #cartIcon,
html body .universal-nav #cartIcon {
  background: linear-gradient(135deg, rgba(26, 31, 40, 0.8), rgba(15, 20, 25, 0.9)) !important;
  border: 1px solid rgba(0, 188, 212, 0.3) !important;
  border-radius: 12px !important;
  color: #00bcd4 !important;
  padding: 12px 20px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif !important;
}

html body #cartIcon span,
html body .universal-nav #cartIcon span {
  font-weight: 500 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif !important;
}

html body #cartIcon:hover,
html body .universal-nav #cartIcon:hover {
  background: linear-gradient(135deg, rgba(180, 140, 255, 0.15), rgba(120, 200, 255, 0.1)) !important;
  border-color: rgba(180, 140, 255, 0.6) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

/* Body padding to account for fixed navigation - but don't interfere with page styles */
html body {
  padding-top: 64px !important;
}

/* Isolate navigation styles from affecting page content */
html body .nav,
html body .universal-nav {
  isolation: isolate !important;
}

/* Prevent navigation CSS from affecting other page elements */
html body *:not(.nav):not(.universal-nav):not(.nav-container):not(.logo):not(.logo-dot):not(.menu):not(.menu-item):not(.cart-container):not(#cartIcon):not(#cartLabel):not(#cartCount) {
  background-clip: initial !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
}

/* Responsive design */
@media (max-width: 768px) {
  html body .nav-container,
  html body .universal-nav .nav-container {
    padding: 0 16px !important;
  }
  
  html body .menu,
  html body .universal-nav .menu {
    gap: 12px !important;
  }
  
  html body .menu a,
  html body .universal-nav .menu a,
  html body .menu .menu-item,
  html body .universal-nav .menu .menu-item {
    font-size: 0.8rem !important;
    padding: 6px 8px !important;
  }
  
  html body .logo,
  html body .universal-nav .logo {
    font-size: 1.1rem !important;
  }
}