/* Event detail page styles. Shared by /events/event.html (the JS fallback
   template) and by every static page written by generate-event-pages.js.
   Extracted from the old inline <style> block so 427 pages do not each
   carry their own copy. */
  :root {
    --text: #12112A; --surface: #fff; --surface2: #F4F3FF; --muted: #6B6B8A;
    --border: #E4E2F5; --bg: #FFFFFF; --bg2: #f9f9f9;
    --indigo: #4845C7; --blue: #4F7EFF; --pink: #FF3D7F; --gold: #ffb300;
  }
  * { margin:0; padding:0; box-sizing:border-box; }
  html { scroll-behavior:smooth; }
  body { font-family:'DM Sans',sans-serif; background:var(--bg); color:var(--text); overflow-x:hidden; }
  a { color:inherit; text-decoration:none; }

  .event-page { max-width: 1280px; margin: 0 auto; padding: calc(var(--nav-h,138px) + 2.5rem) 1.5rem 5rem; }

  /* ── EVENT C · SIDE-BY-SIDE POSTER LAYOUT ── */
  .ev-c-layout { display: grid; grid-template-columns: 380px 1fr 280px; gap: 2rem; align-items: start; margin-top: 1rem; }
  .ev-c-poster-wrap { position: sticky; top: 154px; }
  .ev-c-poster { width: 100%; border-radius: 18px; box-shadow: 0 10px 30px rgba(18,17,42,0.1); display: block; }
  .ev-c-poster-placeholder { aspect-ratio: 4/5; background: var(--bg2, #F4F3FF); border-radius: 18px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; }
  .ev-c-content h1.ep-title { font-size: 2.2rem; line-height: 1.1; margin: 0 0 0.5rem; font-family: 'League Spartan', sans-serif; font-weight: 900; color: var(--text) !important; }
  .ev-c-content .ep-badges { margin-bottom: 1rem; }
  .ev-c-date-line { font-family: 'League Spartan', sans-serif; font-size: 1.15rem; font-weight: 800; color: var(--indigo); margin-bottom: 1.5rem; }
  .ev-c-detail-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.5rem 0; padding: 1.3rem; background: var(--bg2, #F4F3FF); border-radius: 14px; }
  .ev-c-detail-row { display: flex; gap: 0.7rem; }
  .ev-c-detail-row .ico { font-size: 1.1rem; flex-shrink: 0; }
  .ev-c-detail-row .lbl { font-size: 0.68rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
  .ev-c-detail-row .val { font-size: 0.92rem; font-weight: 700; color: var(--text); }
  .ev-c-detail-row .sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
  .ev-c-cta-col { position: sticky; top: 154px; }
  .ev-c-cta-card { background: linear-gradient(180deg, #4845C7, #6C63FF); color: #fff; border-radius: 18px; padding: 1.5rem; box-shadow: 0 8px 26px rgba(72,69,199,0.25); }
  .ev-c-cta-card .price-lbl { font-size: 0.7rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.85; }
  .ev-c-cta-card .price-val { font-family: 'League Spartan', sans-serif; font-size: 1.5rem; font-weight: 900; margin: 0.3rem 0 1.2rem; }
  .ev-c-cta-card .btn-primary { display: block; background: #fff; color: #4845C7; text-align: center; padding: 0.85rem 1rem; border-radius: 10px; font-weight: 800; text-decoration: none; font-size: 0.95rem; margin-bottom: 0.55rem; }
  .ev-c-cta-card .btn-ghost { display: block; background: rgba(255,255,255,0.12); color: #fff; text-align: center; padding: 0.7rem 1rem; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 0.88rem; border: 1.5px solid rgba(255,255,255,0.3); }
  .ev-c-share-card { background: var(--surface, #fff); border: 1px solid var(--border, #E8E6FF); border-radius: 14px; padding: 1rem; margin-top: 1rem; }
  .ev-c-share-card .lbl { font-size: 0.7rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }

  /* ── YOU MAY ALSO LIKE ── */
  .similar-events-section { margin: 3.5rem 0 1rem; }
  .similar-events-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.2rem; }
  .similar-events-title { font-family: 'League Spartan', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--text); }
  .similar-events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
  @media (max-width: 1100px) { .similar-events-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px)  { .similar-events-grid { grid-template-columns: 1fr; } }

  @media (max-width: 1024px) {
    .ev-c-layout { grid-template-columns: 1fr; }
    .ev-c-poster-wrap { position: static; max-width: 500px; margin: 0 auto 1.5rem; }
    .ev-c-cta-col { position: static; }
    .ev-c-detail-rows { grid-template-columns: 1fr; }
  }

  /* Breadcrumb */
  .event-breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.2rem; }
  .event-breadcrumb a { color: var(--muted); transition: color 0.2s; }
  .event-breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
  .event-breadcrumb span { margin: 0 0.35rem; opacity: 0.4; }

  /* Hero banner */
  .ep-hero {
    background: linear-gradient(135deg, #12112A 0%, #1e1b4b 100%);
    border-radius: 20px; padding: 2.2rem 2rem; margin-bottom: 2rem;
    position: relative; overflow: hidden;
  }
  .ep-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(72,69,199,0.35) 0%, transparent 60%);
    pointer-events: none;
  }
  .ep-hero-inner { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 1.5rem; }
  .ep-date-box {
    flex-shrink: 0; width: 76px; text-align: center;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px; padding: 0.7rem 0.5rem;
  }
  .ep-date-box .month {
    font-family: 'League Spartan', sans-serif; font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px; color: var(--pink);
  }
  .ep-date-box .day {
    font-family: 'League Spartan', sans-serif; font-size: 2rem; font-weight: 900;
    color: #fff; line-height: 1.1;
  }
  .ep-hero-info { flex: 1; }
  .ep-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
  .ep-badge {
    font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 6px;
    background: rgba(79,126,255,0.2); color: #93b4ff; border: 1px solid rgba(79,126,255,0.2);
  }
  .ep-badge-free { background: rgba(34,197,94,0.2); color: #86efac; border-color: rgba(34,197,94,0.2); }
  .ep-title {
    font-family: 'League Spartan', sans-serif; font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 0.4rem;
  }
  .ep-date-text { font-size: 0.88rem; color: rgba(255,255,255,0.55); }

  /* Hero image */
  .ep-hero-img {
    display: block; max-width: 380px; width: auto; height: auto;
    object-fit: contain; border-radius: 16px;
    margin: 0 auto 2rem; border: 1px solid var(--border);
  }

  /* Details card */
  .ep-details {
    background: var(--surface2); border-radius: 16px; border: 1px solid var(--border);
    padding: 1.6rem; margin-bottom: 2rem;
  }
  .ep-details-title {
    font-family: 'League Spartan', sans-serif; font-size: 0.78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted);
    margin-bottom: 1rem;
  }
  .ep-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .ep-detail { display: flex; align-items: flex-start; gap: 0.6rem; }
  .ep-detail-icon {
    width: 36px; height: 36px; border-radius: 10px; background: #fff;
    border: 1px solid var(--border); display: flex; align-items: center;
    justify-content: center; font-size: 1rem; flex-shrink: 0;
  }
  .ep-detail-label {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--muted); margin-bottom: 0.1rem;
  }
  .ep-detail-value { font-size: 0.88rem; font-weight: 500; color: var(--text); line-height: 1.4; }
  .ep-detail-sub { font-size: 0.78rem; color: var(--muted); }

  /* Description */
  .ep-section-title {
    font-family: 'League Spartan', sans-serif; font-size: 0.78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted);
    margin-bottom: 0.8rem;
  }
  .ep-description {
    font-size: 0.95rem; line-height: 1.85; color: #444; white-space: pre-line;
    margin-bottom: 2rem;
  }

  /* Gallery */
  .ep-gallery { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }
  .ep-gallery img {
    width: 160px; height: 110px; object-fit: cover; border-radius: 12px;
    border: 1px solid var(--border); transition: transform 0.2s;
  }
  .ep-gallery img:hover { transform: scale(1.04); }

  /* Actions */
  .ep-actions {
    display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 2rem;
    padding-top: 1.5rem; border-top: 1px solid var(--border);
  }
  .ep-cta {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1.8rem;
    border-radius: 10px; font-family: 'League Spartan', sans-serif;
    font-weight: 800; font-size: 0.88rem; transition: all 0.2s; text-decoration: none;
  }
  .ep-cta-primary { background: var(--pink); color: #fff; box-shadow: 0 4px 14px rgba(255,61,127,0.2); }
  .ep-cta-primary:hover { background: #e02f6e; }
  .ep-cta-secondary { background: #fff; color: var(--indigo); border: 2px solid var(--border); }
  .ep-cta-secondary:hover { background: var(--surface2); border-color: var(--indigo); }

  /* Share */
  .ep-share { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 2rem; }
  .ep-share-label { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
  .ep-share-btn {
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
    background: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; cursor: pointer; transition: all 0.15s; color: var(--muted);
    text-decoration: none;
  }
  .ep-share-btn:hover { background: var(--surface2); color: var(--text); border-color: #ccc; }

  /* Back link */
  .ep-back {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.82rem; font-weight: 600; color: var(--muted); transition: color 0.2s;
  }
  .ep-back:hover { color: var(--text); }

  /* Not found */
  .event-not-found { text-align: center; padding: 4rem 2rem; }
  .event-not-found h2 {
    font-family: 'League Spartan', sans-serif; font-size: 1.6rem; font-weight: 900;
    margin-bottom: 0.8rem; color: #12112a;
  }
  .event-not-found p { color: var(--muted); margin-bottom: 1.5rem; }
  .event-not-found a {
    display: inline-block; background: var(--pink); color: #fff; padding: 0.65rem 1.5rem;
    border-radius: 10px; font-weight: 700; font-size: 0.88rem; transition: background 0.2s;
  }
  .event-not-found a:hover { background: #e02f6e; }

  /* ── MORE EVENTS ── */
  .more-events-section {
    margin-top: 3rem; padding-top: 2rem;
    border-top: 1px solid var(--border);
  }
  .more-events-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.2rem;
  }
  .more-events-title {
    font-family: 'League Spartan', sans-serif; font-size: 1.15rem;
    font-weight: 900; color: var(--text); letter-spacing: 0.3px;
  }
  .more-events-link {
    font-size: 0.82rem; font-weight: 700; color: var(--indigo);
    text-decoration: none; transition: opacity 0.2s;
  }
  .more-events-link:hover { opacity: 0.75; }
  .more-events-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  }
  .me-card {
    border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden;
    background: var(--surface); text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  }
  .me-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(79,126,255,0.12); border-color: var(--blue); }
  .me-card-img {
    width: 100%; aspect-ratio: 4/5; object-fit: cover;
    object-position: center top; display: block;
    border-bottom: 1px solid var(--border);
  }
  .me-card-img-placeholder {
    width: 100%; aspect-ratio: 3/2;
    background: var(--surface2); display: flex; align-items: center;
    justify-content: center; font-size: 1.8rem;
    border-bottom: 1px solid var(--border);
  }
  .me-card-body { padding: 0.85rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; }
  .me-card-date { font-size: 0.72rem; font-weight: 800; color: var(--indigo); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.3rem; }
  .me-card-title { font-family: 'League Spartan', sans-serif; font-size: 0.95rem; font-weight: 800; color: var(--text); line-height: 1.25; margin-bottom: 0.3rem; }
  .me-card-venue { font-size: 0.78rem; color: var(--muted); margin-top: auto; padding-top: 0.4rem; }

  @media (max-width: 600px) {
    .event-page { padding: calc(var(--nav-h,138px) + 1.5rem) 1rem 3rem; }
    .ep-hero { padding: 1.5rem 1.2rem; border-radius: 16px; }
    .ep-hero-inner { flex-direction: column; gap: 1rem; }
    .ep-date-box { width: auto; display: inline-flex; gap: 0.5rem; padding: 0.5rem 1rem; }
    .ep-date-box .day { font-size: 1.4rem; }
    .ep-details-grid { grid-template-columns: 1fr; }
    .ep-hero-img { max-width: 100%; border-radius: 12px; }
    .ep-actions { flex-direction: column; }
    .ep-cta { width: 100%; justify-content: center; }
    .more-events-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  }
  @media (max-width: 420px) {
    .more-events-grid { grid-template-columns: 1fr; }
  }
