/**
 * My First Event — single event landing page
 * Used by: custom-event-details.php
 */

.mfe-event-landing {
  --mfe-brand: #0f766e;
  --mfe-brand-dark: #0b5c55;
  --mfe-accent: #ff416c;
  --mfe-accent-alt: #ff4b2b;
  --mfe-ink: #0f172a;
  --mfe-muted: #64748b;
  --mfe-border: #e2e8f0;
  --mfe-surface: #ffffff;
  --mfe-soft: #f8fafc;
  --mfe-radius: 16px;
  --mfe-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  margin: 0 0 48px;
  font-family: "Poppins", sans-serif;
}

.mfe-event-landing *,
.mfe-event-landing *::before,
.mfe-event-landing *::after {
  box-sizing: border-box;
}

/* Hero */
.mfe-event-hero {
  position: relative;
  border-radius: calc(var(--mfe-radius) + 4px);
  overflow: hidden;
  min-height: 340px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #0f766e 0%, #134e4a 45%, #0f172a 100%);
  box-shadow: var(--mfe-shadow);
}

.mfe-event-hero--no-image {
  background: linear-gradient(135deg, #0f766e 0%, #134e4a 45%, #0f172a 100%);
}

.mfe-event-hero--no-image .mfe-event-hero__content {
  min-height: 280px;
}

.mfe-event-hero__media {
  position: absolute;
  inset: 0;
}

.mfe-event-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.mfe-event-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.mfe-event-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  padding: 32px 28px;
  color: #fff;
}

.mfe-event-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mfe-event-hero__title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
  line-height: 1.15;
  font-weight: 700;
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.mfe-event-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.mfe-event-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 500;
}

.mfe-event-hero__chip svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.mfe-event-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.mfe-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 12px;
  background: linear-gradient(45deg, var(--mfe-accent), var(--mfe-accent-alt));
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(255, 65, 108, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mfe-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 75, 43, 0.45);
  color: #fff !important;
}

.mfe-btn-primary--pulse {
  animation: mfePulse 1.8s infinite alternate;
}

@keyframes mfePulse {
  from { box-shadow: 0 0 12px rgba(255, 65, 108, 0.45); }
  to { box-shadow: 0 0 28px rgba(255, 75, 43, 0.65); }
}

.mfe-hero-price {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.mfe-hero-price span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}

/* Layout */
.mfe-event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.mfe-event-main {
  min-width: 0;
}

/* Quick facts */
.mfe-quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.mfe-quick-fact {
  padding: 18px 16px;
  border: 1px solid var(--mfe-border);
  border-radius: var(--mfe-radius);
  background: var(--mfe-surface);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.mfe-quick-fact__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mfe-brand);
}

.mfe-quick-fact__value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--mfe-ink);
}

/* Content card */
.mfe-content-card,
.mfe-faq-card,
.mfe-sidebar-card {
  border: 1px solid var(--mfe-border);
  border-radius: calc(var(--mfe-radius) + 2px);
  background: var(--mfe-surface);
  box-shadow: var(--mfe-shadow);
  overflow: hidden;
}

.mfe-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--mfe-border);
  background: linear-gradient(180deg, #ffffff 0%, var(--mfe-soft) 100%);
}

.mfe-card-header h2 {
  margin: 0 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--mfe-ink) !important;
}

.mfe-card-body {
  padding: 24px;
}

/* Rich text from API */
.mfe-event-rich-content {
  color: #334155;
  font-size: 16px;
  line-height: 1.75;
}

.mfe-event-rich-content > p:first-child {
  font-size: 17px;
}

.mfe-event-rich-content h2 {
  margin: 32px 0 14px !important;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(15, 118, 110, 0.15);
  font-size: 24px !important;
  color: var(--mfe-ink) !important;
}

.mfe-event-rich-content h3 {
  margin: 22px 0 10px !important;
  font-size: 18px !important;
  color: var(--mfe-brand-dark) !important;
}

.mfe-event-rich-content p {
  margin: 0 0 16px;
}

.mfe-event-rich-content a {
  color: var(--mfe-brand);
  font-weight: 600;
}

.mfe-event-rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
}

.mfe-event-rich-content ul,
.mfe-event-rich-content ol {
  margin: 0 0 16px 20px;
}

/* More Events grid inside description */
.mfe-event-rich-content div[style*="display:grid"] {
  margin: 24px 0 !important;
}

/* Sidebar ticket card */
.mfe-sidebar-card {
  position: sticky;
  top: 24px;
}

.mfe-sidebar-card__performer {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mfe-brand);
}

.mfe-sidebar-card__title {
  margin: 0 0 18px;
  font-size: 20px !important;
  line-height: 1.35;
  color: var(--mfe-ink) !important;
}

.mfe-sidebar-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.mfe-sidebar-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mfe-border);
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}

.mfe-sidebar-list li:last-child {
  border-bottom: 0;
}

.mfe-sidebar-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--mfe-ink);
}

.mfe-sidebar-card .mfe-btn-primary {
  width: 100%;
}

.mfe-sidebar-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mfe-muted);
  text-align: center;
}

/* FAQ */
.mfe-faq-card {
  margin-top: 24px;
}

.mfe-faq-body h2,
.mfe-faq-body h3 {
  cursor: pointer;
  position: relative;
  margin: 0 !important;
  padding: 18px 48px 18px 0 !important;
  border-bottom: 1px solid var(--mfe-border);
  font-size: 17px !important;
  color: var(--mfe-ink) !important;
  transition: color 0.2s ease;
}

.mfe-faq-body h2:hover,
.mfe-faq-body h3:hover {
  color: var(--mfe-brand) !important;
}

.mfe-faq-body h2::after,
.mfe-faq-body h3::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--mfe-brand);
}

.mfe-faq-body p {
  margin: 0;
  padding: 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
}

.mfe-faq-body > div > p:last-child {
  padding-bottom: 0;
}

/* Ad spacing */
.mfe-ad-slot {
  margin: 24px 0;
  text-align: center;
}

/* Hide duplicate entry header from theme */
.mfe-event-landing-wrap .entry-header {
  display: none;
}

.mfe-event-landing-wrap .entry-content > .event-box {
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
  overflow: visible;
}

/* Responsive */
@media (max-width: 991px) {
  .mfe-event-layout {
    grid-template-columns: 1fr;
  }

  .mfe-sidebar-card {
    position: static;
  }

  .mfe-quick-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .mfe-event-hero__content {
    padding: 24px 18px;
  }

  .mfe-quick-facts {
    grid-template-columns: 1fr;
  }

  .mfe-card-body,
  .mfe-card-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .mfe-event-hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .mfe-btn-primary {
    width: 100%;
  }
}
