/* Alumni events (alumni/events.php) — WSU oxide & gold, mirrors alumni-marketplace.css */

.aev {
  --aev-oxide: #551516;
  --aev-oxide-deep: #3a0d0e;
  --aev-gold: #cb892c;
  --aev-gold-soft: #f0c98d;
  --aev-gold-text: #8a5a17;
  --aev-ink: #1d1112;
  --aev-muted: #6f6260;
  --aev-line: #eadfd4;
  --aev-cream: #fbf7f2;
  --aev-sand: #f3ebe1;
  --aev-green: #2f6b3a;
  --aev-serif: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--aev-ink);
}

/* ─── Buttons ─────────────────────────────────────────────── */
.aev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.aev-btn:hover { transform: translateY(-1px); }
.aev-btn--primary { background: var(--aev-oxide); color: #fff; }
.aev-btn--primary:hover { background: var(--aev-oxide-deep); color: #fff; }
.aev-btn--outline { border-color: var(--aev-line); background: #fff; color: var(--aev-oxide); }
.aev-btn--outline:hover { border-color: var(--aev-oxide); color: var(--aev-oxide); }
.aev-btn--gold { min-height: 2.75rem; background: var(--aev-gold); color: #fff; }
.aev-btn--gold:hover { background: #b37422; color: #fff; }
.aev-btn--ghost { min-height: 2.75rem; border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.aev-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ─── Hero ────────────────────────────────────────────────── */
.aev-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.75rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(circle at 92% 0%, rgba(203, 137, 44, 0.38), transparent 42%),
    linear-gradient(120deg, var(--aev-oxide-deep) 0%, var(--aev-oxide) 55%, #7a2a1a 100%);
}

.aev-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

.aev-eyebrow {
  margin: 0 0 0.6rem;
  color: var(--aev-gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.aev-hero h1 {
  max-width: 40rem;
  margin: 0;
  color: #fff;
  font-family: var(--aev-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.aev-hero h1 em {
  color: var(--aev-gold-soft);
  font-style: italic;
}

.aev-hero__lead {
  max-width: 38rem;
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  line-height: 1.6;
}

.aev-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.aev-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.6rem;
  margin: 0;
}

.aev-hero__stats div {
  min-width: 6.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.aev-hero__stats dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
}

.aev-hero__stats dd {
  margin: 0.15rem 0 0;
  font-family: var(--aev-serif);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

/* ─── Sections ────────────────────────────────────────────── */
.aev-section {
  margin-bottom: 2rem;
  scroll-margin-top: 5rem;
}

.aev-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.aev-section__head h2 {
  margin: 0;
  font-family: var(--aev-serif);
  font-size: 1.5rem;
  font-weight: 700;
}

.aev-section__head p {
  margin: 0.2rem 0 0;
  color: var(--aev-muted);
  font-size: 0.85rem;
}

/* ─── Upcoming cards ──────────────────────────────────────── */
.aev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.15rem;
}

.aev-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--aev-line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  scroll-margin-top: 5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.aev-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--aev-gold) 45%, var(--aev-line));
  box-shadow: 0 18px 40px rgba(58, 13, 14, 0.12);
}

.aev-card:target {
  border-color: var(--aev-gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--aev-gold) 35%, transparent);
}

.aev-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  /* Brand panel shows if an image fails to load */
  background: radial-gradient(circle at 80% 10%, rgba(203, 137, 44, 0.35), transparent 50%), linear-gradient(135deg, #551516, #7a2a1a);
}

.aev-card__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aev-date {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  display: grid;
  justify-items: center;
  min-width: 3.6rem;
  padding: 0.45rem 0.55rem 0.4rem;
  border-radius: 14px;
  background: #fff;
  color: var(--aev-ink);
  line-height: 1;
  box-shadow: 0 8px 20px rgba(29, 17, 18, 0.22);
}

.aev-date__m {
  color: var(--aev-oxide);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aev-date__d {
  margin: 0.15rem 0;
  font-family: var(--aev-serif);
  font-size: 1.6rem;
  font-weight: 700;
}

.aev-date__w {
  color: var(--aev-muted);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
}

.aev-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--aev-oxide);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.aev-card__media .aev-pill {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.aev-pill--going {
  background: var(--aev-green);
  color: #fff;
}

.aev-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.1rem 1.1rem;
}

.aev-card__kicker {
  margin: 0;
  color: var(--aev-gold-text);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aev-card__org {
  color: var(--aev-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.aev-card__title {
  margin: 0;
  font-family: var(--aev-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}

.aev-card__title a {
  color: var(--aev-ink);
  text-decoration: none;
}

.aev-card__title a:hover {
  color: var(--aev-oxide);
  text-decoration: underline;
}

.aev-meta {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--aev-muted);
  font-size: 0.84rem;
}

.aev-meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.aev-meta svg {
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.15rem;
  fill: none;
  stroke: var(--aev-oxide);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aev-card__desc {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--aev-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.aev-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--aev-line);
}

.aev-card__foot form {
  margin: 0 0 0 auto;
}

.aev-walkin {
  margin-left: auto;
  color: var(--aev-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ─── Empty state ─────────────────────────────────────────── */
.aev-empty {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: clamp(2rem, 5vw, 3rem) 1.25rem;
  border: 1px dashed #dcc9b5;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.aev-empty__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 16px;
  background: var(--aev-sand);
  color: var(--aev-oxide);
}

.aev-empty__icon svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aev-empty h3 {
  margin: 0.4rem 0 0;
  font-family: var(--aev-serif);
  font-size: 1.35rem;
}

.aev-empty p {
  max-width: 34rem;
  margin: 0 0 0.5rem;
  color: var(--aev-muted);
  line-height: 1.6;
}

.aev-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

/* ─── Past events list ────────────────────────────────────── */
.aev-past {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--aev-line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.aev-past li + li {
  border-top: 1px solid var(--aev-line);
}

.aev-past__row {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.aev-past__row:hover {
  background: var(--aev-cream);
  color: inherit;
}

.aev-past__date {
  display: grid;
  justify-items: center;
  padding: 0.4rem 0.2rem;
  border-radius: 12px;
  background: var(--aev-sand);
  line-height: 1.1;
}

.aev-past__date strong {
  font-family: var(--aev-serif);
  font-size: 1.25rem;
}

.aev-past__date span {
  color: var(--aev-muted);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.aev-past__main {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.aev-past__main strong {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.aev-past__main span {
  overflow: hidden;
  color: var(--aev-muted);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aev-past__go {
  color: var(--aev-oxide);
  font-weight: 700;
  transition: transform 0.15s ease;
}

.aev-past__row:hover .aev-past__go {
  transform: translateX(3px);
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .aev-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 640px) {
  .aev-hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aev-hero__stats div {
    min-width: 0;
    padding: 0.7rem;
  }

  .aev-hero__stats dd {
    font-size: 1.45rem;
  }

  .aev-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .aev-past__row {
    grid-template-columns: 3.2rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
  }

  .aev-past__row .aev-pill {
    grid-column: 2;
    justify-self: start;
  }

  .aev-past__go {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aev-btn,
  .aev-card,
  .aev-past__go {
    transition: none;
  }
}
