/**
 * TODA LA NOCHE Events Styles
 */

/* Container */
.tlne-events-container {
  margin: 30px 0;
}

/* Grid Layout */
.tlne-events-grid {
  display: grid;
  grid-gap: 20px;
}

.tlne-column-1 {
  grid-template-columns: 1fr;
}

.tlne-column-2 {
  grid-template-columns: repeat(2, 1fr);
}

.tlne-column-3 {
  grid-template-columns: repeat(3, 1fr);
}

.tlne-column-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .tlne-column-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .tlne-column-3,
  .tlne-column-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tlne-column-2,
  .tlne-column-3,
  .tlne-column-4 {
    grid-template-columns: 1fr;
  }
}

/* Event Card */
.tlne-event-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
}

.tlne-event-card:hover {
  transform: translateY(-8px);
}

.tlne-event-card-inner {
  border-radius: 12px;
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.tlne-event-card:hover .tlne-event-card-inner {
  box-shadow: 0 15px 30px rgba(215, 67, 50, 0.2);
}

/* Event Image */
.tlne-event-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.tlne-event-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.5s ease;
  filter: brightness(0.85);
}

.tlne-event-card:hover .tlne-event-thumbnail {
  transform: scale(1.08);
  filter: brightness(0.95);
}

.tlne-event-no-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #333 0%, #222 100%);
}

/* Event Overlay */
.tlne-event-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.7) 30%,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 0.1) 80%,
    transparent 100%
  );
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.tlne-event-card:hover .tlne-event-overlay {
  opacity: 1;
}

/* Event Badge */
.tlne-event-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transition: all 0.3s ease;
}

.tlne-event-featured {
  background: linear-gradient(135deg, #d74332 0%, #ff6b58 100%);
  color: #fff;
}

.tlne-event-card:hover .tlne-event-badge {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(215, 67, 50, 0.3);
}

/* Event Details */
.tlne-event-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: #fff;
  z-index: 2;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.tlne-event-card:hover .tlne-event-details {
  transform: translateY(-5px);
}

.tlne-event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.tlne-event-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  padding-bottom: 8px;
}

.tlne-event-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, #d74332, transparent);
  transition: width 0.3s ease;
}

.tlne-event-card:hover .tlne-event-title:after {
  width: 60px;
}

.tlne-event-rating {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 20px;
  color: #ffd700;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tlne-star-icon {
  margin-right: 4px;
}

.tlne-event-location {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tlne-location-icon {
  margin-right: 6px;
  font-size: 14px;
  color: #f195be;
}

/* Event Categories */
.tlne-event-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tlne-event-category {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.tlne-event-card:hover .tlne-event-category {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.tlne-category-electronica {
  background: linear-gradient(135deg, rgba(61, 74, 154, 0.9) 0%, rgba(87, 97, 177, 0.9) 100%);
  color: #fff;
}

.tlne-category-reggaeton {
  background: linear-gradient(135deg, rgba(241, 149, 190, 0.9) 0%, rgba(255, 175, 204, 0.9) 100%);
  color: #000;
}

.tlne-category-hiphop {
  background: linear-gradient(135deg, rgba(87, 85, 217, 0.9) 0%, rgba(110, 108, 235, 0.9) 100%);
  color: #fff;
}

.tlne-category-vip {
  background: linear-gradient(135deg, rgba(215, 67, 50, 0.9) 0%, rgba(235, 87, 70, 0.9) 100%);
  color: #fff;
}

/* Event Time */
.tlne-event-time {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tlne-time-icon {
  margin-right: 6px;
  font-size: 14px;
  color: #f195be;
}

/* Event Button */
.tlne-event-button {
  margin-top: 12px;
  transition: all 0.3s ease;
}

.tlne-button {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  text-transform: uppercase;
}

.tlne-event-card:hover .tlne-button {
  background-color: #d74332;
  border-color: #d74332;
  color: #fff;
  box-shadow: 0 5px 15px rgba(215, 67, 50, 0.4);
  transform: translateY(-2px);
}

/* Section Header */
.tlne-section-header {
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.tlne-section-header:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, transparent, #d74332, transparent);
}

.tlne-section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.tlne-section-description {
  font-size: 16px;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* View All Button */
.tlne-view-all-button {
  text-align: center;
  margin-top: 40px;
}

.tlne-primary-button {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #d74332 0%, #ff6b58 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(215, 67, 50, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tlne-primary-button:hover {
  background: linear-gradient(135deg, #c03a2b 0%, #e55a48 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(215, 67, 50, 0.4);
}

/* Reservation Form */
.tlne-reservation-form-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  border: 1px solid rgba(215, 67, 50, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.tlne-reservation-form-container h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.tlne-reservation-form-container h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, #d74332, transparent);
}

.tlne-reservation-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tlne-form-row {
  display: flex;
  flex-direction: column;
}

.tlne-form-row label {
  margin-bottom: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.tlne-form-row input,
.tlne-form-row select,
.tlne-form-row textarea {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 15px;
  transition: all 0.3s ease;
}

.tlne-form-row input:focus,
.tlne-form-row select:focus,
.tlne-form-row textarea:focus {
  outline: none;
  border-color: rgba(215, 67, 50, 0.7);
  box-shadow: 0 0 0 2px rgba(215, 67, 50, 0.2);
}

.tlne-submit-button {
  padding: 14px 24px;
  background: linear-gradient(135deg, #d74332 0%, #ff6b58 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(215, 67, 50, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tlne-submit-button:hover {
  background: linear-gradient(135deg, #c03a2b 0%, #e55a48 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(215, 67, 50, 0.4);
}

.required {
  color: #d74332;
}

/* Reservation Success */
.tlne-reservation-success {
  max-width: 600px;
  margin: 40px auto;
  padding: 40px 30px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  border: 1px solid rgba(92, 184, 92, 0.3);
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.tlne-success-icon {
  font-size: 60px;
  color: #5cb85c;
  margin-bottom: 25px;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.tlne-reservation-success h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #fff;
}

.tlne-reservation-success p {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.6;
}

.tlne-view-ticket-button {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #d74332 0%, #ff6b58 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(215, 67, 50, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tlne-view-ticket-button:hover {
  background: linear-gradient(135deg, #c03a2b 0%, #e55a48 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(215, 67, 50, 0.4);
}

.tlne-carousel {
  width: 100%;
  padding: 20px;
  overflow: hidden;
}

.tlne-carousel-container {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  gap: 20px;
  padding-bottom: 20px;
}

.tlne-carousel-item {
  flex: 0 0 85%;
  scroll-snap-align: start;
  padding: 10px;
  transition: all 0.3s ease;
}

/* Ocultar la barra de scroll pero mantener la funcionalidad */
.tlne-carousel-container::-webkit-scrollbar {
  display: none;
}

/* Estilo de las tarjetas para que se parezcan a la imagen */
.tlne-carousel .tlne-event-card-inner {
  background-color: transparent;
  border: 2px solid #333;
  border-radius: 15px;
  overflow: hidden;
}

/* Efecto de carga del carrusel */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tlne-carousel-container {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive Carousel */
@media (min-width: 769px) {
  .tlne-carousel-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    overflow: visible;
  }

  .tlne-carousel-item {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .tlne-carousel {
    padding: 15px;
  }

  .tlne-carousel-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .tlne-carousel-item {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .tlne-carousel {
    padding: 10px;
  }

  .tlne-carousel-item {
    padding: 5px;
  }
}
