/* ═══════════════════════════════════════════════════════════
   Events Page — Joelle's Soul and Savor
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.ev-hero {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0e0d 0%, #1e1b16 60%, #0f0e0d 100%);
}
.ev-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(201,168,76,0.12) 0%, transparent 70%);
}
.ev-hero__content {
  position: relative;
  text-align: center;
  padding: 0 1.5rem;
  z-index: 1;
}
.ev-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  color: #fff;
  margin: 0.4rem 0 0.8rem;
  letter-spacing: 0.01em;
}
.ev-hero__sub {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Layout ───────────────────────────────────────────────── */
.ev-section {
  background: var(--color-bg, #0f0e0d);
  padding: 3.5rem 0 5rem;
  min-height: calc(100vh - 340px);
}
.ev-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ── Calendar ─────────────────────────────────────────────── */
.ev-cal {
  background: #1a1816;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 14px;
  overflow: hidden;
  position: sticky;
  top: 88px;
}

.ev-cal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  background: rgba(201,168,76,0.04);
}
.ev-cal__month-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #e5c97e;
  letter-spacing: 0.02em;
}
.ev-cal__nav {
  background: none;
  border: 1px solid rgba(201,168,76,0.25);
  color: #c9a84c;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s;
}
.ev-cal__nav:hover {
  background: rgba(201,168,76,0.12);
  border-color: #c9a84c;
}

/* Outer grid: 7 equal columns shared by dow headers and day cells */
.ev-cal__grid {
  padding: 0.8rem 1rem 1.2rem;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.ev-cal__dow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(201,168,76,0.5);
  text-transform: uppercase;
  padding: 0.5rem 0 0.6rem;
}
/* Day cells container spans all 7 columns, then creates its own 7-col grid */
.ev-cal__days {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.ev-cal__day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  transition: background 0.15s, color 0.15s;
  user-select: none;
  gap: 3px;
}
.ev-cal__day:hover:not(.ev-cal__day--empty) {
  background: rgba(201,168,76,0.1);
  color: #fff;
}
.ev-cal__day--empty {
  cursor: default;
  opacity: 0;
  pointer-events: none;
}
.ev-cal__day--today {
  background: rgba(201,168,76,0.15);
  color: #e5c97e;
  font-weight: 600;
}
.ev-cal__day--today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c9a84c;
}
.ev-cal__day--selected {
  background: #c9a84c !important;
  color: #0f0e0d !important;
  font-weight: 700;
}
.ev-cal__day--selected .ev-dot { background: #0f0e0d !important; }
.ev-cal__day--has-events .ev-dot { display: block; }
.ev-dot {
  display: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9a84c;
  flex-shrink: 0;
}
/* today + selected overrides */
.ev-cal__day--today.ev-cal__day--selected { background: #c9a84c !important; }

/* ── Event Panel ──────────────────────────────────────────── */
.ev-panel {
  min-height: 320px;
}
.ev-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.ev-panel__date-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #e5c97e;
}
.ev-panel__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s;
}
.ev-panel__close:hover { color: #fff; }
.ev-panel__close.hidden { display: none; }

.ev-panel__list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.ev-panel__empty {
  color: rgba(255,255,255,0.35);
  font-size: 0.95rem;
  text-align: center;
  padding: 3rem 0;
}
.ev-panel__empty.hidden { display: none; }

/* ── Event Card ───────────────────────────────────────────── */
.ev-card {
  background: #1a1816;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  gap: 0;
  transition: border-color 0.18s, transform 0.18s;
}
.ev-card:hover:not(.ev-card--cancelled) {
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-2px);
}
.ev-card--featured {
  border-color: rgba(201,168,76,0.4);
}

/* Cancelled state */
.ev-card--cancelled {
  opacity: 0.55;
  border-color: rgba(232,112,96,0.2) !important;
  filter: grayscale(40%);
}
.ev-card__media {
  position: relative;
  flex-shrink: 0;
  width: 130px;
}
.ev-card__cancelled-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,14,13,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
}
.ev-card__cancelled-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e87060;
  text-align: center;
  line-height: 1.3;
}
.ev-card__cancelled-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e87060;
  margin-bottom: 0.15rem;
}
.ev-card__img {
  width: 130px;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
  height: 100%;
}
.ev-card__img-placeholder {
  width: 130px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #241f18, #1a1816);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.4;
  min-height: 90px;
}
.ev-card__body {
  padding: 1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ev-card__featured-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 0.1rem;
}
.ev-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.ev-card__time {
  font-size: 0.82rem;
  color: #c9a84c;
  font-weight: 500;
}
.ev-card__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  margin-top: 0.2rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .ev-container {
    grid-template-columns: 1fr;
  }
  .ev-cal {
    position: static;
  }
}
@media (max-width: 480px) {
  .ev-cal__day { font-size: 0.78rem; }
  .ev-card__img,
  .ev-card__img-placeholder { width: 90px; }
}

/* ── Nav active link ──────────────────────────────────────── */
.nav__active {
  color: var(--color-gold, #c9a84c) !important;
}
