/* ==========================================================================
   CAROUSEL & TICKER STYLES - EXCLUSIVE CSS
   ========================================================================== */

/* ========= TICKER NEWS STRIP ========= */
.ticker-strip {
  display: flex;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-hot-pink));
  color: var(--white);
  padding: 0;
  font-size: var(--fs-sm);
  font-weight: var(--font-medium);
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  align-items: center;
  height: 40px;
  gap: 0;
  width: 100%;
}

.ticker-label {
  background: rgba(0, 0, 0, 0.2);
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 100%;
  flex-shrink: 0;
}

.ticker-label .material-icons {
  font-size: 20px;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  height: 100%;
  position: relative;
  width: 100%;
}

.ticker-track {
  display: flex;
  height: 100%;
  animation: ticker-scroll 80s linear infinite;
  gap: var(--space-2xl);
  width: max-content;
  will-change: transform;
}

.ticker-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 var(--space-2xl);
  flex-shrink: 0;
  color: var(--white);
}

.ticker-item strong {
  font-weight: var(--font-bold);
  margin-right: var(--space-sm);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-110%);
  }
}

/* ========= CAROUSEL SECTION ========= */
.carousel-section {
  padding: 0;
  margin: 0;
  background: transparent;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 65px;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent;
}

.carousel__wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 700;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.carousel__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Responsive media: video on desktop, images on tablet/mobile */
.carousel__media--desktop-only {
  display: none;
}

.carousel__media--mobile-tablet {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel__media--mobile-tablet .carousel__img {
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 1025px) {
  .carousel__media--desktop-only {
    display: block;
  }

  .carousel__media--mobile-tablet {
    display: none;
  }
}

/* Carousel Navigation Buttons */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-fast);
  color: var(--dark-gray);
}

.carousel__btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%) scale(1.1);
}

.carousel__btn--prev {
  left: 20px;
}

.carousel__btn--next {
  right: 20px;
}

.carousel__btn .material-icons {
  font-size: 28px;
}

/* Carousel Indicators */
.carousel__indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel__indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-normal);
}

.carousel__indicator.active {
  background: var(--white);
  border-color: var(--white);
}

.carousel__indicator:hover {
  border-color: var(--white);
}

/* ========= RESPONSIVE DESIGN ========= */

/* Desktop to Tablet (1200px and below) */
@media screen and (max-width: 1200px) {
  /* Ticker adjustments */
  .ticker-strip {
    height: 38px;
    font-size: var(--fs-xs);
  }
  
  .ticker-label {
    padding: 0 var(--space-md);
  }
  
  .ticker-label .material-icons {
    font-size: 18px;
  }
  
  .ticker-item {
    padding: 0 var(--space-lg);
  }
  
  .ticker-track {
    animation: ticker-scroll 60s linear infinite;
  }
  
  /* Carousel adjustments for 1200px and below */
  .carousel-section {
    margin-top: 50px;
  }
  
  .carousel__btn {
    width: 45px;
    height: 45px;
  }
  
  .carousel__btn .material-icons {
    font-size: 24px;
  }
  
  .carousel__btn--prev {
    left: 15px;
  }
  
  .carousel__btn--next {
    right: 15px;
  }
}

/* Tablet (1024px and below) */
@media screen and (max-width: 1024px) {
  /* Carousel adjustments for tablet */
  .carousel__wrapper {
    aspect-ratio: 1024 / 500;
  }
  
  .carousel__btn {
    width: 40px;
    height: 40px;
  }
  
  .carousel__btn .material-icons {
    font-size: 22px;
  }
  
  .carousel__btn--prev {
    left: 10px;
  }
  
  .carousel__btn--next {
    right: 10px;
  }
  
  .carousel__indicators {
    bottom: 15px;
  }
  
  .carousel__indicator {
    width: 10px;
    height: 10px;
    gap: 8px;
  }
  
  /* Carousel adjustments for tablets */
  .carousel-section {
    margin-top: 60px;
  }
}

/* Mobile (below 768px) */
@media screen and (max-width: 768px) {
  /* Ticker adjustments for mobile */
  .ticker-strip {
    position: fixed;
    top: 0;
    height: 45px;
    font-size: 0.7rem;
    z-index: 1001;
    left: 0;
    right: 0;
    width: 100%;
  }
  
  .ticker-label {
    padding: 0 var(--space-md);
    min-width: 40px;
  }
  
  .ticker-label .material-icons {
    font-size: 16px;
  }
  
  .ticker-item {
    padding: 0 var(--space-md);
  }
  
  .ticker-track {
    animation: ticker-scroll 45s linear infinite;
  }
  
  /* Carousel adjustments for mobile */
  .carousel-section {
    margin-top: 100px;
  }
  
  .carousel {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .carousel__wrapper {
    aspect-ratio: 768 / 450;
  }
  
  .carousel__btn {
    width: 35px;
    height: 35px;
  }
  
  .carousel__btn .material-icons {
    font-size: 20px;
  }
  
  .carousel__btn--prev {
    left: 8px;
  }
  
  .carousel__btn--next {
    right: 8px;
  }
  
  .carousel__indicators {
    bottom: 12px;
    gap: 6px;
  }
  
  .carousel__indicator {
    width: 8px;
    height: 8px;
  }
}

/* Medium Screens (900px and below) */
@media screen and (max-width: 900px) {
  /* Carousel adjustments */
  .carousel__btn {
    width: 40px;
    height: 40px;
  }
  
  .carousel__btn .material-icons {
    font-size: 22px;
  }
  
  .carousel__btn--prev {
    left: 10px;
  }
  
  .carousel__btn--next {
    right: 10px;
  }
  
  .carousel__indicators {
    bottom: 15px;
  }
  
  .carousel__indicator {
    width: 10px;
    height: 10px;
    gap: 8px;
  }
}
