/* ============================================================
   BOSSA NOVA CAFE - UPCOMING EVENTS LIST
   ------------------------------------------------------------
   Styles for the event cards rendered by events-public.js from
   whatever the admin dashboard has published.

   Built on the tokens already defined in style.css
   (--gold, --bg-secondary, --border-color, --text-light, ...)
   so the cards inherit the site's noir/gold look automatically.
   ============================================================ */

.ev-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
  opacity: 0;
  transition: opacity .5s var(--ease-out-expo, ease);
}
.ev-list.is-ready { opacity: 1; }

/* ── Card shell ─────────────────────────────────────────── */
.ev-card {
  background: var(--bg-secondary, #121212);
  border: 1px solid var(--border-color, rgba(204,168,118,.12));
  border-radius: var(--border-radius, 16px);
  overflow: hidden;
  transition: border-color .4s var(--ease-out-expo, ease),
              transform .4s var(--ease-out-expo, ease),
              box-shadow .4s var(--ease-out-expo, ease);
}
.ev-card:hover {
  border-color: var(--border-hover, rgba(204,168,118,.35));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 12px 40px rgba(0,0,0,.5));
}

.ev-card-main {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: stretch;
}
/* No poster uploaded - let the copy use the full width */
.ev-card-main.no-poster { grid-template-columns: 1fr; }
@media (max-width: 800px) {
  .ev-card-main { grid-template-columns: 1fr; }
}

/* ── Poster ─────────────────────────────────────────────── */
.ev-poster {
  position: relative;
  background: var(--bg-color, #0d0d0d);
  min-height: 220px;
  overflow: hidden;
}
.ev-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out-expo, ease);
}
.ev-card:hover .ev-poster img { transform: scale(1.04); }
@media (max-width: 800px) {
  .ev-poster { min-height: 200px; aspect-ratio: 16/9; }
}
.ev-poster-count {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  z-index: 2;
  background: rgba(13,13,13,.82);
  backdrop-filter: blur(6px);
  color: var(--gold-light, #e8d5b7);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(204,168,118,.25);
}

/* ── Card body ──────────────────────────────────────────── */
.ev-body { padding: 1.75rem; }
@media (max-width: 800px) { .ev-body { padding: 1.4rem; } }

.ev-meta-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}

.ev-date-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: .4rem .5rem;
  border-radius: 10px;
  background: rgba(204,168,118,.09);
  border: 1px solid rgba(204,168,118,.22);
  line-height: 1;
}
.ev-date-chip strong {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light, #e8d5b7);
}
.ev-date-chip span {
  font-size: .6rem;
  letter-spacing: .16em;
  color: var(--gold, #cca876);
  margin-top: .18rem;
}

.ev-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .42rem .8rem;
  border-radius: 999px;
  white-space: nowrap;
}
.ev-badge-paid {
  background: rgba(204,168,118,.14);
  border: 1px solid rgba(204,168,118,.4);
  color: var(--gold-light, #e8d5b7);
}
.ev-badge-free {
  background: rgba(120,190,140,.10);
  border: 1px solid rgba(120,190,140,.32);
  color: #9ed8b0;
}
.ev-badge .ev-ico { width: 13px; height: 13px; }

.ev-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main, #f0ece4);
  margin-bottom: .5rem;
}

.ev-summary {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--text-light, #9a958d);
  margin-bottom: 1rem;
  max-width: 58ch;
}

/* ── Fact list ──────────────────────────────────────────── */
.ev-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
}
.ev-facts li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-light, #9a958d);
}
.ev-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--gold, #cca876);
}

/* ── The "this event is paid" note ──────────────────────── */
.ev-paid-note {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--gold-light, #e8d5b7);
  background: rgba(204,168,118,.07);
  border-left: 2px solid var(--gold, #cca876);
  padding: .65rem .9rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.1rem;
}
.ev-paid-note::before {
  content: '\2139';
  font-size: .9rem;
  line-height: 1.35;
  opacity: .8;
}

/* ── View more toggle ───────────────────────────────────── */
.ev-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: 1px solid rgba(204,168,118,.28);
  color: var(--gold, #cca876);
  font-family: inherit;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.ev-toggle:hover {
  background: rgba(204,168,118,.1);
  border-color: var(--gold, #cca876);
  color: var(--gold-light, #e8d5b7);
}
.ev-toggle:focus-visible {
  outline: 2px solid var(--gold, #cca876);
  outline-offset: 3px;
}
.ev-chev {
  width: 14px;
  height: 14px;
  transition: transform .35s var(--ease-out-expo, ease);
}
.ev-toggle[aria-expanded="true"] .ev-chev { transform: rotate(180deg); }

/* ── Expandable detail panel ────────────────────────────── */
.ev-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s var(--ease-out-expo, ease);
  border-top: 1px solid var(--border-color, rgba(204,168,118,.12));
  background: rgba(255,255,255,.015);
}
.ev-details[hidden] { display: none; }
.ev-details-inner { padding: 1.75rem; }
@media (max-width: 800px) { .ev-details-inner { padding: 1.4rem; } }

.ev-detail-heading {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold, #cca876);
  margin-bottom: .9rem;
}
.ev-detail-copy p {
  font-size: .93rem;
  line-height: 1.8;
  color: var(--text-light, #9a958d);
  margin-bottom: .9rem;
  max-width: 68ch;
}
.ev-detail-copy p:last-child { margin-bottom: 0; }
.ev-muted { font-style: italic; opacity: .75; }

/* ── Gallery inside the dropdown ────────────────────────── */
.ev-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .6rem;
  margin: 1.3rem 0;
}
.ev-gallery-item {
  padding: 0;
  border: 1px solid var(--border-color, rgba(204,168,118,.12));
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-color, #0d0d0d);
  cursor: zoom-in;
  aspect-ratio: 1;
  transition: border-color .3s ease, transform .3s ease;
}
.ev-gallery-item:hover {
  border-color: var(--gold, #cca876);
  transform: scale(1.03);
}
.ev-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Call to action ─────────────────────────────────────── */
.ev-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.2rem;
  padding: .95rem 2rem;
  background: var(--gold, #cca876);
  color: #0a0a0a;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background .3s ease, transform .3s ease;
}
.ev-cta:hover { background: var(--text-main, #f0ece4); transform: translateY(-2px); }

/* ── Empty state ────────────────────────────────────────── */
.ev-empty {
  text-align: center;
  padding: clamp(3rem, 8vw, 4.5rem) 1.5rem;
  border: 1px solid var(--border-color, rgba(204,168,118,.12));
  border-radius: var(--border-radius, 16px);
  background: var(--bg-secondary, #121212);
}
.ev-empty-kicker {
  display: block;
  font-size: .66rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold, #cca876);
  margin-bottom: 1rem;
}
.ev-empty-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-main, #f0ece4);
  margin-bottom: .9rem;
}
.ev-empty-copy {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text-light, #9a958d);
  max-width: 52ch;
  margin: 0 auto;
}

/* ── Lightbox ───────────────────────────────────────────── */
.ev-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(8,8,8,.94);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .25s ease;
  cursor: zoom-out;
}
.ev-lightbox.is-open { opacity: 1; }
.ev-lightbox img {
  max-width: min(1100px, 100%);
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
}
.ev-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  font-size: 1.9rem;
  line-height: 1;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: var(--text-main, #f0ece4);
  cursor: pointer;
  transition: background .3s ease;
}
.ev-lightbox-close:hover { background: rgba(255,255,255,.18); }

@media (prefers-reduced-motion: reduce) {
  .ev-list, .ev-card, .ev-poster img, .ev-chev,
  .ev-details, .ev-lightbox { transition: none !important; }
}
