/* ─── EVENTS PAGE CSS ─── */

/* ─── Filter Bar ─── */
.events-filter-section {
  padding: 32px 0 0;
  background: transparent;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(8,16,48,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  padding: 10px 16px;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}

.filter-icon { font-size: 1rem; opacity: 0.6; }

.filter-input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 0.9rem;
  font-family: var(--font-primary);
  width: 100%;
}

.filter-input::placeholder { color: rgba(255,255,255,0.4); }

.filter-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-full);
  padding: 4px;
}

.filter-tab {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-primary);
  transition: var(--transition);
}

.filter-tab.active,
.filter-tab:hover {
  background: linear-gradient(135deg, var(--dark-orange), var(--cranberry-red));
  color: white;
}

.filter-select {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  cursor: pointer;
  outline: none;
}

/* ─── Events Grid ─── */
.events-section { background: transparent; }

.events-section-header { margin-bottom: 32px; }

.events-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.events-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-upcoming { background: var(--dark-orange); box-shadow: 0 0 10px rgba(246,146,58,0.6); }
.dot-ongoing  { background: #4ade80; box-shadow: 0 0 10px rgba(74,222,128,0.6); animation: pulse 2s ease-in-out infinite; }
.dot-past     { background: var(--steel-blue); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(74,222,128,0.4); }
  50%       { box-shadow: 0 0 18px rgba(74,222,128,0.9); }
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ─── Event Card ─── */
.event-card {
  background: rgba(8,16,48,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-6px);
  border-color: rgba(246,146,58,0.3);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(246,146,58,0.1);
}

.event-card-header {
  padding: 28px 24px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.event-card-icon { font-size: 2.5rem; }

.event-card-badge { font-size: 0.75rem; }

.event-card-body {
  padding: 0 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: white;
}

.event-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.event-meta-item {
  font-size: 0.8rem;
  color: var(--steel-blue);
}

.event-card-body p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.event-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.event-btn {
  margin-top: auto;
  font-size: 0.85rem;
  padding: 10px 22px;
  display: inline-block;
  text-align: center;
}

/* Past card — slightly muted */
.past-card { opacity: 0.8; }
.past-card:hover { opacity: 1; }

.event-highlights {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.highlight-item {
  font-size: 0.78rem;
  color: #4ade80;
  font-weight: 500;
}

/* ─── Ongoing Banner ─── */
.ongoing-section {
  background: transparent;
}

.events-ongoing-banner {
  background: rgba(8,16,48,0.5);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.events-ongoing-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #4ade80, rgba(74,222,128,0.2));
}

.ongoing-pulse {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: ongoingPulse 2s ease-in-out infinite;
}

@keyframes ongoingPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  50%  { box-shadow: 0 0 0 12px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.ongoing-content h3 { font-size: 1.3rem; margin-bottom: 10px; }
.ongoing-content p  { font-size: 0.95rem; margin-bottom: 16px; }

.ongoing-details {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.badge-green {
  background: rgba(74,222,128,0.15);
  border: 1px solid rgba(74,222,128,0.4);
  color: #4ade80;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ─── No Results ─── */
.no-results {
  text-align: center;
  padding: 80px 24px;
  color: var(--steel-blue);
}

.no-results-icon { font-size: 3rem; margin-bottom: 16px; }
.no-results h3 { font-size: 1.3rem; margin-bottom: 8px; color: white; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .events-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; border-radius: var(--radius-lg); }
  .events-ongoing-banner { flex-direction: column; padding: 28px 24px; }
}
