/* ——————————————————————————————————————————————
   Podii.London — event cards, list & buttons (modern)
   —————————————————————————————————————————————— */

#eventList {
  max-width: var(--container);
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
#eventList > event-card { display: block; }

/* ——— Day grouping header ——— */
.day-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 2px 0;
  padding-bottom: 4px;
}
#eventList > .day-header:first-child { margin-top: 0; }
.day-h-main {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  text-transform: capitalize;
}
.day-h-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-3);
}

/* ——— Loading skeletons ——— */
.skeleton-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.sk-img { width: 100%; aspect-ratio: 4 / 5; }
.sk-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 11px; }
.sk-line { height: 13px; border-radius: 6px; }
.sk-title { height: 20px; width: 70%; margin-bottom: 4px; }
.sk-line.short { width: 45%; }
.sk-footer { display: flex; justify-content: space-between; margin-top: 8px; }
.sk-pill { width: 84px; height: 30px; border-radius: var(--r-pill); }
.sk-pill.wide { width: 110px; }
.sk-img, .sk-line, .sk-pill {
  background: linear-gradient(100deg, #eef0f3 30%, #f7f8fa 50%, #eef0f3 70%);
  background-size: 220% 100%;
  animation: sk-shimmer 1.25s ease-in-out infinite;
}
@keyframes sk-shimmer {
  from { background-position: 180% 0; }
  to   { background-position: -40% 0; }
}
@media (min-width: 640px) {
  .skeleton-card { flex-direction: row; }
  .sk-img { width: 38%; max-width: 320px; min-height: 380px; aspect-ratio: auto; }
  .sk-body { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .sk-img, .sk-line, .sk-pill { animation: none; }
}

/* ——— Card ——— */
.event-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  border-color: var(--line-2);
}
.event-card:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft), var(--sh-md);
}

/* image */
.event-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, #eef3fb, #e3e8f2);
  flex: none;
}
.event-img-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
  user-select: none;
  pointer-events: none;
}

/* recurring badge */
.event-recurring {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 8px;
  border-radius: var(--r-pill);
  background: rgba(14, 22, 38, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.event-recurring svg { flex: none; }
.event-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.event-card:hover .event-img { transform: scale(1.04); }

/* content */
.event-content {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 0;
  flex: 1 1 auto;
  min-width: 0;
}
.event-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.event-title-link {
  color: var(--ink-1);
  text-decoration: none;
  transition: color .15s ease;
  outline: none;
}
.event-card:hover .event-title-link { color: var(--blue); }
.event-title-link:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-description-wrapper {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-height: 1.55;
  flex-grow: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
}
.event-description {
  font-size: 0.92rem;
  color: var(--ink-3);
  margin: 0;
}

/* footer */
.event-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.event-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.event-datetime,
.event-price {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}
.event-datetime { color: var(--ink-2); }
.event-datetime svg { color: var(--blue); flex: none; }
.event-price {
  color: var(--ink-1);
  background: var(--yellow-soft);
  border: 1px solid #f1de8f;
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.event-price svg { color: #b8860b; flex: none; }
.event-price[data-free="true"] {
  background: var(--blue-soft);
  border-color: #cfe0fb;
  color: var(--blue-700);
}
.event-price[data-free="true"] svg { color: var(--blue); }

/* add-to-calendar button */
.addcal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .08s ease;
}
.addcal-btn svg { flex: none; }
.addcal-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.addcal-btn:active { transform: scale(0.96); }
.addcal-btn:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

/* horizontal layout on wider viewports */
@media (min-width: 640px) {
  .event-card { flex-direction: row; }
  .event-img-wrapper {
    width: 38%;
    max-width: 320px;
    min-height: 380px;
    aspect-ratio: auto;
    align-self: stretch;
  }
  .event-content { padding: 22px 24px 0; }
  .event-title { font-size: 1.22rem; }
  .event-description-wrapper { -webkit-line-clamp: 6; }
}

/* ——— Load more ——— */
#loadMoreBtn {
  display: none;
  margin: 28px auto 8px;
  padding: 13px 28px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--ink-1);
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow: var(--sh-md);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, opacity .3s ease;
}
#loadMoreBtn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--sh-lg); }
#loadMoreBtn:active:not(:disabled) { transform: translateY(0); }
#loadMoreBtn:disabled { background: var(--ink-4); cursor: not-allowed; opacity: 0.7; box-shadow: none; }

/* ——— Empty state ——— */
.events-empty {
  max-width: var(--container);
  margin: 8px auto;
  text-align: center;
  color: var(--ink-3);
  padding: 56px 24px;
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  font-size: 0.95rem;
}
.events-empty strong { display: block; color: var(--ink-1); font-size: 1.05rem; margin-bottom: 4px; font-family: var(--font-display); font-weight: 600; }

/* ——— Scroll to top ——— */
#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(31,95,214,0.42);
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease;
  z-index: 60;
}
#scrollTopBtn:hover { background: var(--blue-700); transform: translateY(-3px); }
#scrollTopBtn:active { transform: translateY(0) scale(0.94); }
#scrollTopBtn svg { width: 24px; height: 24px; }

@media (max-width: 600px) {
  #scrollTopBtn { bottom: 18px; right: 18px; width: 48px; height: 48px; }
}
