@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #3b82f6;
  --accent: #f59e0b;
  --background: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--background);
  color: var(--text-primary);
  scroll-behavior: smooth;
}

/* Main Events Section */
.events-section {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e6f3ff 100%);
  overflow: hidden;
}

.events-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/assets/pattern.svg') center/cover;
  opacity: 0.1;
  pointer-events: none;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* Event Cards Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 1rem;
}

/* Enhanced Event Card */
.event-card {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  border-radius: 12px;
  background: white;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.event-card .overflow-hidden {
  position: relative;
}

.event-card img {
  transition: transform 0.5s ease;
  height: 250px;
  width: 100%;
  object-fit: cover;
}

.event-card:hover img {
  transform: scale(1.05);
}

/* Card Content */
.card-content {
  padding: 1.5rem;
  position: relative;
}

/* Status Badge */
.status-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 10;
}

.status-badge.live {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.upcoming {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Price Tag */
.price-tag {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2563eb;
  margin: 1rem 0;
}

/* Button Group */
.button-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  flex: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-outline {
  border: 2px solid #2563eb;
  color: #2563eb;
  background: transparent;
}

.btn-outline:hover {
  background: #2563eb;
  color: white;
}

/* Event Meta */
.event-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #64748b;
  font-size: 0.875rem;
  margin: 0.5rem 0;
}

.event-meta i {
  color: #2563eb;
}

/* Filter Sidebar */
.filter-sidebar {
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.filter-sidebar button {
  position: relative;
  transition: all 0.3s ease;
}

.filter-sidebar button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #2563eb;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.filter-sidebar button:hover::before,
.filter-sidebar button.active::before {
  transform: scaleY(1);
}

.filter-sidebar button.active {
  background: #f0f9ff;
  color: #2563eb;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .section-header h2 {
    font-size: 2.5rem;
  }
  
  .events-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
  }

  .button-group {
    flex-direction: column;
  }

  .event-card img {
    height: 200px;
  }
}

@media (max-width: 640px) {
  .events-grid {
    grid-template-columns: 1fr;
    padding: 0.5rem;
  }

  .event-image-container {
    padding-top: 75%;
  }

  .event-title {
    font-size: 1.25rem;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}
