/* Events Page Styles */

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
}

.event-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.event-card:hover {
  border-color: rgba(255,255,255,.18);
  transform: translateY(-2px);
}

.event-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.event-card-info {
  flex: 1;
  min-width: 0;
}

.event-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.event-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.event-desc {
  font-size: .88rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.event-attendees {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* RSVP Button */
.btn-rsvp {
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid var(--rose);
  background: transparent;
  color: var(--rose);
  cursor: pointer;
  transition: all .25s ease;
}
.btn-rsvp:hover {
  background: var(--rose);
  color: #fff;
}
.btn-rsvp.going {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}
.btn-rsvp.going:hover {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
}

/* Section Titles */
.events-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  margin-top: 8px;
}
.events-section-title.past {
  margin-top: 36px;
  color: var(--text-muted);
}

/* Past Event Card */
.event-card.event-past {
  opacity: .55;
}
.event-card.event-past:hover {
  opacity: .75;
}

/* Past Badge */
.badge-past {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, .08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, .1);
}

/* Empty State */
.events-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-soft);
}
.events-empty .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.events-empty h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text);
}
.events-empty p {
  font-size: .9rem;
  line-height: 1.7;
}

/* Event Photo Gallery */
.event-gallery {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 200px;
  margin: -24px -28px 20px -28px;
  width: calc(100% + 56px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background: #1a0a10;
}

.event-gallery-track {
  position: relative;
  width: 100%;
}

.event-gallery-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.event-gallery-slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}
.event-gallery-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Gallery Nav Arrows */
.event-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s, background .2s;
  z-index: 3;
  line-height: 1;
  padding: 0;
}
.event-gallery:hover .event-gallery-btn {
  opacity: 1;
}
.event-gallery-btn:hover {
  background: rgba(0, 0, 0, .7);
  border-color: rgba(255, 255, 255, .35);
}
.event-gallery-btn.prev {
  left: 10px;
}
.event-gallery-btn.next {
  right: 10px;
}

/* Gallery Dots */
.event-gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.event-gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.event-gallery-dot.active {
  background: #fff;
  transform: scale(1.25);
}
.event-gallery-dot:hover {
  background: rgba(255, 255, 255, .8);
}

/* Image counter badge */
.event-gallery::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(26, 10, 16, .6), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Card adjustments when gallery is present */
.event-card:has(.event-gallery) {
  padding-top: 24px;
}

/* Mobile: always show arrows on touch devices */
@media (hover: none) {
  .event-gallery-btn {
    opacity: .8;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 600px) {
  .event-gallery {
    min-height: 160px;
  }
}

/* Notification Badge */
.nav-item, .tab-item {
  position: relative;
}
.nav-badge {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: var(--rose-light);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 107, 157, .6);
  animation: badgePulse 2s ease-in-out infinite;
}
.tab-item .nav-badge {
  top: 4px;
  right: 4px;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}

/* Welcome Modal */
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
  animation: fadeIn .3s ease;
}
.welcome-modal {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 48px);
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.welcome-modal > * {
  position: relative;
  z-index: 1;
}
.welcome-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}
.welcome-modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.welcome-modal p {
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.welcome-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
  transition: color .2s;
}
.welcome-close:hover {
  color: var(--text);
}
.welcome-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.welcome-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 87, 128, .3);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
