/* === LUMADIOUS POD CUSTOM STYLES === */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Hide scrollbar */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* === ROLODEX CAROUSEL STYLES === */

/* Showcase Container - Controlled Stacking */
.showcase-container {
  perspective: 2000px;
  perspective-origin: 50% 50%;
  isolation: isolate;
  position: relative;
  z-index: 10;
  min-height: 500px; /* Ensure container doesn't collapse on mobile */
  width: 100%;
  overflow: hidden; /* CRITICAL: Prevent horizontal scroll on mobile */
}

/* Ensure visibility on mobile */
.swiper-wrapper {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

.swiper {
  width: 100%;
  height: 100%;
  padding: 2rem 0;
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

/* MOBILE FIX: Ensure swiper is visible and centered */
@media (max-width: 767px) {
  .showcase-container {
    overflow: hidden;
    max-width: 100vw;
  }
  
  .swiper {
    margin: 0 auto;
    padding: 1rem 0;
  }
  
  .pod-swiper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Mobile-first card sizing */
.swiper-slide {
  width: 280px;
  height: 450px;
  border-radius: 1.5rem;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  position: relative;
  z-index: 1;
  opacity: 1 !important; /* CRITICAL: Ensure cards are visible */
  visibility: visible !important;
}

/* Small phones */
@media (min-width: 360px) {
  .swiper-slide {
    width: 300px;
    height: 480px;
  }
}

/* Larger phones */
@media (min-width: 480px) {
  .swiper-slide {
    width: 340px;
    height: 520px;
  }
}

/* Tablets */
@media (min-width: 640px) {
  .swiper-slide {
    width: 360px;
    height: 550px;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .swiper-slide {
    width: 400px;
    height: 600px;
  }
}

.swiper-slide-active {
  box-shadow: 0 0 60px rgba(255, 68, 68, 0.4);
  border-color: rgba(255, 68, 68, 0.6);
  z-index: 10;
}

/* === GLASSMORPHISM EFFECTS === */

.glass-bg {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
}

@media (min-width: 1024px) {
  .glass-bg {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
  }
}

/* Copy Shield - Highest Priority */
.copy-shield {
  position: relative;
  z-index: 50;
  isolation: isolate;
}

/* === GRADIENT TEXT === */
.gradient-text {
  background: linear-gradient(135deg, #ff4444 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === PULSE GLOW ANIMATION === */
@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.4); 
  }
  50% { 
    box-shadow: 0 0 40px rgba(255, 68, 68, 0.8); 
  }
}

.pulse-cta {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* === NOISE TEXTURE === */
.noise-bg {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

/* === CUSTOM ANIMATIONS === */

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 68, 68, 0.6);
  }
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Float animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* === DETAILS/SUMMARY STYLING === */

details summary {
  list-style: none;
  cursor: pointer;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '+';
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff4444;
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

/* === SMOOTH TRANSITIONS === */

a, button, details {
  transition: all 0.3s ease;
}

/* === CUSTOM SCROLLBAR === */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
  background: #ff4444;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff6b6b;
}

/* === FOCUS STATES FOR ACCESSIBILITY === */

a:focus, button:focus, details:focus {
  outline: 2px solid #ff4444;
  outline-offset: 2px;
}

/* === PREVENT LAYOUT SHIFT === */

details {
  overflow: hidden;
}

/* === CARD HOVER EFFECTS === */

.card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* === SPOTLIGHT EFFECT === */

.spotlight-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body:hover .spotlight-overlay {
  opacity: 1;
}

/* === BACKDROP BLUR SUPPORT === */

@supports (backdrop-filter: blur(10px)) {
  .glass-bg {
    backdrop-filter: blur(12px);
  }
}

@supports not (backdrop-filter: blur(10px)) {
  .glass-bg {
    background: rgba(0, 0, 0, 0.9);
  }
}

/* === PRODUCT CARD STYLES === */

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

/* === BADGE STYLES === */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === RESPONSIVE UTILITIES === */

/* Mobile-specific adjustments */
@media (max-width: 640px) {
  .swiper-slide {
    width: 280px;
    height: 450px;
  }
  
  .showcase-container {
    perspective: 1200px;
  }
  
  /* Smaller text in badges on mobile */
  .badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.65rem;
  }
  
  /* Adjust card padding on mobile */
  .product-card .p-5 {
    padding: 1rem;
  }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1023px) {
  .swiper-slide {
    width: 340px;
    height: 520px;
  }
}

/* Ensure touch-friendly interactions on mobile */
@media (hover: none) and (pointer: coarse) {
  .swiper {
    touch-action: pan-y;
  }
  
  .card-hover:hover {
    transform: none;
  }
  
  .pulse-cta {
    animation: none;
  }
}
