/* ============================================================
 * events-listing section
 * Rendered from resources/views/components/sections/events-listing.blade.php
 * ============================================================ */

.ev {
    background: var(--color-ink-900, #161616);
    color: var(--color-parchment-200, #ebe0c8);
  }

  /* ─── Hero (Intentaz-inspired: full-bleed indigo + right-side image) ─── */
  .ev__hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #F5EEDD;
    background:
      radial-gradient(80% 60% at 15% 30%, rgba(63, 38, 163, 0.35) 0%, rgba(63, 38, 163, 0) 60%),
      linear-gradient(135deg, #14093F 0%, #1B0F5E 45%, #241773 100%);
    min-height: clamp(38rem, 82svh, 56rem);
  }
  .ev__hero-inner {
    position: relative;
    z-index: 3;
    max-width: 82rem;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 4rem);
    padding-block: clamp(6.5rem, 12vw, 9rem) clamp(3rem, 6vw, 5.5rem);
    min-height: inherit;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
  }
  @media (min-width: 60rem) {
    .ev__hero-inner {
      grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
      column-gap: clamp(2rem, 5vw, 5rem);
    }
  }

  .ev__hero-text {
    max-width: 34rem;
    position: relative;
    z-index: 3;
  }

  .ev__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-body-stack);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #E9C58A;
    margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  }
  .ev__kicker-dot {
    width: 8px; height: 8px;
    background: #E9C58A;
    transform: rotate(45deg);
    display: inline-block;
    box-shadow: 0 0 10px rgba(233,197,138,0.55);
  }
  .ev__kicker-sep { opacity: 0.55; padding-inline: 0.2rem; }

  .ev__h1 {
    font-family: var(--font-display-stack);
    font-weight: 400;
    font-size: clamp(2.75rem, 6.5vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: #F5EEDD;
    margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  }
  .ev__h1-lead {
    display: block;
    font-size: 0.5em;
    line-height: 1.1;
    color: rgba(245, 238, 221, 0.72);
    font-weight: 400;
    letter-spacing: -0.005em;
    margin-bottom: 0.35rem;
  }
  .ev__h1-alt {
    display: block;
    background: linear-gradient(90deg, #E9C58A 0%, #F5EEDD 65%, #E9C58A 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    font-style: italic;
  }

  .ev__lead-wrap { max-width: 44ch; }
  .ev__lead {
    font-family: var(--font-body-stack);
    font-size: clamp(1rem, 1.15vw, 1.15rem);
    line-height: 1.65;
    color: rgba(245, 238, 221, 0.82);
    margin: 0;
  }
  .ev__lead + .ev__lead { margin-top: 0.65rem; }

  /* Actions row */
  .ev__hero-actions {
    margin-top: clamp(2rem, 3.5vw, 2.5rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.75rem;
  }
  .ev__hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1.6rem;
    background: linear-gradient(180deg, #E9C58A 0%, #B68A45 100%);
    color: #14093F;
    font-family: var(--font-body-stack);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    box-shadow:
      0 12px 28px -12px rgba(0,0,0,0.55),
      inset 0 1px 0 rgba(255,255,255,0.45);
    transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  }
  .ev__hero-cta:hover,
  .ev__hero-cta:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow:
      0 16px 32px -12px rgba(0,0,0,0.6),
      inset 0 1px 0 rgba(255,255,255,0.55);
    outline: none;
  }
  .ev__hero-arrow { transition: transform 220ms ease; }
  .ev__hero-cta:hover .ev__hero-arrow { transform: translateX(4px); }

  .ev__hero-link {
    font-family: var(--font-body-stack);
    font-size: 0.9rem;
    color: rgba(245, 238, 221, 0.88);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(233, 197, 138, 0.35);
    transition: color 180ms ease, border-color 180ms ease;
  }
  .ev__hero-link:hover,
  .ev__hero-link:focus-visible {
    color: #E9C58A;
    border-color: #E9C58A;
    outline: none;
  }

  /* Meta strip (venues / partners) — small trust row */
  .ev__hero-meta {
    margin-top: clamp(2.5rem, 4vw, 3.25rem);
    padding-top: 1.25rem;
    border-top: 1px solid rgba(233, 197, 138, 0.18);
  }
  .ev__hero-meta-label {
    font-family: var(--font-body-stack);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(245, 238, 221, 0.5);
    margin: 0 0 0.6rem;
  }
  .ev__hero-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.75rem;
    font-family: var(--font-body-stack);
    font-size: 0.88rem;
    color: rgba(245, 238, 221, 0.75);
  }
  .ev__hero-meta-list li {
    position: relative;
  }
  .ev__hero-meta-list li + li::before {
    content: '';
    position: absolute;
    left: -0.95rem;
    top: 50%;
    width: 3px; height: 3px;
    background: #E9C58A;
    opacity: 0.55;
    transform: translateY(-50%) rotate(45deg);
  }

  /* Background image column */
  .ev__hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
  }
  .ev__hero-bg-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 50%;
    filter: brightness(0.95) contrast(1.05) saturate(1.1);
    opacity: 0.7;
    mix-blend-mode: screen;
  }
  .ev__hero-scrim {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(20, 9, 63, 0.98) 0%, rgba(20, 9, 63, 0.85) 30%, rgba(20, 9, 63, 0.35) 55%, rgba(20, 9, 63, 0) 80%),
      linear-gradient(180deg, rgba(20, 9, 63, 0.4) 0%, rgba(20, 9, 63, 0) 25%, rgba(20, 9, 63, 0) 75%, rgba(20, 9, 63, 0.55) 100%);
    z-index: 2;
  }
  @media (max-width: 60rem) {
    .ev__hero-scrim {
      background:
        linear-gradient(180deg, rgba(20, 9, 63, 0.55) 0%, rgba(20, 9, 63, 0.35) 30%, rgba(20, 9, 63, 0.75) 75%, rgba(20, 9, 63, 0.95) 100%);
    }
    .ev__hero-bg-img { object-position: 65% 40%; opacity: 0.55; }
  }

  .ev__hero-img-wrap {
    grid-area: image;
    position: relative;
    overflow: hidden;
    background: #0a0616;
  }
  .ev__hero-img {
    display: block;
    width: 100%;
    object-fit: cover;
    filter: brightness(1.08) contrast(1.05) saturate(1.05);
    transition: filter 400ms ease;
  }

  /* Mobile — stacked, image on top, generous height so the composition breathes */
  .ev__hero-img {
    height: clamp(20rem, 62svh, 32rem);
    min-height: clamp(20rem, 62svh, 32rem);
    object-position: 60% 45%;
  }
  /* Bottom blend edge on mobile — image fades into cream text section */
  .ev__hero-img-wrap::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 4rem;
    background: linear-gradient(to top,
      var(--tq-soft, #F8F7F6) 0%,
      rgba(248, 247, 246, 0.7) 45%,
      rgba(248, 247, 246, 0) 100%);
    z-index: 2;
    pointer-events: none;
  }

  @media (min-width: 64rem) {
    /* Desktop — full-height image column with left blend edge */
    .ev__hero-img {
      height: 100%;
      min-height: 100%;
      object-position: 60% 50%;
    }
    .ev__hero-img-wrap::before {
      content: '';
      position: absolute;
      inset: 0 auto 0 0;
      width: clamp(3rem, 8vw, 7rem);
      background: linear-gradient(to right,
        var(--tq-soft, #F8F7F6) 0%,
        rgba(248, 247, 246, 0.7) 40%,
        rgba(248, 247, 246, 0) 100%);
      z-index: 2;
      pointer-events: none;
    }
    /* Move the bottom fade off, use right-edge vignette instead */
    .ev__hero-img-wrap::after {
      inset: 0 0 0 auto;
      height: auto;
      width: 30%;
      background: linear-gradient(to left,
        rgba(27, 15, 94, 0.22) 0%,
        rgba(27, 15, 94, 0) 100%);
      z-index: 1;
      mix-blend-mode: multiply;
    }
  }

  /* ─── Section shell ─── */
  .ev__section {
    border-top: 1px solid color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 10%, transparent);
  }
  .ev__section-inner {
    max-width: 78rem;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 4rem);
    padding-block: clamp(3rem, 5vw, 4.5rem);
  }
  .ev__section-label {
    font-family: var(--font-body-stack);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 38%, transparent);
    margin: 0 0 clamp(2rem, 4vw, 3rem);
  }

  /* ─── Upcoming cards ─── */
  .ev__cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
  .ev__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    padding-block: clamp(2rem, 3.5vw, 3rem);
    border-block-end: 1px solid color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 8%, transparent);
  }
  @media (min-width: 40rem) {
    .ev__card {
      grid-template-columns: clamp(7rem, 16%, 11rem) minmax(0, 1fr);
      column-gap: clamp(2rem, 4vw, 3.5rem);
      align-items: start;
    }
  }
  .ev__card-date-col { font-family: var(--font-body-stack); font-feature-settings: 'tnum' 1; }
  .ev__card-date { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; font-style: normal; }
  @media (min-width: 40rem) { .ev__card-date { flex-direction: column; gap: 0.2rem; } }
  .ev__card-day  { font-family: var(--font-display-stack); font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; color: var(--color-brass-400, #b89968); }
  .ev__card-my   { font-size: 0.88rem; font-weight: 500; color: color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 58%, transparent); }
  .ev__card-time { font-size: 0.8rem; color: color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 48%, transparent); margin: 0.3rem 0 0; }
  .ev__card-body { min-width: 0; }
  .ev__card-series { font-family: var(--font-body-stack); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-brass-400, #b89968); margin: 0 0 0.5rem; }
  .ev__card-title  { font-family: var(--font-display-stack); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; color: var(--color-parchment-200, #ebe0c8); margin: 0 0 0.5rem; }
  .ev__card-venue  { font-family: var(--font-body-stack); font-size: 0.88rem; color: color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 55%, transparent); margin: 0 0 0.75rem; }
  .ev__card-desc   { font-family: var(--font-body-stack); font-size: clamp(0.9rem, 1vw, 0.975rem); line-height: 1.65; color: color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 75%, transparent); max-width: 58ch; margin: 0 0 1rem; }
  .ev__card-cta    { font-family: var(--font-body-stack); display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; font-weight: 500; color: var(--color-brass-400, #b89968); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in oklch, var(--color-brass-400, #b89968) 35%, transparent); text-underline-offset: 0.4em; transition: color 180ms ease; }
  .ev__card-cta:hover { color: var(--color-brass-300, #c9b086); }
  .ev__card-arrow { display: inline-block; transition: transform 220ms ease; }
  .ev__card-cta:hover .ev__card-arrow { transform: translateX(4px); }

  /* ─── Empty state ─── */
  .ev__empty { padding-block: clamp(2.5rem, 5vw, 4rem); }
  .ev__empty-title {
    font-family: var(--font-display-stack);
    font-weight: 400;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--color-parchment-200, #ebe0c8);
    margin: 0 0 1rem;
  }
  .ev__empty-body {
    font-family: var(--font-body-stack);
    font-size: clamp(1rem, 1.1vw, 1.05rem);
    line-height: 1.7;
    color: color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 65%, transparent);
    max-width: 46ch;
    margin: 0 0 1.75rem;
  }
  .ev__empty-cta {
    font-family: var(--font-body-stack);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-brass-400, #b89968);
    text-decoration: underline;
    text-underline-offset: 0.4em;
    transition: color 180ms ease;
  }
  .ev__empty-cta:hover { color: var(--color-brass-300, #c9b086); }

  /* ─── Past events (redesigned) ─── */
  .ev__section--past {
    border-top: 1px solid rgba(27, 15, 94, 0.14);
    background:
      radial-gradient(60% 40% at 100% 0%, rgba(233, 197, 138, 0.08) 0%, rgba(233, 197, 138, 0) 60%),
      linear-gradient(180deg, #FBF5E8 0%, #F5EDDA 100%);
  }
  .ev__past-inner {
    max-width: 82rem;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 4rem);
    padding-block: clamp(3.5rem, 6vw, 5.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
  }
  @media (min-width: 60rem) {
    .ev__past-inner { grid-template-columns: minmax(0, 1fr) clamp(16rem, 30%, 22rem); }
  }

  .ev__past-list-col { min-width: 0; }

  .ev__past-head { margin-block-end: clamp(2rem, 3.5vw, 2.75rem); max-width: 46rem; }
  .ev__past-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body-stack);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #B68A45;
    margin: 0 0 0.8rem;
  }
  .ev__past-diamond {
    width: 8px; height: 8px;
    background: #B68A45;
    transform: rotate(45deg);
    display: inline-block;
    box-shadow: 0 0 8px rgba(182,138,69,0.4);
  }
  .ev__past-h2 {
    font-family: var(--font-display-stack);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #1B0F5E;
    margin: 0 0 0.6rem;
  }
  .ev__past-sub {
    font-family: var(--font-body-stack);
    font-size: clamp(0.95rem, 1.05vw, 1.05rem);
    line-height: 1.6;
    color: rgba(27, 15, 94, 0.7);
    max-width: 52ch;
    margin: 0;
  }

  .ev__past-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(182, 138, 69, 0.28);
  }
  .ev__past-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    padding-block: clamp(1.5rem, 2.5vw, 2rem);
    border-bottom: 1px solid rgba(182, 138, 69, 0.22);
    position: relative;
    transition: background-color 220ms ease, padding 220ms ease;
  }
  @media (min-width: 34rem) {
    .ev__past-item {
      grid-template-columns: clamp(6.5rem, 14%, 9rem) minmax(0, 1fr);
      column-gap: clamp(1.5rem, 3vw, 2.5rem);
      align-items: start;
    }
  }
  .ev__past-item:hover {
    background: rgba(182, 138, 69, 0.06);
    padding-inline: clamp(0.75rem, 1.5vw, 1.25rem);
  }
  .ev__past-item:hover .ev__past-title { color: #3F26A3; }
  .ev__past-item:hover .ev__past-bullet { transform: rotate(45deg) scale(1.15); opacity: 1; }

  /* Stacked date (day / month / year) */
  .ev__past-date-col {
    font-family: var(--font-display-stack);
    font-feature-settings: 'tnum' 1;
  }
  .ev__past-date-stack {
    display: inline-grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    gap: 0.05rem 0.45rem;
    align-items: baseline;
  }
  .ev__past-day {
    grid-row: 1 / span 2;
    align-self: center;
    font-size: clamp(2.5rem, 3.4vw, 3rem);
    line-height: 0.9;
    color: #B68A45;
    letter-spacing: -0.02em;
  }
  .ev__past-mo {
    font-family: var(--font-body-stack);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #B68A45;
    padding-block-start: 0.15rem;
  }
  .ev__past-yr {
    font-family: var(--font-body-stack);
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(27, 15, 94, 0.55);
  }
  .ev__past-date-plain {
    font-family: var(--font-body-stack);
    font-size: 0.9rem;
    color: #B68A45;
  }

  /* Detail row: brass diamond bullet + title/venue */
  .ev__past-detail {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 1rem;
    align-items: start;
  }
  .ev__past-bullet {
    width: 7px; height: 7px;
    background: #B68A45;
    transform: rotate(45deg);
    display: inline-block;
    margin-top: 0.85em;
    opacity: 0.65;
    transition: transform 260ms ease, opacity 220ms ease;
    flex-shrink: 0;
  }
  .ev__past-detail-body { min-width: 0; }
  .ev__past-title {
    font-family: var(--font-display-stack);
    font-weight: 400;
    font-size: clamp(1.15rem, 1.6vw, 1.55rem);
    line-height: 1.22;
    letter-spacing: -0.005em;
    color: #1B0F5E;
    margin: 0 0 0.35rem;
    transition: color 200ms ease;
  }
  .ev__past-venue {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-body-stack);
    font-size: 0.85rem;
    color: rgba(27, 15, 94, 0.6);
    line-height: 1.4;
    margin: 0;
  }
  .ev__past-pin {
    width: 12px;
    height: 12px;
    color: #B68A45;
    flex-shrink: 0;
    opacity: 0.85;
  }

  /* Aside image — brass-framed with caption */
  .ev__past-img-wrap {
    order: -1;
  }
  @media (min-width: 60rem) {
    .ev__past-img-wrap {
      order: 0;
      position: sticky;
      top: 5.5rem;
    }
  }
  .ev__past-img-frame {
    position: relative;
    background: #FFFDF5;
    padding: 0.6rem 0.6rem 0;
    border: 1px solid rgba(182, 138, 69, 0.35);
    box-shadow:
      0 30px 60px -30px rgba(27, 15, 94, 0.28),
      0 12px 24px -12px rgba(27, 15, 94, 0.18);
  }
  .ev__past-img-frame::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(182, 138, 69, 0.2);
    pointer-events: none;
  }
  .ev__past-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    filter: sepia(0.08) contrast(1.02) saturate(0.95);
  }
  @media (min-width: 60rem) {
    .ev__past-img { aspect-ratio: 4 / 5; }
  }
  .ev__past-img-caption {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.35rem;
    font-family: var(--font-body-stack);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(27, 15, 94, 0.55);
  }
  .ev__past-caption-dot {
    width: 6px; height: 6px;
    background: #B68A45;
    transform: rotate(45deg);
    flex-shrink: 0;
  }

  @media (prefers-reduced-motion: reduce) {
    .ev__card-cta, .ev__card-arrow, .ev__empty-cta { transition: none; }
    .ev__card-cta:hover .ev__card-arrow { transform: none; }
  }
