/* home-header.css */

.carousel-slide {
  position: relative;
  height: 500px;
  /* Same as event header */
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.carousel-slide .header__overlay {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
}

.carousel-slide .header__content {
  height: 100%;
  display: flex;
  align-items: flex-end;
  width: 100%;
}

.carousel-slide .header__bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0) 100%);
  padding: 50px;
}

.carousel-slide .header__text-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: white;
  max-width: 70%;
}

.carousel-slide .header__title {
  font-size: 4.5rem;
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
  color: white;
}

.carousel-slide .slide-description {
  font-size: 1.6rem;
  margin: 0;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  color: white;
}

.carousel-slide .header__buy-btn {
  background: var(--main-color);
  color: white;
  border: none;
  padding: 15px 35px;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  z-index: 11;
  position: relative;
}

.carousel-slide .header__buy-btn:hover {
  background: var(--second-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* animation placeholder */
.carousel-slide.placeholder {
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.1) 100%);
  animation: carousel-slide_placeholder-animation 1.5s infinite;
}

@keyframes carousel-slide_placeholder-animation {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.carousel-slide.placeholder::before {
  /* content: "No hay eventos disponibles"; */
  color: #999;
  font-size: 1.6rem;
}

/* Media Queries */
@media screen and (max-width: 992px) {
  .carousel-slide {
    height: 450px;
  }

  .carousel-slide .header__bottom-content {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 30px;
  }

  .carousel-slide .header__text-container {
    max-width: 100%;
  }

  .carousel-slide .header__buy-btn {
    align-self: stretch;
    text-align: center;
  }
}

@media screen and (max-width: 767px) {
  .carousel-slide {
    height: 400px;
  }

  .carousel-slide .header__title {
    font-size: 2.5rem;
  }

  .carousel-slide .slide-description {
    font-size: 1.4rem;
  }

  .carousel-slide .header__buy-btn {
    padding: 12px 25px;
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 480px) {
  .carousel-slide .header__title {
    font-size: 2rem;
  }

  .carousel-slide .slide-description {
    font-size: 1.3rem;
  }
}