/* ==========================================================================
   UGC PROMOTIONAL SHOWCASE STYLES — AURALIX MEDIA (STATIC INFINITE SLIDER)
   ========================================================================== */

.ugc-section {
  padding: 6rem 0;
  background-color: #0b0c10; /* Deep black section background */
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Central glowing ambient light behind the mockups */
.ugc-bg-spotlight {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 58, 47, 0.15) 0%, transparent 70%);
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
}

/* Subtle dark background grid */
.ugc-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
  pointer-events: none;
  z-index: 1;
}

/* Heading style tags */
.ugc-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}

.ugc-tag-dot {
  width: 6px;
  height: 6px;
  background-color: var(--brand-red, #D43A2F);
  border-radius: 50%;
  display: inline-block;
}

.ugc-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff; /* White title on dark background */
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.ugc-subtitle {
  max-width: 540px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  font-weight: 400;
}

/* Slider outer wrapper and navigation controls */
.ugc-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto 0 auto;
}

.ugc-slider-container {
  width: 100%;
  overflow: hidden; /* Prevent phone clones from creating horizontal page scrolling */
  position: relative;
  z-index: 2;
}

/* Flex track centered statically on the screen */
.ugc-showcase-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem; /* Tighter layout for elegant overlapping */
  padding: 3rem 0;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Phone Mockup Frame */
.phone-mockup {
  position: relative;
  width: 240px;
  height: 480px;
  background: #000000;
  border: 9px solid #23252f; /* Bezel */
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
              opacity 0.5s ease, 
              border-color 0.3s ease, 
              box-shadow 0.5s ease;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 2;
}

/* Slider 3D active & relative cards state styling */
.phone-mockup.active {
  transform: scale(1.1) rotate(0deg);
  opacity: 1;
  z-index: 10; /* sit on top */
  border-color: var(--brand-red, #D43A2F);
  box-shadow: 0 25px 60px rgba(212, 58, 47, 0.28);
}

.phone-mockup.prev-card {
  transform: scale(0.92) rotate(-5deg) translateY(15px);
  opacity: 0.65;
  z-index: 5;
}

.phone-mockup.next-card {
  transform: scale(0.92) rotate(5deg) translateY(15px);
  opacity: 0.65;
  z-index: 5;
}

.phone-mockup.far-left {
  transform: scale(0.82) rotate(-9deg) translateY(30px);
  opacity: 0.35;
  z-index: 2;
}

.phone-mockup.far-right {
  transform: scale(0.82) rotate(9deg) translateY(30px);
  opacity: 0.35;
  z-index: 2;
}

/* Hover: scale active phone card slightly more */
.phone-mockup.active:hover {
  transform: scale(1.15) translateY(-8px);
  box-shadow: 0 35px 70px rgba(212, 58, 47, 0.35);
}

/* Navigation button overlays */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(17, 19, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.slider-nav-btn:hover {
  background: var(--brand-red, #D43A2F);
  border-color: var(--brand-red, #D43A2F);
  transform: translateY(-50%) scale(1.08);
}

.slider-nav-btn.prev-btn {
  left: 2rem;
}

.slider-nav-btn.next-btn {
  right: 2rem;
}

/* Notch layout */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 105px;
  height: 16px;
  background: #23252f;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden; /* Hide side slide clones */
}

/* 3-slide video track sliding horizontally */
.phone-video-track {
  display: flex;
  width: 300%;
  height: 100%;
  transform: translateX(-33.333%); /* Start centered on the middle slide */
}

.phone-video-track.animating {
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-slide {
  width: 33.333%;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.ugc-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

/* Click to unmute indicator */
.video-sound-indicator {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.video-sound-indicator:hover {
  background: var(--brand-red, #D43A2F);
  border-color: var(--brand-red, #D43A2F);
  transform: scale(1.1);
}

/* Video Type Tag Overlays */
.phone-overlay-label {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.6rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 1300px) {
  .slider-nav-btn.prev-btn {
    left: 10px;
  }
  .slider-nav-btn.next-btn {
    right: 10px;
  }
}

@media (max-width: 1100px) {
  .ugc-showcase-grid {
    gap: 0.5rem;
  }
  .phone-mockup {
    width: 180px;
    height: 360px;
    border-width: 7px;
  }
  .phone-notch {
    width: 80px;
    height: 12px;
  }
  .slider-nav-btn {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 768px) {
  /* On tablets and mobile, hide the outer far-left and far-right phones to fit screen */
  .phone-mockup.far-left,
  .phone-mockup.far-right {
    display: none;
  }
  
  .ugc-showcase-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .ugc-section {
    padding: 4rem 0;
  }

  .phone-mockup {
    width: 140px;
    height: 280px;
    border-width: 5px;
    border-radius: 24px;
  }
  
  .phone-notch {
    width: 60px;
    height: 10px;
  }

  .phone-overlay-label {
    font-size: 0.5rem;
    padding: 0.2rem 0.4rem;
    bottom: 10px;
    left: 10px;
  }

  .video-sound-indicator {
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
}
