/* EVENT DETAILS PAGE STYLES */
:root {
  --bg-color: #f8faff;
  --text-color: #333;
  --card-bg: #fff;
  --accent-primary: #c44bff;
  --accent-secondary: #ff629b;
  --border-color: #e1e5e9;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 10px 40px rgba(196, 75, 255, 0.15);
}

body.dark, body.dark-mode {
  --bg-color: #0f0f1a;
  --text-color: #f5f5f5;
  --card-bg: #1a1a2a;
  --accent-primary: #ff629b;
  --accent-secondary: #c44bff;
  --border-color: #2d2d44;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  --hover-shadow: 0 10px 40px rgba(255, 98, 155, 0.25);
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
}

/* Page container */
.event-detail {
  max-width: 900px;
  width: 90%;
  margin: 100px auto 60px !important;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 40px 50px;
  border: 1px solid var(--border-color);
  animation: fadeIn 0.6s ease-in-out;
  position: relative;
  overflow: hidden;
  
}

.event-detail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

/* Title */
.event-detail h1 {
  font-size: 2.5rem;
  color: var(--accent-primary);
  text-align: center;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.2;
}

/* Meta info (date, time, etc.) */
.event-detail p {
  font-size: 1.1rem;
  margin: 12px 0;
  color: var(--text-color);
  opacity: 0.9;
}

.event-detail strong {
  color: var(--accent-secondary);
  font-weight: 600;
}

/* Description box */
.event-description {
  line-height: 1.7;
  margin-top: 30px;
  color: var(--text-color);
  font-size: 1.1rem;
  background: rgba(196, 75, 255, 0.03);
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid var(--accent-primary);
}

/* Event meta section */
.event-meta {
  margin-top: 30px;
  background: rgba(196, 75, 255, 0.08);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  color: var(--accent-primary);
  font-size: 1.1rem;
  border: 1px solid rgba(196, 75, 255, 0.2);
}

/* Stats section */
.event-stats {
  margin-top: 40px;
  background: rgba(196, 75, 255, 0.05);
  padding: 25px;
  border-radius: 15px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  border: 1px solid rgba(196, 75, 255, 0.1);
}

.event-stats div {
  font-size: 1.1rem;
  color: var(--accent-primary);
  font-weight: 600;
  text-align: center;
  padding: 10px 20px;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  min-width: 120px;
}

/* Back to events link */
.back-link {
  display: inline-block;
  text-align: center;
  margin-top: 40px;
  text-decoration: none;
  color: var(--accent-primary);
  font-weight: 600;
  padding: 12px 24px;
  border: 2px solid var(--accent-primary);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
}

.back-link:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 75, 255, 0.3);
  text-decoration: none;
}

/* Smooth fade animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .event-detail {
    padding: 30px 25px;
    margin: 80px auto 40px;
  }

  .event-detail h1 {
    font-size: 2rem;
  }

  .event-description {
    padding: 20px;
    font-size: 1rem;
  }

  .event-stats {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
  }

  .event-stats div {
    min-width: auto;
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .event-detail {
    padding: 25px 20px;
    margin: 70px auto 30px;
  }

  .event-detail h1 {
    font-size: 1.7rem;
  }

  .event-detail p {
    font-size: 1rem;
  }

  .event-description {
    padding: 15px;
    font-size: 0.95rem;
  }

  .back-link {
    width: 100%;
    text-align: center;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .event-detail {
    animation: none;
  }
  
  .back-link:hover {
    transform: none;
  }
}
.volunteer-section {
  text-align: center;
  margin-top: 40px;
}

.volunteer-btn {
  background: #7a2cff;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.volunteer-btn:hover {
  background: #a64aff;
  transform: scale(1.05);
}
.event-info-grid.dark-mode{
  background-color: #181818;
}
