/* ================================================================
   EVENTS PAGE — events.css
   Cyber-Minimalist / New Media aesthetic
   Requires: style.css loaded first (for @font-face + :root vars)
   ================================================================ */

/* ── Reset / base for this page ─────────────────────────────── */
.events-page {
  background: #000;
  color: #fff;
  font-family: 'Robit', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: crosshair;
}

/* ── Navigation bar (Inherits from style.css global header) ── */

/* Global Navigation Inherited from style.css */


/* ── Lime separator ───────────────────────────────────────────── */
.ev-nav-sep {
  width: calc(100% - 10vw);
  margin: 0 5vw;
  height: 1px;
  background: #CCFF00;
}

/* ── Hero section ─────────────────────────────────────────────── */
.ev-hero {
  position: relative;
  padding: 160px 5vw 6vh; /* Exhibition-Standard buffer for fixed navigation */
  overflow: hidden;
}

/* Ghosted background image */
.ev-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ev-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.12;
  filter: grayscale(60%) brightness(0.6);
}

/* Dark gradient to bleed into cards section */
.ev-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.55) 60%,
    #000 100%
  );
  z-index: 1;
}

.ev-hero-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

.ev-hero-title {
  font-family: 'Robitrial', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  color: #CCFF00;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.ev-hero-sub {
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

/* ── Cards grid ───────────────────────────────────────────────── */
.ev-grid-section {
  background: #111;
  padding: 3rem 5vw 4rem;
}

.ev-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Individual card ──────────────────────────────────────────── */
.ev-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.ev-card:hover {
  border-color: rgba(204, 255, 0, 0.35);
  transform: translateY(-3px);
}

/* Card image wrap */
.ev-card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0d0d0d;
}

.ev-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.85);
}

.ev-card:hover .ev-card-img {
  transform: scale(1.04);
  filter: brightness(1);
}

/* Badge in top-right */
.ev-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(204, 255, 0, 0.5);
  color: #CCFF00;
  font-family: 'Robitrial', monospace, sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

/* Card body */
.ev-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1rem;
}

/* Event title */
.ev-card-title {
  font-family: 'Robitrial', sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  color: #CCFF00;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
}

/* Metadata table */
.ev-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.5rem;
  row-gap: 0.3rem;
  margin: 0;
}

.ev-meta dt {
  font-size: 0.62rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.05em;
  white-space: nowrap;
}

.ev-meta dd {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  text-align: right;
}

/* Status colours */
.ev-status { font-weight: 700; text-align: right; }
.ev-status--live  { color: #CCFF00; }
.ev-status--soon  { color: rgba(204, 255, 0, 0.55); }
.ev-status--ended { color: rgba(255, 255, 255, 0.3); }

/* CTA buttons */
.ev-btn {
  display: block;
  text-align: center;
  font-family: 'Robitrial', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1rem;
  margin-top: auto;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.ev-btn--fill {
  background: #CCFF00;
  color: #000;
  border: 1px solid #CCFF00;
}

.ev-btn--fill:hover {
  background: #b8e600;
  border-color: #b8e600;
}

.ev-btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ev-btn--outline:hover {
  border-color: #CCFF00;
  color: #CCFF00;
}

/* ── DATA_LOG stats bar ───────────────────────────────────────── */
.ev-datalog {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 3.5rem 5vw;
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}

.ev-datalog-left {
  flex: 0 0 auto;
  max-width: 260px;
}

.ev-datalog-label {
  font-family: 'Robitrial', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.07);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1.2rem;
  user-select: none;
}

.ev-datalog-desc {
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ev-datalog-stats {
  display: flex;
  gap: 3.5rem;
  flex: 1;
  align-items: center;
  flex-wrap: wrap;
}

.ev-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ev-stat-num {
  font-family: 'Robitrial', sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 700;
  color: #CCFF00;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ev-stat-label {
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ev-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .ev-hero {
    padding: 4vh 5vw 5vh;
  }

  .ev-datalog {
    flex-direction: column;
    gap: 2rem;
  }

  .ev-datalog-stats {
    gap: 2rem;
  }
}

/* ================================================================
   Accessibility Focus Overrides (Media Art Handler / Events)
   ================================================================ */
a:focus, button:focus, .ev-card:focus, .ev-btn:focus, [tabindex]:focus {
  outline: none !important;
}

a:focus-visible, button:focus-visible, .ev-card:focus-visible, .ev-btn:focus-visible, [tabindex]:focus-visible {
  outline: 1px solid rgba(204, 255, 0, 0.5) !important;
  outline-offset: 2px;
  border-radius: 2px;
}
