/* ==========================================================================
   CODDX Showcase X-Marquee Component
   Futuristic Neon X with Dual Scrolling Product Rails
   ========================================================================== */

.coddx-showcase-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 2.5rem auto 3rem auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 2rem 0;
}

/* Vignette Gradients on left & right edges for infinite fade */
.coddx-showcase-container::before,
.coddx-showcase-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  z-index: 5;
  pointer-events: none;
}

.coddx-showcase-container::before {
  left: 0;
  background: linear-gradient(90deg, #000000 15%, rgba(0, 0, 0, 0) 100%);
}

.coddx-showcase-container::after {
  right: 0;
  background: linear-gradient(-90deg, #000000 15%, rgba(0, 0, 0, 0) 100%);
}

/* Marquee track system */
.coddx-marquee-track {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
  margin: 10px 0;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.coddx-marquee-track:hover {
  opacity: 1;
}

.coddx-marquee-rail {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 20px;
  will-change: transform;
}

/* Animations */
.coddx-marquee-left .coddx-marquee-rail {
  animation: coddxScrollLeft 45s linear infinite;
}

.coddx-marquee-right .coddx-marquee-rail {
  animation: coddxScrollRight 45s linear infinite;
}

.coddx-marquee-track:hover .coddx-marquee-rail {
  animation-play-state: paused;
}

@keyframes coddxScrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes coddxScrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Product Card Styling */
.coddx-product-card {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 26px;
  overflow: hidden;
  background: #0f1015;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.coddx-product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.coddx-product-card:hover {
  transform: translateY(-4px) scale(1.08);
  border-color: rgba(147, 51, 234, 0.6);
  box-shadow: 0 14px 35px rgba(124, 58, 237, 0.35);
  z-index: 8;
}

.coddx-product-card:hover img {
  transform: scale(1.06);
}

/* Glowing Hologram Center X */
.coddx-center-x-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cosmic Neon Aura Backdrop */
.coddx-center-x-aura {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.45) 0%, rgba(59, 130, 246, 0.3) 40%, rgba(0, 0, 0, 0) 70%);
  filter: blur(40px);
  animation: coddxPulseAura 4s ease-in-out infinite alternate;
}

@keyframes coddxPulseAura {
  0% { transform: scale(0.85); opacity: 0.65; }
  100% { transform: scale(1.18); opacity: 0.95; }
}

/* Center X Symbol */
.coddx-center-x-icon {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 46px;
  background: rgba(15, 12, 28, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(168, 85, 247, 0.5);
  box-shadow: 
    0 0 40px rgba(147, 51, 234, 0.6),
    0 0 80px rgba(59, 130, 246, 0.3),
    inset 0 0 25px rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  animation: coddxFloat 5s ease-in-out infinite;
}

.coddx-center-x-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.85));
}

@keyframes coddxFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@media (max-width: 768px) {
  .coddx-showcase-container {
    min-height: 380px;
  }
  .coddx-product-card {
    width: 85px;
    height: 85px;
    border-radius: 18px;
  }
  .coddx-center-x-icon {
    width: 150px;
    height: 150px;
    border-radius: 32px;
    padding: 20px;
  }
  .coddx-center-x-aura {
    width: 220px;
    height: 220px;
  }
}
