/* Page-specific styles for Gallery page */

/* Hero Section - Consistent with main styles */
.hero-static {
  background: linear-gradient(135deg, var(--background-light) 0%, var(--border-color) 100%);
  text-align: center;
  padding: 120px 0 60px;
}

.hero-static .hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero-static .hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Filter Section */
.filter-section {
  padding: 40px 0;
  background: var(--background-white);
  border-bottom: 1px solid var(--border-color);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  background: var(--background-light);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: var(--background-white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* Events Section */
.events-section {
  padding: 80px 0;
  background: var(--background-white);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.event-card {
  background: var(--background-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.4s ease; /* Keep for specific animations */
  opacity: 1;
  transform: translateY(0);
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  border-color: var(--border-color-hover);
}

.event-card.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.event-image {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.event-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary-color);
  color: var(--background-white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-content {
  padding: 24px;
}

.event-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.event-category {
  background: var(--background-light);
  color: var(--text-primary);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-date {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.event-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.event-subtitle {
  font-size: 16px;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 12px;
}

.event-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--background-white);
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--background-white);
  transform: translateY(-2px);
}

/* Load More Section */
.load-more-section {
  padding: 40px 0;
  text-align: center;
  background: var(--background-light);
}

.load-more-btn {
  background: var(--text-primary);
  color: var(--background-white);
  border: none;
  padding: 16px 32px;
  border-radius: var(--border-radius-md);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.load-more-btn:hover {
  background: var(--background-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.load-more-btn:disabled {
  background: var(--border-color);
  color: var(--text-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-static {
    padding: 100px 0 40px;
  }
  .hero-static .hero-title {
    font-size: 36px;
  }
  .hero-static .hero-subtitle {
    font-size: 18px;
  }
  .events-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .filter-buttons {
    gap: 12px;
  }
  .filter-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  .event-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .hero-static {
    padding: 80px 0 30px;
  }
  .hero-static .hero-title {
    font-size: 28px;
  }
  .hero-static .hero-subtitle {
    font-size: 16px;
  }
  .events-section {
    padding: 60px 0;
  }
  .event-content {
    padding: 20px;
  }
}

/* Animations */
.event-card.filtering {
  transition: all 0.5s ease;
}

.event-card.fade-out {
  opacity: 0;
  transform: scale(0.8);
}

.event-card.fade-in {
  opacity: 1;
  transform: scale(1);
}
