/* ===== Events Page — Premium Styles ===== */

/* CSS Variables (self-contained, no dependency on styles.css) */
:root {
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --coral: #FF6B4A;
  --coral-dark: #e5562f;
  --green: #6BAA75;
  --white: #ffffff;
  --text-muted: rgba(200,198,255,0.55);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --neon-purple: #9B6FFF;
  --blue: #2D2A8C;
}

/* Filter Bar */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  padding: 9px 20px; border-radius: 30px; font-size: 0.84rem;
  font-weight: 500; cursor: pointer;
  border: 1.5px solid rgba(155,111,255,0.2);
  background: rgba(255,255,255,0.04); color: rgba(200,198,255,0.65);
  transition: all 0.25s ease; font-family: 'Inter', sans-serif;
}
.filter-btn:hover { border-color: rgba(155,111,255,0.5); color: rgba(240,239,255,0.9); }
.filter-btn.active {
  background: linear-gradient(135deg, #9B6FFF, #2D2A8C);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 16px rgba(155,111,255,0.35);
}

/* Section Title */
.events-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(200,198,255,0.55); margin-bottom: 20px;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'Inter', sans-serif; font-weight: 600; border: none; cursor: pointer; transition: all 0.25s; text-decoration: none; border-radius: 10px; }
.btn-primary { background: linear-gradient(135deg, #9B6FFF, #5547C8, #2D2A8C); color: #fff; padding: 12px 24px; box-shadow: 0 4px 20px rgba(155,111,255,0.4); font-size: 0.88rem; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(155,111,255,0.5); }
.btn-coral { background: linear-gradient(135deg, #FF8060, #FF6B4A, #e5562f); color: #fff; padding: 12px 24px; box-shadow: 0 4px 20px rgba(255,107,74,0.35); font-size: 0.88rem; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-full { width: 100%; justify-content: center; }

/* Tags */
.tag { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.tag-green { background: rgba(107,170,117,0.15); color: #6BAA75; }
.tag-blue { background: rgba(122,90,248,0.15); color: #9B6FFF; }
.tag-coral { background: rgba(255,107,74,0.15); color: #FF6B4A; }

/* Featured Event */
.featured-event {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 56px; align-items: center;
  background: linear-gradient(160deg, #0f1120, #1a1f3c);
  border-radius: 24px; padding: 48px;
  box-shadow: 0 24px 80px rgba(15,17,32,0.3);
  margin-bottom: 56px; position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}
.featured-event::before {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,111,165,0.15) 0%, transparent 65%);
  top: -100px; right: -50px; pointer-events: none;
}
.featured-event::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
.fe-badge {
  display: inline-block;
  background: rgba(224,122,95,0.2); color: #f0a090;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3px;
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid rgba(224,122,95,0.2); margin-bottom: 14px;
}
.fe-community {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px;
}
.fe-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.fe-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700;
  color: var(--white); line-height: 1.25; margin-bottom: 16px;
}
.fe-desc  { font-size: 0.94rem; color: rgba(255,255,255,0.58); margin-bottom: 28px; line-height: 1.8; }
.fe-meta  { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.fe-meta-item {
  display: flex; align-items: flex-start; gap: 14px; font-size: 0.88rem;
}
.fe-icon { font-size: 1rem; flex-shrink: 0; }
.fe-meta-item strong { display: block; color: rgba(255,255,255,0.85); font-weight: 600; }
.fe-meta-sub { font-size: 0.76rem; color: rgba(255,255,255,0.4); margin-top: 1px; }
.fe-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Visual side */
.fe-visual {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 28px; text-align: center;
  backdrop-filter: blur(12px); position: relative; z-index: 1;
}
.fe-emoji { font-size: 3rem; margin-bottom: 16px; }
.fe-countdown {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 600; color: #7ba7d4;
  margin-bottom: 20px; min-height: 24px;
}
.fe-spots-label {
  font-size: 0.76rem; color: rgba(255,255,255,0.4);
  margin-bottom: 8px; text-align: left;
}
.fe-progress { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.fe-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--coral), var(--coral-dark));
  border-radius: 3px; transition: width 1s ease;
}

/* Section title */
.events-section-title {
  font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted);
  margin-bottom: 24px;
}

/* Events list */
.events-grid { display: flex; flex-direction: column; gap: 14px; }
.event-card {
  display: grid; grid-template-columns: 76px 1fr auto;
  background: rgba(19,17,42,0.88);
  backdrop-filter: blur(12px);
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(155,111,255,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: all var(--transition);
  align-items: center;
}
.event-card:hover {
  transform: translateX(5px);
  border-color: rgba(155,111,255,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}
.event-card.hidden { display: none; }

.ec-date-block {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px 0; height: 100%;
  background: rgba(155,111,255,0.1) !important;
  border-right: 1px solid rgba(155,111,255,0.08);
}
.ec-day   { font-size: 1.6rem; font-weight: 700; color: #F0EFFF; line-height: 1; font-family: var(--font-heading); }
.ec-month { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; color: rgba(200,198,255,0.5); letter-spacing: 1.5px; margin-top: 4px; }

.ec-content { padding: 18px 24px; }
.ec-community {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 600; color: rgba(200,198,255,0.55);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.ec-dot   { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.ec-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: #F0EFFF; line-height: 1.4; }
.ec-desc  { font-size: 0.8rem; color: rgba(200,198,255,0.58); margin-bottom: 10px; line-height: 1.6; }
.ec-meta  { display: flex; gap: 12px; font-size: 0.73rem; color: rgba(200,198,255,0.45); flex-wrap: wrap; }

.ec-right {
  padding: 20px 24px; display: flex; flex-direction: column;
  align-items: flex-end; gap: 12px;
  border-left: 1px solid rgba(155,111,255,0.08); min-width: 120px;
}
.ec-price        { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }
.ec-price.free   { color: var(--green); }
.ec-price.paid   { color: var(--coral); }

/* Premium event */
.premium-event {
  border-color: rgba(242,183,5,0.3);
  background: rgba(30,22,5,0.92);
  box-shadow: 0 4px 20px rgba(242,183,5,0.08), 0 4px 16px rgba(0,0,0,0.35);
}
.premium-badge {
  background: rgba(242,183,5,0.18); color: #f2b705;
  font-size: 0.62rem; font-weight: 700; padding: 2px 8px;
  border-radius: 10px; text-transform: uppercase; letter-spacing: 0.5px;
  margin-left: 6px; vertical-align: middle;
  border: 1px solid rgba(242,183,5,0.25);
}

/* RSVP Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8,6,24,0.82);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 24px;
  backdrop-filter: blur(12px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: rgba(13,11,35,0.97);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(155,111,255,0.18);
  border-radius: 24px;
  padding: 44px; max-width: 460px; width: 100%;
  position: relative; box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { opacity:0; transform:scale(0.88) translateY(20px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255,255,255,0.06); border: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 0.9rem; color: rgba(200,198,255,0.6); display: flex;
  align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: rgba(155,111,255,0.2); color: #fff; }
.modal-icon  { font-size: 2.8rem; margin-bottom: 18px; }
.modal h3    { margin-bottom: 8px; font-size: 1.4rem; color: #F0EFFF; }
.modal p     { margin-bottom: 28px; font-size: 0.92rem; color: rgba(200,198,255,0.65); }
.rsvp-form   { display: flex; flex-direction: column; gap: 12px; }
.rsvp-form input {
  padding: 14px 18px; border: 1.5px solid rgba(155,111,255,0.2);
  border-radius: 12px; font-size: 0.92rem;
  font-family: 'Inter', sans-serif; color: #F0EFFF;
  background: rgba(255,255,255,0.05); outline: none; transition: all var(--transition);
}
.rsvp-form input:focus { border-color: rgba(155,111,255,0.5); background: rgba(155,111,255,0.07); }
.rsvp-form input::placeholder { color: rgba(200,198,255,0.35); }

/* Responsive */
@media (max-width: 900px) {
  .featured-event { grid-template-columns: 1fr; padding: 32px; }
  .fe-visual { display: none; }
}
@media (max-width: 640px) {
  .event-card { grid-template-columns: 62px 1fr; }
  .ec-right { display: none; }
  .featured-event { padding: 24px; }
  .fe-title { font-size: 1.3rem; }
}
