﻿/* ==========================================================================
   STTS ISRAEL - KINETIC MULTI-OBJECT HERO SLIDER STYLES
   Features: Layered multi-directional object fly-in animations,
   glassmorphism floating cards, autoplay progress timer, responsive layout.
   ========================================================================== */

/* Fullscreen Hero Slider Container (Adjusted to fit 100% inside viewport above fold) */
.hero-slider-cinema {
  position: relative;
  width: 100%;
  height: calc(100vh - 105px);
  min-height: 640px;
  overflow: hidden;
  background: #090d16;
  color: #ffffff;
}

/* Slider Track & Slide Item */
.hero-slider-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 5;
}

/* Ken-Burns Background Zoom */
.hero-slide-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1.12);
}

/* Deep Cinematic Scrim */
.hero-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.65) 0%,
    rgba(15, 23, 42, 0.40) 35%,
    rgba(15, 23, 42, 0.75) 75%,
    rgba(15, 23, 42, 0.95) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Slide Content Wrap (Layered grid inside viewport above search filter) */
.hero-slider-content-wrap {
  position: relative;
  z-index: 10;
  height: 100%;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 76px 205px 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Top Navigation & Info Header Area inside slide */
.hero-slider-stage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-grow: 1;
  padding-bottom: 8px;
}

.hero-slider-left-col {
  flex: 1 1 100%;
  max-width: 760px;
}

.hero-slider-right-col {
  display: none !important;
}

/* ==========================================================================
   KINETIC MULTI-OBJECT ANIMATION LAYERS
   Each object enters from a distinct direction with staggered spring physics!
   ========================================================================== */

/* 1. Category Tag (Enters from Top-Left) */
.layer-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translate3d(-80px, -40px, 0) scale(0.85);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.hero-slide.active .layer-tag {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  transition-delay: 0.15s;
}

/* 2. Main Title (Enters from Far-Left with strong spring) */
.layer-title {
  font-size: clamp(2.1rem, 3.2vw, 2.85rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  transform: translate3d(-140px, 0, 0);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.layer-title .title-accent {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-slide.active .layer-title {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  transition-delay: 0.28s;
}

/* 3. Description (Enters from Left-Bottom) */
.layer-desc {
  font-size: 1.05rem;
  color: rgba(241, 245, 249, 0.9);
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 580px;
  transform: translate3d(-80px, 30px, 0);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.hero-slide.active .layer-desc {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  transition-delay: 0.42s;
}

/* 4. Highlights Chips (Hidden to keep hero banner clean & spacious) */
.layer-features {
  display: none !important;
}

.feature-chip {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feature-chip i {
  color: #34d399;
}

.hero-slide.active .layer-features {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  transition-delay: 0.54s;
}

/* 5. Action Buttons (Enters from Bottom-Up with pop scale) */
.layer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translate3d(0, 50px, 0) scale(0.92);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.hero-slide.active .layer-actions {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  transition-delay: 0.66s;
}

@media (max-width: 767.98px) {
  .layer-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
  }

  .layer-actions .btn {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 8px 14px !important;
  }
}

/* 6. Floating Review Card (Enters from Top-Right with slight tilt) */
.layer-review-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 10px 16px;
  max-width: 320px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  transform: translate3d(120px, -60px, 0) rotate(8deg);
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.hero-slide.active .layer-review-card {
  transform: translate3d(0, 0, 0) rotate(0deg);
  opacity: 1;
  transition-delay: 0.36s;
}

.review-card-stars {
  color: #facc15;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.review-card-text {
  font-size: 0.82rem;
  color: #f1f5f9;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 8px;
}

.review-card-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.review-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #34d399;
  object-fit: cover;
}

/* 7. Floating 3D Showcase Card (Enters from Far-Right with dynamic tilt) */
.layer-showcase-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  padding: 12px 18px;
  max-width: 320px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  transform: translate3d(160px, 50px, 0) rotate(-6deg);
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.hero-slide.active .layer-showcase-card {
  transform: translate3d(0, 0, 0) rotate(0deg);
  opacity: 1;
  transition-delay: 0.52s;
}

.showcase-badge-deal {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.showcase-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.showcase-price-amount {
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.showcase-price-unit {
  font-size: 0.75rem;
  color: #cbd5e1;
}

.showcase-perks-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: #e2e8f0;
}

.showcase-perk-item i {
  color: #34d399;
  margin-right: 6px;
}

/* Pinned Slider Footer Dock (Controls HUD + Search Filter pinned to viewport bottom) */
.hero-slider-footer-dock {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 25;
}

@media (max-width: 991.98px) {
  .hero-slider-footer-dock {
    bottom: 8px;
  }
}
.hero-slider-controls-hud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.btn-slider-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 26;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-slider-arrow-left {
  left: 20px;
}

.btn-slider-arrow-right {
  right: 20px;
}

[dir="rtl"] .btn-slider-arrow-left {
  left: auto;
  right: 20px;
}

[dir="rtl"] .btn-slider-arrow-right {
  right: auto;
  left: 20px;
}

[dir="rtl"] .btn-slider-arrow i {
  transform: rotate(180deg);
}

.btn-slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 20px rgba(11, 107, 58, 0.5);
}

.slider-progress-track-wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-counter-display {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.slider-counter-display .current-num {
  color: #ffffff;
  font-size: 1rem;
}

/* Indicators Pills with individual progress */
.slider-pagination-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-grow: 1;
}

.slider-pill-item {
  position: relative;
  height: 6px;
  flex: 1;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: height 0.2s ease, background 0.3s;
}

.slider-pill-item:hover {
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
}

.slider-pill-item.active {
  background: rgba(255, 255, 255, 0.3);
}

.slider-pill-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #34d399, #0b6b3a);
  border-radius: 10px;
}

.slider-pill-item.active .slider-pill-progress-bar {
  width: 100%;
  transition: width 5.5s linear;
}

/* Auto Play / Pause Button */
.btn-slider-pause {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.btn-slider-pause:hover {
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR KINETIC SLIDER
   ========================================================================== */
@media (max-width: 1199.98px) {
  .layer-title {
    font-size: 2.5rem;
  }
  .layer-showcase-card, .layer-review-card {
    max-width: 290px;
  }
}

@media (max-width: 991.98px) {
  .hero-slider-stage-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
  }
  
  .hero-slider-left-col {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .hero-slider-right-col {
    display: none; /* Hide secondary floating cards on smaller tablets to keep zero scroll and avoid clutter */
  }

  .layer-title {
    font-size: 2.1rem;
  }

  .layer-desc {
    font-size: 0.95rem;
  }
  
  .hero-slider-content-wrap {
    padding-top: 80px;
  }
}

@media (max-width: 575.98px) {
  .layer-title {
    font-size: 1.65rem;
    margin-bottom: 8px;
  }
  
  .layer-tag {
    font-size: 0.72rem;
    padding: 4px 12px;
    margin-bottom: 8px;
  }
  
  .layer-desc {
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .feature-chip {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  
  .hero-slider-controls-hud {
    margin-bottom: 8px;
  }

  .hero-slider-content-wrap {
    padding: 76px 52px 210px 52px;
  }

  .btn-slider-arrow {
    top: 34%;
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .btn-slider-arrow-left {
    left: 10px;
  }

  .btn-slider-arrow-right {
    right: 10px;
  }

  [dir="rtl"] .btn-slider-arrow-left {
    left: auto;
    right: 10px;
  }

  [dir="rtl"] .btn-slider-arrow-right {
    right: auto;
    left: 10px;
  }
}
