/* ============================================================
   events.css — OHTCC Events Page Styles
   Festival cards, filter bar, legend, and color themes
   for events.html (2026)
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --ev-saffron:  #e8841a;
  --ev-gold:     #d4a017;
  --ev-gold2:    #f0c040;
  --ev-teal:     #0e7c7b;
  --ev-deep-red: #8b0000;
  --ev-ink:      #1e1a14;
  --ev-ink2:     #4a3f30;
  --ev-border:   #e8ddd0;
  --ev-r:        14px;
}

/* ── Page wrapper ─────────────────────────────────────────── */
.events-page-wrap { padding: 8px 0 8px; }

/* ── Filter bar ───────────────────────────────────────────── */
.events-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}
.ev-filter-btn {
  padding: 7px 18px;
  border-radius: 30px;
  border: 2px solid var(--ev-border);
  background: #fff;
  color: var(--ev-ink2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.ev-filter-btn:hover {
  border-color: var(--ev-saffron);
  color: var(--ev-saffron);
}
.ev-filter-btn.active {
  background: var(--ev-saffron);
  border-color: var(--ev-saffron);
  color: #5c1a00;
}
.ev-filter-btn.vol-btn.active {
  background: var(--ev-teal);
  border-color: var(--ev-teal);
}

/* ── Legend ───────────────────────────────────────────────── */
.ev-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}
.ev-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--ev-ink2);
}
.ev-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Month group ──────────────────────────────────────────── */
.ev-month-group { margin-bottom: 20px; }
.ev-month-label {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ev-ink2);
  letter-spacing: .12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 8px;
}
.ev-month-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ev-border);
}

/* ── Events grid ──────────────────────────────────────────── */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

/* ── Base card ────────────────────────────────────────────── */
.ev-card {
  border-radius: var(--ev-r);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.09);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.ev-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
  will-change: transform;
}
@keyframes evFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Card parts ───────────────────────────────────────────── */
.ev-stripe { height: 6px; width: 100%; }

.ev-header {
  padding: 16px 18px 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ev-icon-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ev-meta  { flex: 1; min-width: 0; }
.ev-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ev-ink);
  line-height: 1.3;
  margin-bottom: 3px;
}
.ev-sanskrit {
  font-size: .76rem;
  font-style: italic;
  color: var(--ev-ink2);
  opacity: .75;
}

.ev-body {
  padding: 0 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ev-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .83rem;
  color: var(--ev-ink2);
  line-height: 1.45;
}
.ev-row i {
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  font-size: .78rem;
  margin-top: 2px;
}
.ev-desc {
  font-size: .81rem;
  color: var(--ev-ink2);
  line-height: 1.55;
  margin-top: 4px;
  border-top: 1px solid var(--ev-border);
  padding-top: 8px;
}
.ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .74rem;
  font-weight: 700;
  width: fit-content;
  margin-top: 4px;
}
.ev-day-pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: .72rem;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ── Volunteer card ───────────────────────────────────────── */
.ev-card.ev-vol {
  border: 2px dashed var(--ev-teal);
  background: linear-gradient(135deg, #f0faf9 0%, #fff 60%);
}
.ev-card.ev-vol .ev-stripe {
  background: linear-gradient(90deg, var(--ev-teal), #1abc9c) !important;
}
.ev-vol-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--ev-teal);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 5px;
  width: fit-content;
}
.ev-recur {
  font-size: .77rem;
  font-style: italic;
  color: var(--ev-teal);
  font-weight: 600;
}

#events-lcp {
  opacity: 1 !important;
  animation: none !important;
  font-size: 1.8rem;
  color: #cc4e00;
}

/* ============================================================
   COLOR THEMES
   ============================================================ */

/* ── Saffron — major festivals (Ganesh Chaturthi, Diwali) ─── */
.ev-card.ev-ganesh,
.ev-card.ev-diwali           { background: linear-gradient(135deg, #fff8ee 0%, #fff 65%); }
.ev-ganesh .ev-stripe,
.ev-diwali .ev-stripe        { background: linear-gradient(90deg, #e8841a, #f5b840); }
.ev-ganesh .ev-icon-wrap,
.ev-diwali .ev-icon-wrap     { background: #fff0dc; color: #a05000; }
.ev-ganesh .ev-badge,
.ev-diwali .ev-badge         { background: #ffeacc; color: #7a3c00; }
.ev-ganesh .ev-day-pill,
.ev-diwali .ev-day-pill      { background: #e8841a; color: #5c1a00; }

/* ── Burnt orange — temple primary (Hanuman, Holi, Shivaratri,
                                    Buddha Jayanti, Kag Tihar) ── */
.ev-card.ev-hanuman,
.ev-card.ev-holi,
.ev-card.ev-shiva            { background: linear-gradient(135deg, #fff4ed 0%, #fff 65%); }
.ev-hanuman .ev-stripe,
.ev-holi .ev-stripe,
.ev-shiva .ev-stripe         { background: linear-gradient(90deg, #cc4e00, #e87030); }
.ev-hanuman .ev-icon-wrap,
.ev-holi .ev-icon-wrap,
.ev-shiva .ev-icon-wrap      { background: #fff0e8; color: #cc4e00; }
.ev-hanuman .ev-badge,
.ev-holi .ev-badge,
.ev-shiva .ev-badge          { background: #ffe8d8; color: #7a2c00; }
.ev-hanuman .ev-day-pill,
.ev-holi .ev-day-pill,
.ev-shiva .ev-day-pill       { background: #cc4e00; color: #fff; }

/* ── Deep red — Vaishnava & devotional
      (Rama, Krishna, Gita Jayanti, Guru Purnima,
       Vaikuntha Ekadashi, Subrahmanya Sashti,
       Narasimha Jayanti, Nirjala Ekadashi) ───────────────── */
.ev-card.ev-rama,
.ev-card.ev-krishna,
.ev-card.ev-gita,
.ev-card.ev-guru             { background: linear-gradient(135deg, #fff0f0 0%, #fff 65%); }
.ev-rama .ev-stripe,
.ev-krishna .ev-stripe,
.ev-gita .ev-stripe,
.ev-guru .ev-stripe          { background: linear-gradient(90deg, #8b0000, #cc3333); }
.ev-rama .ev-icon-wrap,
.ev-krishna .ev-icon-wrap,
.ev-gita .ev-icon-wrap,
.ev-guru .ev-icon-wrap       { background: #fce8e8; color: #8b0000; }
.ev-rama .ev-badge,
.ev-krishna .ev-badge,
.ev-gita .ev-badge,
.ev-guru .ev-badge           { background: #fce0e0; color: #6b0000; }
.ev-rama .ev-day-pill,
.ev-krishna .ev-day-pill,
.ev-gita .ev-day-pill,
.ev-guru .ev-day-pill        { background: #8b0000; color: #fff; }

/* ── Amber/gold — cultural, New Year & harvest
      (Dussehra, Sankranti, Ugadi, Onam,
       Nepali New Year, Puthandu, Yomari Punhi,
       Nag Panchami, Kushe Aunsi) ──────────────────────────── */
.ev-card.ev-dussehra,
.ev-card.ev-sankranti,
.ev-card.ev-ugadi,
.ev-card.ev-onam             { background: linear-gradient(135deg, #fffae8 0%, #fff 65%); }
.ev-dussehra .ev-stripe,
.ev-sankranti .ev-stripe,
.ev-ugadi .ev-stripe,
.ev-onam .ev-stripe          { background: linear-gradient(90deg, #b06000, #e0a020); }
.ev-dussehra .ev-icon-wrap,
.ev-sankranti .ev-icon-wrap,
.ev-ugadi .ev-icon-wrap,
.ev-onam .ev-icon-wrap       { background: #fff4d8; color: #8b4800; }
.ev-dussehra .ev-badge,
.ev-sankranti .ev-badge,
.ev-ugadi .ev-badge,
.ev-onam .ev-badge           { background: #ffecc0; color: #6b3400; }
.ev-dussehra .ev-day-pill,
.ev-sankranti .ev-day-pill,
.ev-ugadi .ev-day-pill,
.ev-onam .ev-day-pill        { background: #b06000; color: #fff; }

/* ── Warm crimson — women's & moon festivals
      (Navratri, Raksha Bandhan, Teej, Karwa Chauth) ─────── */
.ev-card.ev-navratri,
.ev-card.ev-raksha           { background: linear-gradient(135deg, #fff0f2 0%, #fff 65%); }
.ev-navratri .ev-stripe,
.ev-raksha .ev-stripe        { background: linear-gradient(90deg, #b5121b, #e03030); }
.ev-navratri .ev-icon-wrap,
.ev-raksha .ev-icon-wrap     { background: #fce8e8; color: #8b0000; }
.ev-navratri .ev-badge,
.ev-raksha .ev-badge         { background: #fcd8d8; color: #6b0000; }
.ev-navratri .ev-day-pill,
.ev-raksha .ev-day-pill      { background: #b5121b; color: #fff; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .ev-grid { grid-template-columns: 1fr; }
}
/* ── Special Event footer (price + signup) ── */
.ev-special-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.ev-badge-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ev-price-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cc4e00, #ff7b2e);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(204, 78, 0, 0.35);
  flex-shrink: 0;
  letter-spacing: -0.02em;
  margin-left: auto;
}

.ev-signup-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff9800, #ffeb3b);
  color: #7a0c10;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 30px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  align-self: center;
}

.ev-signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.2);
  color: #7a0c10;
  text-decoration: none;
}