/**
 * Banner Storefront Styles
 * 
 * This CSS is for the static storefront only.
 * Editor-specific styles (.canvas-frame.*) are excluded.
 */

/* Banner Section */
.banner-section {
  position: relative;
  overflow: hidden;
}

/* Slides Container */
.banner-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual Slide */
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms ease-in-out;
}

.banner-slide.active {
  opacity: 1;
  z-index: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay */
.banner-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Slide Content */
.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  z-index: 2;
}

.slide-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
  font-size: 1.25rem;
  margin-bottom: 24px;
  max-width: 600px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navigation Arrows */
.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #1f2937;
}

.banner-nav:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.banner-nav.prev {
  left: 16px;
}

.banner-nav.next {
  right: 16px;
}

/* Dots Navigation */
.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.banner-dot.active {
  background: white;
  transform: scale(1.2);
}

.banner-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Countdown */
.banner-countdown {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  /* justify-content is set via inline style based on label position */
}

/* CTA Button */
.banner-section .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.banner-section .btn--primary,
.banner-section .btn--solid {
  background: var(--btn-bg, #0891b2);
  color: var(--btn-text, #ffffff);
  border-color: var(--btn-bg, #0891b2);
}

.banner-section .btn--primary:hover,
.banner-section .btn--solid:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.banner-section .btn--outline {
  background: transparent;
  border-color: currentColor;
}

.banner-section .btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.banner-section .btn--ghost {
  background: transparent;
  border-color: transparent;
}

.banner-section .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Placeholder (no images) */
.banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
  font-size: 1rem;
}

/* ========================================
   Coverflow Mode
   ======================================== */
.banner-coverflow {
  overflow: visible !important;
}

.banner-coverflow .coverflow-container {
  perspective: 1000px;
  perspective-origin: 50% 50%;
  overflow: visible;
}

.banner-coverflow .banner-slide {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}

.banner-coverflow .banner-slide.active {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.banner-coverflow .banner-slide:not(.active) {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

/* Coverflow navigation positioning */
.banner-coverflow .banner-nav {
  z-index: 20;
}

.banner-coverflow .banner-dots {
  z-index: 20;
}

/* ========================================
   Mosaic Mode
   ======================================== */
.banner-mosaic-mode {
  overflow: hidden;
}

.banner-mosaic {
  display: grid;
  width: 100%;
  height: 100%;
}

.mosaic-item {
  overflow: hidden;
  position: relative;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.mosaic-item:hover img {
  transform: scale(1.05);
}

/* Mosaic with 3 images - first spans 2 rows */
.mosaic-3 .mosaic-item-0 {
  grid-row: span 2;
}

/* Mosaic with 4 images - first spans 3 rows */
.mosaic-4 .mosaic-item-0 {
  grid-row: span 3;
}

/* Mosaic with 5 images - asymmetric layout */
.mosaic-5 .mosaic-item-0 {
  grid-row: span 2;
}

.mosaic-5 .mosaic-item-3 {
  grid-row: span 2;
}

.mosaic-5 .mosaic-item-4 {
  grid-column: span 2;
}

/* ========================================
   Responsive - Media Queries (Storefront)
   ======================================== */
@media (max-width: 768px) {
  /* Responsive banner height for tablet */
  .banner-section {
    max-height: 60vh;
    min-height: 250px;
  }

  .slide-title {
    font-size: 2rem;
  }

  .slide-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .banner-nav {
    width: 36px;
    height: 36px;
  }

  .banner-nav.prev {
    left: 12px;
  }

  .banner-nav.next {
    right: 12px;
  }

  .banner-section .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .banner-dots {
    bottom: 12px;
  }

  .banner-dot {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  /* Responsive banner height */
  .banner-section {
    max-height: 50vh;
    min-height: 200px;
  }

  .slide-content {
    padding: 16px;
  }

  .slide-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .slide-subtitle {
    font-size: 0.875rem;
    margin-bottom: 16px;
  }

  .banner-nav {
    width: 32px;
    height: 32px;
  }

  .banner-nav svg {
    width: 18px;
    height: 18px;
  }

  .banner-section .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .banner-countdown {
    gap: 4px;
  }

  /* Countdown responsive */
  .banner-countdown > div {
    min-width: 40px !important;
    padding: 6px 8px !important;
  }

  .banner-countdown span[style*="font-size"] {
    font-size: 16px !important;
  }
}

