/* ===== Main Page Redesign ===== */

/* Header Improvements */
.nav-link {
  font-family: var(--font-primary) !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  letter-spacing: 0.01em !important;
  transition: all 0.3s ease !important;
}

.nav-link:hover {
  opacity: 0.8 !important;
  transform: translateY(-1px) !important;
}

/* Hero Section - Modern Design */
.hero-main {
  background: white;
  color: #333;
  padding: 120px 0 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.03"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.03"/><circle cx="90" cy="40" r="1" fill="white" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-content-main {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.main-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  letter-spacing: 0.01em;
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: #000000;
  margin: 0 auto;
  border-radius: 2px;
  opacity: 0.8;
}

/* Gallery Section - Improved Layout */
.gallery-section {
  padding: 100px 0 120px 0;
  background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
  position: relative;
}

.gallery-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.gallery-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* Event Cards - Clean and Modern */
.events-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 32px !important;
  margin-top: 60px !important;
}

.event-card {
  background: white !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 320px !important;
}

.event-card:hover {
  transform: translateY(-12px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.event-link {
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none !important;
  color: inherit !important;
  width: 100% !important;
  height: 100% !important;
}

.event-image {
  aspect-ratio: 16/10 !important;
  overflow: hidden !important;
  background: #f8f9fa !important;
  position: relative !important;
}

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

.event-card:hover .event-image img {
  transform: scale(1.08) !important;
}

.event-placeholder {
  height: 100% !important;
  width: 100% !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  font-size: 2.8rem !important;
}

.event-info {
  padding: 24px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.event-title {
  font-family: var(--font-display) !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  color: var(--text-primary) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
}

.event-date {
  font-size: 0.95rem !important;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
}

/* Loading and Empty States */
.loading-container {
  text-align: center !important;
  padding: 80px 20px !important;
  grid-column: 1 / -1 !important;
}

.loading-spinner {
  width: 40px !important;
  height: 40px !important;
  border: 3px solid #f3f3f3 !important;
  border-top: 3px solid #667eea !important;
  border-radius: 50% !important;
  animation: spin 1s linear infinite !important;
  margin: 0 auto 16px auto !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: var(--text-secondary) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
}

.empty-state,
.error-message {
  text-align: center !important;
  padding: 80px 20px !important;
  grid-column: 1 / -1 !important;
}

.empty-icon {
  font-size: 3rem !important;
  color: var(--text-secondary) !important;
  margin-bottom: 20px !important;
}

.empty-title,
.error-message h3 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  margin-bottom: 12px !important;
}

.empty-text,
.error-message p {
  color: var(--text-secondary) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-main {
    padding: 80px 0 60px 0;
  }
  
  .gallery-section {
    padding: 60px 0 80px 0;
  }
  
  .gallery-header {
    margin-bottom: 40px;
  }
  
  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px !important;
    margin-top: 40px !important;
  }
  
  .event-card {
    min-height: 280px !important;
  }
  
  .event-info {
    padding: 20px !important;
  }
}

@media (max-width: 480px) {
  .events-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .main-title {
    font-size: 2.2rem !important;
  }
  
  .main-subtitle {
    font-size: 1rem !important;
  }
}
