/* =====================================================
   IEEE RAS SMU — Events Page (redesigned purple bg)
   ===================================================== */

/* ===== EMBEDDED COUNTDOWN BANNER ===== */
.ev-countdown-wrap {
  max-width: 1160px;
  margin: 0 auto 3rem;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30,0,55,0.95) 0%, rgba(70,0,110,0.85) 100%);
  border: 1px solid rgba(217,126,255,0.25);
  box-shadow: 0 8px 40px rgba(8,0,13,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
}
.ev-countdown-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(180,80,255,0.12), transparent 65%);
  pointer-events: none;
}
.ev-countdown-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.5rem;
  flex-wrap: wrap;
}
.ev-cd-left { flex: 1; min-width: 200px; }
.ev-cd-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pm);
  margin-bottom: .6rem;
}
.ecd-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pm);
  box-shadow: 0 0 8px var(--pm);
  animation: ecd-dot-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes ecd-dot-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.6); }
}
.ev-cd-title {
  font-family: var(--fd);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: .4rem;
}
.ev-cd-meta {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 400;
}
.ev-cd-right { flex-shrink: 0; }
.ev-cd-timer {
  display: flex;
  align-items: flex-end;
  gap: .4rem;
}
.ev-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}
.ev-cd-n {
  font-family: var(--fd);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--p);
  filter: drop-shadow(0 0 12px rgba(217,126,255,.6));
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ev-cd-u {
  font-size: .55rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--subtle);
  font-weight: 500;
}
.ev-cd-sep {
  font-family: var(--fd);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: rgba(217,126,255,.3);
  line-height: 1;
  padding-bottom: .55rem;
  align-self: flex-end;
}

/* Light mode */
[data-theme="light"] .ev-countdown-wrap {
  background: linear-gradient(135deg, rgba(245,235,255,0.97) 0%, rgba(225,210,255,0.90) 100%);
  border-color: rgba(124,34,184,0.22);
  box-shadow: 0 8px 40px rgba(95,1,128,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
}
[data-theme="light"] .ev-cd-meta { color: rgba(26,0,58,.5); }

@media (max-width: 600px) {
  .ev-countdown-inner { padding: 1.5rem; flex-direction: column; align-items: flex-start; }
  .ev-cd-right { width: 100%; }
  .ev-cd-timer { justify-content: space-between; width: 100%; }
}



.fbar { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-bottom: 3rem; }
.fb {
  padding: .45rem 1.2rem;
  border: 1px solid var(--border); border-radius: 100px;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); transition: all .25s; font-weight: 500;
}
.fb.act, .fb:hover { border-color: var(--pm); color: var(--pm); background: rgba(255,110,255,.10); }

.ev-section-title { font-family: var(--fd); font-size: 1.4rem; font-weight: 700; margin-bottom: 2rem; max-width: 1160px; margin-left: auto; margin-right: auto; }
.dot-up   { color: var(--pm); }
.dot-past { color: var(--subtle); }

.sdiv { border: none; border-top: 1px solid var(--border); margin: 4rem 0; }

.empty-state { text-align: center; padding: 4rem 2rem; color: var(--subtle); font-size: .9rem; font-weight: 400; grid-column: 1 / -1; }
.empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.empty-state .empty-icon img[src*="images/icons/"] {
  width: 80px;
  height: 80px;
}

@media (max-width: 768px) { .ev-section-title { font-size: 1.2rem; } }

/* ===== LIGHT MODE: EVENTS ===== */
[data-theme="light"] .fb {
  border-color: rgba(124,34,184,.18);
  color: rgba(26,0,58,.55);
  background: rgba(255,255,255,.50);
}
[data-theme="light"] .fb.act,
[data-theme="light"] .fb:hover {
  border-color: var(--pm);
  color: var(--pm);
  background: rgba(160,32,200,.08);
}
[data-theme="light"] .sdiv {
  border-top-color: rgba(124,34,184,.12);
}
[data-theme="light"] .empty-state { color: rgba(26,0,58,.35); }


/* ===== DEADLINE BADGE (future events) ===== */
.ev-deadline {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .74rem;
  color: var(--pm);
  background: rgba(255,110,255,.08);
  border: 1px solid rgba(255,110,255,.2);
  border-radius: 6px;
  padding: .4rem .75rem;
  margin-top: .75rem;
  font-weight: 500;
}
.ev-deadline strong { color: var(--text); font-weight: 600; }
.ev-deadline-icon { font-size: .85rem; }

[data-theme="light"] .ev-deadline {
  background: rgba(140,0,200,.06);
  border-color: rgba(140,0,200,.18);
  color: var(--pm);
}
