/**
 * Jide Okeke Elevate - Brand Showcase Widget Styles
 * Filmmaker Dark Aesthetic with Red Neon Highlights (#E50914)
 * Fully Responsive & Unlimited Logo Sizing Architecture
 */

:root {
  --jide-red-accent: #E50914;
  --jide-red-glow: rgba(229, 9, 20, 0.35);
  --jide-dark-bg: #0D0D0E;
}

/* Base Wrapper */
.jide-brand-showcase-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 40px 0;
  background-color: transparent;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header / Title */
.jide-brand-showcase-header {
  text-align: center;
  margin-bottom: 35px;
  padding: 0 20px;
}

.jide-brand-showcase-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #888888;
  margin: 0 0 8px 0;
}

.jide-brand-showcase-subtitle {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.jide-brand-showcase-title span.highlight {
  color: var(--jide-red-accent);
}

/* ==========================================================================
   UNLIMITED LOGO SIZING & FLEXIBLE CONTAINER OVERRIDES
   ========================================================================== */
.jide-brand-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px 28px;
  flex-shrink: 0;
}

.jide-brand-logo,
.jide-brand-item img {
  display: block;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: filter 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
}

/* Grayscale to Color Toggle */
.jide-brand-showcase-wrapper.enable-grayscale .jide-brand-logo,
.jide-brand-showcase-wrapper.enable-grayscale .jide-brand-item img {
  filter: grayscale(100%) opacity(0.7);
}

.jide-brand-showcase-wrapper.enable-grayscale .jide-brand-item:hover .jide-brand-logo,
.jide-brand-showcase-wrapper.enable-grayscale .jide-brand-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}

/* Standard Hover (Without forced grayscale) */
.jide-brand-showcase-wrapper:not(.enable-grayscale) .jide-brand-logo,
.jide-brand-showcase-wrapper:not(.enable-grayscale) .jide-brand-item img {
  filter: opacity(0.85);
}

.jide-brand-showcase-wrapper:not(.enable-grayscale) .jide-brand-item:hover .jide-brand-logo,
.jide-brand-showcase-wrapper:not(.enable-grayscale) .jide-brand-item:hover img {
  filter: opacity(1);
  transform: scale(1.08);
}

/* ==========================================================================
   DESIGN PRESETS (APPLIED SOLELY TO .jide-brand-item TO PREVENT DOUBLE BOXES)
   ========================================================================== */

/* 1. MINIMAL & CLEAN (Floating Logos - No Card Background) */
.jide-brand-item.preset-minimal {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 2. GLASSMORPHISM (Frosted Glass Card with Translucent Border) */
.jide-brand-item.preset-glassmorphism {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}
.jide-brand-item.preset-glassmorphism:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45) !important;
  transform: translateY(-4px) scale(1.04);
}

/* 3. DARK CARD (Filmmaker Solid Dark) */
.jide-brand-item.preset-dark_card {
  background: #141416 !important;
  border: 1px solid #242429 !important;
  border-radius: 12px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}
.jide-brand-item.preset-dark_card:hover {
  background: #1c1c20 !important;
  border-color: #383842 !important;
  transform: translateY(-4px) scale(1.04);
}

/* 4. BORDERED (Clean Thin Outline Box) */
.jide-brand-item.preset-bordered {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 10px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
.jide-brand-item.preset-bordered:hover {
  border-color: #ffffff !important;
  background: rgba(255, 255, 255, 0.03) !important;
  transform: translateY(-4px) scale(1.04);
}

/* 5. GLOWING (Red Neon Accent) */
.jide-brand-item.preset-glowing {
  background: rgba(229, 9, 20, 0.05) !important;
  border: 1px solid rgba(229, 9, 20, 0.3) !important;
  border-radius: 14px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.15) !important;
}
.jide-brand-item.preset-glowing:hover {
  border-color: #E50914 !important;
  box-shadow: 0 0 30px rgba(229, 9, 20, 0.5) !important;
  transform: translateY(-4px) scale(1.04);
}

/* 6. CUSTOM BOX */
.jide-brand-item.preset-custom_box {
  background: #1a1a1c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

/* ==========================================================================
   MODE 1: CONTINUOUS MARQUEE
   ========================================================================== */
.jide-marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.jide-marquee-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  will-change: transform;
  animation: jide-marquee-scroll 30s linear infinite;
}

.jide-marquee-track.direction-right {
  animation-direction: reverse;
}

.jide-marquee-container:hover .jide-marquee-track.pause-on-hover {
  animation-play-state: paused;
}

@keyframes jide-marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ==========================================================================
   MODE 2: SWIPER CAROUSEL & NAVIGATION
   ========================================================================== */
.jide-carousel-container {
  position: relative;
  width: 100%;
  padding: 0 50px;
  box-sizing: border-box;
}

.jide-carousel-container .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
}

.jide-carousel-container .swiper-pagination {
  position: relative;
  margin-top: 20px;
}

.jide-carousel-container .swiper-pagination-bullet {
  background: #666666;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.jide-carousel-container .swiper-pagination-bullet-active {
  background: var(--jide-red-accent);
  opacity: 1;
  width: 22px;
  border-radius: 4px;
}

.jide-carousel-container .swiper-button-next,
.jide-carousel-container .swiper-button-prev {
  color: var(--jide-red-accent);
  transition: transform 0.2s ease, color 0.2s ease;
}

.jide-carousel-container .swiper-button-next:after,
.jide-carousel-container .swiper-button-prev:after {
  font-size: 22px;
  font-weight: bold;
}

.jide-carousel-container .swiper-button-next:hover,
.jide-carousel-container .swiper-button-prev:hover {
  transform: scale(1.25);
  color: #ffffff;
}

/* Navigation Placement Presets */
.nav-pos-outside .swiper-button-prev {
  left: 5px;
}
.nav-pos-outside .swiper-button-next {
  right: 5px;
}

.nav-pos-inside .swiper-button-prev {
  left: 20px;
}
.nav-pos-inside .swiper-button-next {
  right: 20px;
}

.nav-pos-below .swiper-button-prev,
.nav-pos-below .swiper-button-next {
  top: auto;
  bottom: -35px;
}
.nav-pos-below .swiper-button-prev {
  left: calc(50% - 30px);
}
.nav-pos-below .swiper-button-next {
  right: calc(50% - 30px);
}

/* ==========================================================================
   MODE 3: STACKED REVEAL (INVERTED PYRAMID, 2-ROW STACK & GRID)
   ========================================================================== */

/* Outer Layout Wrappers (Pure layout, NO card backgrounds/borders) */
.jide-pyramid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.jide-pyramid-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  flex-wrap: wrap;
}

.jide-stacked-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 30px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Stacked Item Animation Wrapper (NO card background/border on wrapper itself!) */
.jide-stacked-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  opacity: 0;
  transform: translateY(35px) scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.jide-stacked-container.is-visible .jide-stacked-item,
.jide-pyramid-container.is-visible .jide-stacked-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .jide-brand-showcase-wrapper {
    padding: 35px 0;
  }
  .jide-carousel-container {
    padding: 0 35px;
  }
}

@media (max-width: 768px) {
  .jide-brand-showcase-wrapper {
    padding: 25px 0;
  }
  .jide-brand-showcase-header {
    margin-bottom: 25px;
  }
  .jide-brand-showcase-subtitle {
    font-size: 20px;
  }
  .jide-brand-item {
    padding: 10px 18px;
  }
  .jide-carousel-container {
    padding: 0 20px;
  }
  .jide-pyramid-container {
    gap: 18px;
    padding: 0 15px;
  }
  .jide-pyramid-row {
    gap: 15px;
  }
  .jide-stacked-container {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: 15px;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .jide-brand-showcase-title {
    font-size: 11px;
    letter-spacing: 2px;
  }
  .jide-brand-showcase-subtitle {
    font-size: 18px;
  }
  .jide-brand-item {
    padding: 8px 14px;
  }
  .jide-pyramid-row {
    gap: 12px;
  }
  .jide-stacked-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
