/* ============================================
   EVENTS PAGE
   ============================================ */

/* Events sections */
.events-section {
  padding: var(--space-section) 0;
}

.events-section .card-event {
  margin-bottom: var(--space-xl);
}

.events-section .card-event:last-child {
  margin-bottom: 0;
}

/* Year headers */
.year-header {
  font-size: var(--text-h1);
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.02em;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--accent-primary);
  opacity: 0.7;
}

.year-header:first-of-type {
  margin-top: 0;
}

/* Empty state */
.events-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.events-empty i {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  display: block;
}

.events-empty p {
  color: var(--text-secondary);
  margin: 0;
}

.events-empty a {
  color: var(--accent-primary);
}

/* Upcoming event highlights */
.event-highlights {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.event-highlights li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-small);
  color: var(--text-secondary);
}

.event-highlights li i {
  color: var(--accent-primary);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Event actions */
.event-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.event-price {
  font-size: var(--text-small);
  color: var(--text-muted);
  font-weight: 500;
}

/* Event Photo Gallery */
.event-gallery {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.event-gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.event-gallery-thumb:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

.event-gallery-thumb img,
.event-gallery-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video play overlay on thumbnails */
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}

.video-play-overlay i {
  color: #fff;
  font-size: 1.25rem;
}

/* Lightbox */
.event-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.event-lightbox.active {
  display: flex;
}

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-media {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
}

video.lightbox-media {
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  color: #fff;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

/* Lightbox navigation arrows */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: var(--space-lg);
}

.lightbox-next {
  right: var(--space-lg);
}

/* Lightbox counter */
.lightbox-counter {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-small);
  font-weight: 500;
  z-index: 10;
}

/* CTA Section */
.section-cta {
  padding: var(--space-section) 0;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  position: relative;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(30, 58, 95, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

/* Resources / Media */
.resources-subsection-title {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
}

.resources-subsection-title:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.resources-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.resource-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  text-decoration: none;
  color: inherit;
  padding: var(--space-xl) var(--space-2xl);
}

.resource-item:hover {
  transform: translateY(-2px);
}

.resource-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-primary);
}

.resource-body {
  flex: 1;
  min-width: 0;
}

.resource-title {
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.resource-source {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.resource-description {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: 1.6;
}

.resource-link-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: var(--text-small);
  margin-top: var(--space-sm);
  transition: color var(--transition-base);
}

.resource-item:hover .resource-link-icon {
  color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .event-gallery-thumb {
    width: 64px;
    height: 64px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 1.25rem;
    padding: var(--space-sm) var(--space-md);
  }

  .lightbox-prev {
    left: var(--space-sm);
  }

  .lightbox-next {
    right: var(--space-sm);
  }

  .year-header {
    font-size: var(--text-h2);
  }

  .resource-item {
    padding: var(--space-lg);
    gap: var(--space-md);
  }

  .resource-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .resource-link-icon {
    display: none;
  }
}
