/* ==========================================================================
   LEGACY OPERATIONS · events.css
   Styles for events.html (listing) and event.html (detail)
   ========================================================================== */

/* ---------- page hero ---------- */
.page-hero {
  background: var(--burgundy-dark);
  color: var(--ivory);
  padding: clamp(56px, 9vw, 96px) 0;
}

.page-hero .eyebrow {
  color: var(--gold);
}

.page-hero h1 {
  color: var(--ivory);
  font-size: var(--fs-h1);
  max-width: 720px;
}

.page-hero p {
  margin-top: 16px;
  color: var(--text-on-dark);
  max-width: 560px;
  line-height: 1.65;
}

/* ---------- category tabs ---------- */
.ev-tabs {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.ev-tab {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--burgundy);
  border: 1.5px solid var(--sand-line);
  background: var(--surface);
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.ev-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.ev-tab.active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--ivory);
}

/* ---------- event cards ---------- */
.ev-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.ev-grid > * {
  flex: 1 1 320px;
  min-width: 280px;
}

.ev-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}

.ev-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ev-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* placeholder covers (swap for real photos when available) */
.ph-conference { background: radial-gradient(circle at 30% 25%, rgba(201,162,75,.55), transparent 62%), radial-gradient(circle at 78% 75%, rgba(92,26,43,.72), transparent 58%), var(--sand); }
.ph-community  { background: radial-gradient(circle at 70% 30%, rgba(47,93,80,.55), transparent 60%), radial-gradient(circle at 22% 78%, rgba(201,162,75,.5), transparent 55%), var(--sand); }
.ph-gala       { background: radial-gradient(circle at 50% 20%, rgba(92,26,43,.55), transparent 58%), radial-gradient(circle at 80% 80%, rgba(219,181,97,.5), transparent 55%), var(--ivory); }
.ph-workshop   { background: radial-gradient(circle at 25% 70%, rgba(42,14,23,.6), transparent 55%), radial-gradient(circle at 75% 25%, rgba(201,162,75,.45), transparent 60%), var(--sand); }

.ev-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.ev-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.ev-titles h3 {
  font-size: 1.1875rem;
  line-height: 1.25;
}

.ev-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.ev-body p {
  font-size: var(--fs-small);
  color: var(--text);
  flex: 1;
}

.ev-body .tc-link {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--burgundy);
  transition: color var(--dur) var(--ease);
}

.ev-card:hover .tc-link {
  color: var(--gold);
}

.ev-empty {
  background: var(--surface);
  border: 1.5px dashed var(--sand-line);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  flex: 1 1 100%;
}

.ev-empty h3 {
  font-size: var(--fs-h3);
  margin-bottom: 8px;
}

.ev-empty p {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

/* ---------- event detail ---------- */
.event-hero {
  background: var(--burgundy-dark);
  color: var(--ivory);
  padding: clamp(56px, 9vw, 96px) 0;
  position: relative;
  overflow: hidden;
}

.event-hero .eyebrow {
  color: var(--gold);
}

.event-hero h1 {
  color: var(--ivory);
  font-size: var(--fs-hero);
  max-width: 820px;
}

.ev-meta-lg {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--text-on-dark);
}

.countdown {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.cd-cell {
  background: rgba(247, 241, 230, 0.06);
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  min-width: 88px;
  text-align: center;
}

.cd-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.cd-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-on-dark);
  margin-top: 4px;
}

.event-cta {
  margin-top: var(--space-4);
}

.event-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: flex-start;
}

.event-grid > div:first-child {
  flex: 1 1 480px;
  min-width: 300px;
}

.event-grid aside {
  flex: 1 1 280px;
  min-width: 260px;
}

.ev-side-card .date-chip {
  background: var(--burgundy);
}

/* ---------- facts & highlights ---------- */
.ev-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.ev-fact {
  flex: 1 1 150px;
  background: var(--surface);
  border: 1.5px solid var(--sand-line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ev-fact .evf-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-muted);
}

.ev-fact .evf-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--burgundy);
}

.ev-highlights h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-2);
}

.ev-highlights ul {
  list-style: none;
}

.ev-highlights li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--sand);
  font-size: var(--fs-small);
  color: var(--text);
  line-height: 1.55;
}

.ev-highlights li:last-child {
  border-bottom: none;
}

.ev-highlights li::before {
  content: '\2713';
  position: absolute;
  left: 4px;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- attendees ---------- */
.att-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-2);
}

.att-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sand);
}

.att-row:last-child {
  border-bottom: none;
}

.att-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.att-name {
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--charcoal);
}

.att-org {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-left: auto;
  text-align: right;
}

.att-empty {
  font-size: var(--fs-small);
  color: var(--text-muted);
}
