/* Event Feature Component Styles */

#event-feature {
  width: 100%;
  margin-bottom: var(--Space8);
  position: relative;
  overflow: hidden;
  /* Height can be adjusted or set via aspect ratio */
  height: 50vh;
  display: flex;
  flex-direction: column;
}

#event-feature .event-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Enable smooth scrolling for JS */
  height: 100%;
  width: 100%;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
  -ms-overflow-style: none;
  /* Hide scrollbar IE/Edge */
}

#event-feature .event-slider-track::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

#event-feature .event-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--ColorTextInverse);
}

/* Overlay for readability */
#event-feature .event-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 60%);
  z-index: 1;
}

#event-feature .event-content {
  position: relative;
  z-index: 2;
  padding: var(--Space8) var(--Space8);
  width: 100%;
  max-width: 1400px;
  /* Constrain content width */
  margin: 0 auto;
}

#event-feature .event-date {
  display: inline-block;
  background: hsla(var(--ColorBrand), 0.9);
  color: var(--White);
  padding: var(--Space2) var(--Space4);
  font-family: var(--FontFamilyMono);
  font-size: var(--FontSizeSM);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--Space3);
  border-radius: var(--RadiusSM);
  font-weight: var(--FontWeightBold);
}

#event-feature .event-title {
  font-size: var(--FontSize3XL);
  line-height: var(--LineHeightTight);
  margin: 0 0 var(--Space2) 0;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: var(--FontWeightBold);
  max-width: 900px;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
}

#event-feature .event-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  text-indent: -9999px;
}

/* Dot Indicators */
.event-dots {
  position: absolute;
  bottom: var(--Space4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--Space2);
  z-index: 10;
}

.event-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: hsla(var(--White), 0.4);
  border: 2px solid hsla(var(--White), 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}

.event-dot:hover {
  background-color: hsla(var(--White), 0.6);
  transform: scale(1.2);
}

.event-dot.active {
  background-color: hsla(var(--ColorBrand), 1);
  border-color: hsla(var(--White), 1);
  transform: scale(1.3);
}

.event-dot:focus-visible {
  outline: 2px solid hsla(var(--ColorBrand), 1);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  #event-feature {
    height: 60vh;
    min-height: 500px;
    margin-bottom: var(--Space4);
  }

  #event-feature .event-content {
    padding: var(--Space6) var(--Space3) var(--Space12) var(--Space3);
    max-width: 100%;
    min-height: 250px;
  }

  #event-feature .event-date {
    font-size: var(--FontSizeXS);
    padding: var(--Space1) var(--Space2);
    margin-bottom: var(--Space2);
    letter-spacing: 0.5px;
  }

  #event-feature .event-title {
    font-size: var(--FontSizeXL);
    line-height: 1.3;
    margin-bottom: var(--Space2);
    max-width: 100%;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
  }

  /* Stronger gradient overlay for better text readability on mobile */
  #event-feature .event-slide::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.1) 70%);
  }

  /* Adjust dot indicators for mobile */
  .event-dots {
    bottom: var(--Space3);
    gap: var(--Space1);
  }

  .event-dot {
    width: 10px;
    height: 10px;
  }

  .event-dot:hover {
    transform: scale(1.1);
  }

  .event-dot.active {
    transform: scale(1.2);
  }
}