/* ============================================= */
/* EVENTS SECTION - Modern Neon Hover Design    */
/* ============================================= */

.events-section {
  padding: 120px 0;
  background: linear-gradient(180deg,
    rgba(15, 10, 25, 0.95) 0%,
    rgba(25, 15, 40, 0.98) 50%,
    rgba(15, 10, 25, 0.95) 100%
  );
  position: relative;
  overflow: hidden;
}

.events-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(154, 77, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 77, 196, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.events-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.events-header {
  text-align: center;
  margin-bottom: 80px;
}

/* Event Cards Grid/Slider */
.events-slider-wrapper {
  position: relative;
  overflow: hidden;
  padding: 20px 0; /* Add padding to allow hover effects to expand */
}

.events-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 10px; /* Small padding for side overflow */
}

/* Slider mode when 4+ cards */
.events-slider.slider-mode {
  display: flex;
  flex-wrap: nowrap;
  overflow: visible;
}

.events-slider.slider-mode .event-card {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 320px;
}

/* Event Card Base - Minimal Modern */
.event-card {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(15px);
  border-radius: 20px;
  overflow: visible; /* Allow hover effects to expand beyond card */
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1; /* Base z-index */
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(154, 77, 255, 0.25);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(154, 77, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 10; /* Bring to front on hover */
}

/* Event Image Container */
.event-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* Square 1:1 ratio for 1024x1024px images */
  overflow: hidden; /* Keep overflow hidden for image only */
  border-radius: 20px; /* Match card border radius */
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.event-card:hover .event-image {
  filter: blur(4px) brightness(0.7);
  transform: scale(1.02);
}

/* Date Badge - Minimal */
.event-date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #9a4dff 0%, #ff4dc4 100%);
  padding: 10px 14px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 
    0 4px 16px rgba(154, 77, 255, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  z-index: 2;
  transition: all 0.3s ease;
}

.event-card:hover .event-date-badge {
  transform: scale(1.05);
  box-shadow: 
    0 6px 20px rgba(154, 77, 255, 0.4),
    0 0 20px rgba(255, 77, 196, 0.2);
}

.event-day {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  margin-bottom: 4px;
  font-family: 'Poppins', sans-serif;
}

.event-month {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1px;
}

/* Hover Overlay - Minimal Modern */
.event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 3;
}

.event-card:hover .event-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Overlay Card - Minimal Clean */
.event-overlay-card {
  background: linear-gradient(135deg,
    rgba(154, 77, 255, 0.12) 0%,
    rgba(255, 77, 196, 0.12) 100%
  );
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1.5px solid rgba(154, 77, 255, 0.3);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 12px 40px rgba(154, 77, 255, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  position: relative;
  max-width: 85%;
}

.event-card:hover .event-overlay-card {
  transform: scale(1);
  opacity: 1;
}

/* Subtle Glow */
.event-overlay-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #9a4dff, #ff4dc4);
  border-radius: 16px;
  opacity: 0;
  filter: blur(12px);
  z-index: -1;
  transition: opacity 0.3s ease;
}

.event-card:hover .event-overlay-card::before {
  opacity: 0.3;
}

.event-overlay-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(154, 77, 255, 0.3);
  line-height: 1.3;
}

/* Book Now Button - Minimal */
.event-book-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #9a4dff 0%, #ff4dc4 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 20px rgba(154, 77, 255, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  position: relative;
}

.event-book-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 30px rgba(154, 77, 255, 0.5),
    0 0 30px rgba(255, 77, 196, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.event-book-button svg {
  transition: transform 0.3s ease;
}

.event-book-button:hover svg {
  transform: translateX(4px);
}

/* Event Ended Badge */
.event-ended-badge {
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Ended Event Card Gray Effect */
.event-card.event-ended {
  filter: grayscale(0.7);
  opacity: 0.7;
}

.event-card.event-ended:hover {
  transform: translateY(-4px);
  filter: grayscale(0.5);
}

/* Event Info Section */
.event-info {
  padding: 28px;
}

.event-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
}

.event-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
}

.event-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.event-price,
.event-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.event-price svg,
.event-contact svg {
  color: #9a4dff;
}

/* Slider Controls */
.events-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
}

.event-slider-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(30px) saturate(1.5);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-slider-btn:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border-color: rgba(154, 77, 255, 0.5);
  transform: scale(1.1);
  box-shadow: 
    0 15px 35px rgba(154, 77, 255, 0.3),
    0 0 40px rgba(255, 77, 196, 0.2);
}

/* Event Dots */
.event-slider-dots {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  backdrop-filter: blur(40px) saturate(1.8);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.event-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}

.event-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(154, 77, 255, 0.6) 0%,
    rgba(255, 77, 196, 0.4) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: all 0.4s ease;
  filter: blur(8px);
}

.event-dot.active {
  width: 28px;
  border-radius: 50px;
  background: linear-gradient(135deg,
    rgba(154, 77, 255, 0.5) 0%,
    rgba(255, 77, 196, 0.4) 100%
  );
  box-shadow: 
    0 0 25px rgba(154, 77, 255, 0.6),
    0 0 40px rgba(255, 77, 196, 0.4);
}

.event-dot.active::before {
  opacity: 1;
  width: 40px;
  height: 40px;
}

/* ============================================= */
/* EVENTS RESPONSIVE                             */
/* ============================================= */

@media (max-width: 1024px) {
  .events-section {
    padding: 80px 0;
  }
  
  .events-container {
    padding: 0 30px;
  }
  
  .events-slider {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .events-section {
    padding: 60px 0;
  }
  
  .events-container {
    padding: 0 20px;
  }
  
  .events-header {
    margin-bottom: 50px;
  }
  
  /* Mobile: Always use slider mode - 1 card at a time */
  .events-slider-wrapper {
    overflow: hidden;
  }
  
  .events-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .events-slider.slider-mode .event-card,
  .events-slider .event-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
  
  .event-image-container {
    aspect-ratio: 1 / 1; /* Maintain square ratio on mobile */
  }
  
  .event-overlay-card {
    max-width: 90%;
    padding: 32px 24px;
  }
  
  .event-overlay-title {
    font-size: 1.6rem;
  }
  
  .event-book-button {
    padding: 14px 28px;
    font-size: 1rem;
  }
  
  /* Mobile: Tap to show overlay */
  .event-card.active .event-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  
  .event-card.active .event-overlay-card {
    transform: scale(1);
    opacity: 1;
  }
  
  .event-card.active .event-image {
    filter: blur(4px) brightness(0.7);
    transform: scale(1.02);
  }
  
  /* Mobile controls - always show */
  .events-slider-controls {
    display: flex !important;
    margin-top: 40px;
    gap: 16px;
  }
  
  .event-slider-btn {
    width: 48px;
    height: 48px;
  }
  
  .event-slider-dots {
    padding: 8px 16px;
  }
  
  .event-dot {
    width: 8px;
    height: 8px;
  }
  
  .event-dot.active {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .events-section {
    padding: 50px 0;
  }
  
  .events-container {
    padding: 0 15px;
  }
  
  .event-image-container {
    aspect-ratio: 1 / 1; /* Maintain square ratio on small mobile */
  }
  
  .event-date-badge {
    top: 12px;
    left: 12px;
    padding: 8px 12px;
  }
  
  .event-day {
    font-size: 1.5rem;
  }
  
  .event-month {
    font-size: 0.75rem;
  }
  
  .event-info {
    padding: 20px;
  }
  
  .event-title {
    font-size: 1.3rem;
  }
  
  .event-description {
    font-size: 0.9rem;
  }
  
  .event-meta {
    gap: 16px;
    flex-direction: column;
  }
  
  .event-overlay-card {
    padding: 24px 20px;
  }
  
  .event-overlay-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  
  .event-book-button {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .event-slider-btn {
    width: 44px;
    height: 44px;
  }
  
  .event-slider-dots {
    padding: 8px 14px;
  }
  
  .event-dot {
    width: 7px;
    height: 7px;
  }
  
  .event-dot.active {
    width: 20px;
  }
}

