/**
 * Hero Slider - Core Styles
 * WHMCS Twenty-One Template
 */

/* Slider Container */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.hero-slider:focus {
  outline: 3px solid #60a5fa;
  outline-offset: -3px;
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

/* Slides Container */
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

/* Individual Slide */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  z-index: 1;
  pointer-events: none;
}

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

/* Transitioning slide should be below active but above inactive */
.hero-slide.transitioning:not(.active) {
  z-index: 2;
}

/* Slide Background */
.hero-slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-slide-background img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.hero-slide-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.65) 0%, rgba(37, 99, 235, 0.65) 100%);
  pointer-events: none;
}

/* Slide Content */
.hero-slide-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding: 40px 0;
}

.hero-slide-text {
  flex: 1;
  max-width: 600px;
  color: #ffffff;
}

.hero-slide-visual {
  flex: 0 0 auto;
  max-width: 500px;
}

.hero-slide-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* Slide Badge */
.hero-slide-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #ffffff;
}

/* Slide Title */
.hero-slide-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px 0;
  color: #ffffff;
}

/* Slide Description */
.hero-slide-description {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 24px 0;
  color: rgba(255, 255, 255, 0.95);
}

/* Slide Features */
.hero-slide-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hero-slide-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #ffffff;
}

.hero-slide-features li i {
  font-size: 18px;
  color: #60a5fa;
}

/* CTA Button */
.btn-hero {
  display: inline-block;
  padding: 14px 32px;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 300ms ease;
  border: 2px solid #ffffff;
}

.btn-hero:hover {
  background: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-hero:focus {
  outline: 3px solid #60a5fa;
  outline-offset: 2px;
}

/* Navigation Controls */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 300ms ease;
}

.hero-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.hero-nav:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.hero-nav-prev {
  left: 20px;
}

.hero-nav-next {
  right: 20px;
}

/* Pagination */
.hero-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 300ms ease;
  padding: 0;
}

.hero-pagination-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.hero-pagination-dot:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.hero-pagination-dot.active {
  background: #ffffff;
  width: 32px;
  border-radius: 6px;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ARIA Live Region */
.hero-slider-live-region {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
