/* =====================================================================
   Level Up Events 5.4.0: featured event + event cards in the site design system
   (light cards, navy accents, #75C3FF brand, Literata headings, Mulish body).
   Flyers are always shown in full: the image is contained over a blurred copy
   of itself, so portrait and square posters are never cropped.
   ===================================================================== */
.lu-feat, .lu-feat *, .lu-cards, .lu-cards * { box-sizing: border-box; }

/* ---------- featured event ---------- */
.lu-feat {
  --lu-brand: #75C3FF; --lu-on-brand: #0b2340; --lu-navy: #0d2b52; --lu-band: #0D366A; --lu-blue: #1b5fa6;
  --lu-text: #45505e; --lu-muted: #6d7785; --lu-line: #e3eaf1; --lu-sky: #eaf4fc;
  --lu-serif: 'Literata', Georgia, 'Times New Roman', serif; --lu-sans: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: grid !important; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: stretch;
  width: 100%; max-width: 1180px; margin: 0 auto !important; padding: 0 !important;
  background: #ffffff !important; border: 1px solid var(--lu-line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(13,43,82,0.05), 0 30px 70px -34px rgba(13,43,82,0.35);
  font-family: var(--lu-sans) !important; color: var(--lu-text);
}
.lu-feat-media {
  position: relative; min-height: 320px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding: clamp(18px, 3vw, 32px); background: linear-gradient(160deg, #0b0f14 0%, #0e1622 60%, #101a28 100%);
}
.lu-feat-media::before {
  content: ''; position: absolute; inset: -30px; background-image: var(--lu-feat-img, none); background-size: cover; background-position: center;
  filter: blur(26px) saturate(1.1); opacity: 0.55; transform: scale(1.1);
}
.lu-feat-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,20,0.15), rgba(11,15,20,0.45)); }
.lu-feat-media img {
  position: relative; z-index: 1; display: block; width: auto !important; height: auto !important;
  max-width: 100% !important; max-height: 640px !important; object-fit: contain !important;
  border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(0,0,0,0.7);
}
.lu-feat-placeholder { position: relative; z-index: 1; color: rgba(255,255,255,0.5); font-size: 14px; }
.lu-feat-spots {
  position: absolute; z-index: 2; top: 16px; right: 16px; background: #c0503f; color: #ffffff; padding: 8px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: 0 8px 20px -8px rgba(192,80,63,0.7);
}
.lu-feat-body { padding: clamp(24px, 3.6vw, 44px) !important; display: flex; flex-direction: column; min-width: 0; background: #ffffff !important; }
.lu-feat-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.lu-feat-tag {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; background: var(--lu-brand); color: var(--lu-on-brand);
}
.lu-feat-tag--type { background: var(--lu-sky); color: var(--lu-band); }
.lu-feat-tag--free { background: #e7f5ec; color: #1f7a45; }
.lu-feat .lu-feat-title {
  font-family: var(--lu-serif) !important; font-size: clamp(24px, 2.8vw, 34px) !important; line-height: 1.2 !important; font-weight: 700 !important;
  color: var(--lu-navy) !important; margin: 0 0 12px !important; text-transform: none !important; letter-spacing: -0.005em !important;
}
.lu-feat .lu-feat-desc { font-size: 16.5px; line-height: 1.75; color: var(--lu-text); margin: 0 0 22px !important; }
.lu-feat .lu-feat-desc p { font-size: 16.5px !important; line-height: 1.75 !important; color: var(--lu-text) !important; margin: 0 0 12px !important; padding: 0 !important; }
.lu-feat .lu-feat-desc ul, .lu-feat .lu-feat-desc ol { margin: 0 0 12px !important; padding: 0 0 0 22px !important; list-style: disc outside !important; color: var(--lu-text) !important; }
.lu-feat .lu-feat-desc ol { list-style-type: decimal !important; }
.lu-feat .lu-feat-desc li { display: list-item !important; margin: 0 0 6px !important; padding: 0 !important; font-size: 16px !important; line-height: 1.65 !important; color: var(--lu-text) !important; }
.lu-feat .lu-feat-desc li::before { content: none !important; display: none !important; }
.lu-feat .lu-feat-desc strong, .lu-feat .lu-feat-desc b { color: var(--lu-navy) !important; font-weight: 800; }
.lu-feat .lu-feat-desc a { color: var(--lu-blue) !important; text-decoration: underline; }
.lu-feat .lu-feat-desc > :last-child { margin-bottom: 0 !important; }
.lu-feat-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; padding: 20px 0; margin: 0 0 22px;
  border-top: 1px solid var(--lu-line); border-bottom: 1px solid var(--lu-line);
}
.lu-feat-meta-item { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.lu-feat-ico { width: 40px; height: 40px; min-width: 40px; border-radius: 50%; background: var(--lu-brand); color: var(--lu-band); display: flex; align-items: center; justify-content: center; }
.lu-feat-ico svg { width: 19px; height: 19px; }
.lu-feat-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lu-muted); margin-bottom: 2px; }
.lu-feat-value { display: block; font-size: 15.5px; font-weight: 800; color: var(--lu-navy); line-height: 1.4; overflow-wrap: anywhere; }
.lu-feat-countdown {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 16px !important; margin: 0 0 22px !important;
  background: var(--lu-band) !important; border-radius: 16px !important;
}
.lu-feat-cd { text-align: center; padding: 6px 4px; border-radius: 12px; background: rgba(255,255,255,0.06); }
.lu-feat .countdown-number { display: block; font-family: var(--lu-serif) !important; font-size: clamp(26px, 3vw, 36px) !important; font-weight: 700 !important; line-height: 1.1 !important; color: #ffffff !important; font-variant-numeric: tabular-nums; }
.lu-feat-cd-label { display: block; margin-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lu-brand); }
.lu-feat-countdown .countdown-ended { grid-column: 1 / -1; text-align: center; color: #ffffff; font-weight: 800; padding: 8px; }
.lu-feat-actions { margin-top: auto; }
.lu-feat .lu-feat-btn {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 17px 26px !important;
  border: 0 !important; border-radius: 999px !important; background: var(--lu-brand) !important; color: var(--lu-on-brand) !important;
  font-family: var(--lu-sans) !important; font-size: 16px !important; font-weight: 800 !important; letter-spacing: 0.02em !important; text-transform: none !important;
  text-decoration: none !important; cursor: pointer; box-shadow: 0 10px 26px -10px rgba(117,195,255,0.85); transition: transform .15s, box-shadow .15s;
}
.lu-feat .lu-feat-btn svg { width: 18px; height: 18px; }
.lu-feat .lu-feat-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(117,195,255,0.95); }
.lu-feat .lu-feat-btn--muted, .lu-feat .lu-feat-btn[disabled] { background: #e9eef3 !important; color: var(--lu-muted) !important; box-shadow: none; cursor: default; }
@media (max-width: 900px) {
  .lu-feat { grid-template-columns: 1fr; border-radius: 20px; }
  .lu-feat-media { min-height: 0; padding: 18px; }
  .lu-feat-media img { max-height: 560px !important; }
}
@media (max-width: 520px) {
  .lu-feat-meta { grid-template-columns: 1fr; }
  .lu-feat-countdown { gap: 6px; padding: 12px !important; }
  .lu-feat-body { padding: 22px 18px 24px !important; }
}

/* ---------- event cards ---------- */
.lu-cards.levelup-events-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)) !important; gap: 22px !important; }
.lu-cards .levelup-event-card {
  background: #ffffff !important; border: 1px solid #e3eaf1 !important; border-radius: 20px !important; overflow: hidden;
  box-shadow: 0 1px 2px rgba(13,43,82,0.05), 0 10px 28px -12px rgba(13,43,82,0.18) !important; font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.lu-cards .levelup-event-card:hover { transform: translateY(-3px) !important; box-shadow: 0 1px 2px rgba(13,43,82,0.05), 0 18px 40px -16px rgba(13,43,82,0.3) !important; }
.lu-cards .levelup-event-card.past-event { opacity: 0.85 !important; }
.lu-cards .levelup-event-card .card-image {
  height: auto !important; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 14px;
  background: linear-gradient(160deg, #0b0f14 0%, #0e1622 60%, #101a28 100%) !important; overflow: hidden; position: relative;
}
.lu-cards .levelup-event-card .card-image::before {
  content: ''; position: absolute; inset: -24px; background-image: var(--lu-card-img, none); background-size: cover; background-position: center;
  filter: blur(22px); opacity: 0.5; transform: scale(1.1);
}
.lu-cards .levelup-event-card .card-image img {
  position: relative; z-index: 1; width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important;
  object-fit: contain !important; border-radius: 10px; box-shadow: 0 16px 34px -16px rgba(0,0,0,0.7);
}
.lu-cards .levelup-event-card .card-image-placeholder { position: relative; z-index: 1; color: rgba(255,255,255,0.6) !important; }
.lu-cards .levelup-event-card .date-badge {
  z-index: 2; top: 14px !important; left: 14px !important; background: #ffffff !important; border-radius: 12px !important; padding: 6px 12px !important;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.45) !important;
}
.lu-cards .levelup-event-card .date-badge .month { color: #1b5fa6 !important; font-size: 11px !important; font-weight: 800 !important; letter-spacing: 0.1em !important; }
.lu-cards .levelup-event-card .date-badge .day { color: #0d2b52 !important; font-family: 'Literata', Georgia, serif !important; font-size: 22px !important; font-weight: 700 !important; }
.lu-cards .levelup-event-card .price-badge {
  z-index: 2; top: 14px !important; right: 14px !important; border-radius: 999px !important; padding: 6px 12px !important;
  font-size: 11.5px !important; font-weight: 800 !important; letter-spacing: 0.06em;
}
.lu-cards .levelup-event-card .price-badge.free { background: #75C3FF !important; color: #0b2340 !important; }
.lu-cards .levelup-event-card .price-badge.paid { background: #0D366A !important; color: #ffffff !important; }
.lu-cards .levelup-event-card .card-content { padding: 22px 22px 24px !important; background: #ffffff !important; }
.lu-cards .levelup-event-card .card-tags { flex-wrap: wrap; margin-bottom: 12px !important; }
.lu-cards .levelup-event-card .card-tag { border-radius: 999px !important; font-size: 11px !important; font-weight: 800 !important; letter-spacing: 0.08em !important; padding: 4px 10px !important; background: #eaf4fc !important; color: #0D366A !important; }
.lu-cards .levelup-event-card .card-tag.upcoming { background: #e7f5ec !important; color: #1f7a45 !important; }
.lu-cards .levelup-event-card .card-tag.past { background: #eef1f5 !important; color: #6d7785 !important; }
.lu-cards .levelup-event-card .card-tag.canceled { background: #fbeceb !important; color: #b1483a !important; }
.lu-cards .levelup-event-card .card-tag.rescheduled { background: #fff3e6 !important; color: #b36200 !important; }
.lu-cards .levelup-event-card h4 {
  font-family: 'Literata', Georgia, 'Times New Roman', serif !important; font-size: 20px !important; line-height: 1.3 !important; font-weight: 700 !important;
  color: #0d2b52 !important; margin: 0 0 8px !important; text-transform: none !important;
}
.lu-cards .levelup-event-card .card-description { color: #45505e !important; font-size: 15px !important; line-height: 1.65 !important; margin-bottom: 16px !important; }
.lu-cards .levelup-event-card .card-meta { border-top: 1px solid #e3eaf1 !important; padding-top: 14px !important; margin-bottom: 18px !important; flex-wrap: wrap; gap: 10px 18px !important; }
.lu-cards .levelup-event-card .card-meta-item { color: #45505e !important; font-size: 14px !important; font-weight: 700; }
.lu-cards .levelup-event-card .card-meta-item svg { color: #1b5fa6 !important; }
.lu-cards .levelup-event-card .levelup-btn {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 20px !important;
  border-radius: 999px !important; font-family: 'Mulish', -apple-system, sans-serif !important; font-size: 15px !important; font-weight: 800 !important;
  letter-spacing: 0.02em !important; text-transform: none !important; text-decoration: none !important; border: 1px solid transparent !important;
}
.lu-cards .levelup-event-card .levelup-btn svg { width: 17px; height: 17px; }
.lu-cards .levelup-event-card .levelup-btn-primary { background: #75C3FF !important; color: #0b2340 !important; box-shadow: 0 10px 24px -12px rgba(117,195,255,0.9) !important; }
.lu-cards .levelup-event-card .levelup-btn-secondary { background: #ffffff !important; color: #0d2b52 !important; border-color: #d6e0ea !important; box-shadow: none !important; }
.lu-cards .levelup-event-card .levelup-btn-secondary:hover { border-color: #1b5fa6 !important; color: #1b5fa6 !important; }

/* keep card meta on one line on phones (frontend.css forces a 2-col grid of stacked items) */
.lu-cards .levelup-event-card .card-meta { display: flex !important; grid-template-columns: none !important; align-items: center; }
.lu-cards .levelup-event-card .card-meta-item { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; width: auto !important; overflow: visible !important; font-size: 14px !important; }
.lu-cards .levelup-event-card .card-meta-item svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 768px) {
  .lu-cards .levelup-event-card .card-content { padding: 20px 18px 22px !important; }
  .lu-cards .levelup-event-card .card-image img { width: auto !important; }
}
.lu-cards .levelup-event-card .card-description { display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden !important; max-height: 4.95em; }
.levelup-events-frontend:has(> .lu-cards) { padding-left: 0 !important; padding-right: 0 !important; background: transparent !important; }
