/* ============================================================
   SNIPER BRAND — hero.css
   Hero Auto-rotating Carousel (Half-height Tactical Format)
   ============================================================ */

.hero-section {
  width: 100%;
  background: #0A0A0A;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #1C1C1C;
}

/* Half the standard screen height: 46vh (min 340px, max 480px) */
.carousel-container {
  position: relative;
  width: 100%;
  height: 48vh;
  min-height: 350px;
  max-height: 480px;
  overflow: hidden;
  background: #0D0D0D;
}

.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
}

/* Slide background image or placeholder */
.slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.slide-placeholder {
  background: radial-gradient(circle at 75% 40%, #20140A 0%, #0D0D0D 60%, #050505 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tactical grid & sniper crosshair watermark */
.slide-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 107, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.slide-placeholder::after {
  content: '';
  position: absolute;
  right: 12%;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23FF6B00' stroke-width='1.5'%3E%3Ccircle cx='50' cy='50' r='45' opacity='0.25'/%3E%3Ccircle cx='50' cy='50' r='28' opacity='0.35'/%3E%3Ccircle cx='50' cy='50' r='8' opacity='0.5'/%3E%3Cline x1='50' y1='2' x2='50' y2='98' opacity='0.3'/%3E%3Cline x1='2' y1='50' x2='98' y2='50' opacity='0.3'/%3E%3Cline x1='46' y1='50' x2='54' y2='50' stroke-width='2'/%3E%3Cline x1='50' y1='46' x2='50' y2='54' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.35;
  pointer-events: none;
  animation: radarPulse 8s infinite ease-in-out;
}

@keyframes radarPulse {
  0%, 100% { transform: translateY(-50%) rotate(0deg) scale(1); opacity: 0.3; }
  50% { transform: translateY(-50%) rotate(90deg) scale(1.04); opacity: 0.45; }
}

/* Gradient overlay for text legibility (Adidas style) */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.8) 35%,
    rgba(10, 10, 10, 0.3) 70%,
    rgba(10, 10, 10, 0.1) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Slide content typography */
.slide-content {
  position: relative;
  z-index: 3;
  padding: 40px 60px;
  max-width: 680px;
  color: #FFFFFF;
}

.slide-label {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--color-primary, #FF6B00);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slide-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--color-primary, #FF6B00);
  border-radius: 50%;
}

.slide-title {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.slide-subtitle {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  color: #BBBBBB;
  margin: 0 0 24px 0;
  max-width: 500px;
  letter-spacing: 0.5px;
}

.slide-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-primary, #FF6B00);
  color: #000000;
  padding: 12px 28px;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.35);
}

.btn-primary:hover {
  background: #FF8533;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

/* Nav arrows (Prev / Next) */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  width: 46px;
  height: 46px;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.carousel-btn:hover {
  background: var(--color-primary, #FF6B00);
  color: #000000;
  border-color: var(--color-primary, #FF6B00);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.6);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* Indicator dots */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot.active {
  background: var(--color-primary, #FF6B00);
  width: 32px;
  box-shadow: 0 0 8px rgba(255, 107, 0, 0.6);
}

.dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
}

/* ── Responsive Rules ────────────────────────────────────────── */
@media (max-width: 768px) {
  .carousel-container {
    height: 46vh;
    min-height: 330px;
  }
  .slide-content {
    padding: 24px;
    max-width: 90%;
  }
  .slide-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.45) 0%,
      rgba(10, 10, 10, 0.94) 100%
    );
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .carousel-prev {
    left: 8px;
  }
  .carousel-next {
    right: 8px;
  }
  .slide-placeholder::after {
    right: -10%;
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 540px) {
  .carousel-container {
    height: 50vh;
    min-height: 320px;
  }
  .slide-content {
    padding: 18px 16px;
    max-width: 100%;
  }
  .slide-title {
    font-size: clamp(1.5rem, 6.8vw, 2.2rem);
    margin-bottom: 6px;
  }
  .slide-subtitle {
    font-size: 0.8rem;
    line-height: 1.35;
    margin-bottom: 14px;
  }
  .slide-cta .btn-primary {
    padding: 10px 20px;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
  }
  .carousel-dots {
    right: 14px;
    bottom: 14px;
  }
  .dot {
    width: 8px;
    height: 3px;
  }
  .dot.active {
    width: 22px;
  }
}
