/* ===========================================
   ZenOps - Événements Page Styles
   =========================================== */

/* ---- Hero ---- */
.events-hero {
  padding: 180px 80px 60px;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.events-hero__kicker {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 28px;
  line-height: 120%;
  letter-spacing: 0.03em;
  color: var(--color-accent-green);
  margin: 0 0 20px 0;
}

.events-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 110%;
  color: var(--color-text-light);
  margin: 0 0 24px 0;
}

.events-hero__subtitle {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 18px;
  line-height: 160%;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0;
}

/* ---- Timeline ---- */
.events-timeline {
  position: relative;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 80px 120px;
}

.events-timeline__line {
  position: absolute;
  left: 232px;
  top: 0;
  bottom: 80px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent-green) 0%, var(--color-accent-cyan) 50%, rgba(161, 243, 255, 0) 100%);
}

.events-timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 64px;
  align-items: start;
  margin-bottom: 48px;
  position: relative;
}

.events-timeline__item:last-child {
  margin-bottom: 0;
}

/* ---- Date ---- */
.events-timeline__date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 28px;
}

.events-timeline__day {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 1;
  white-space: nowrap;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.events-timeline__month {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ---- Dot ---- */
.events-timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-green), var(--color-accent-cyan));
  border: 3px solid var(--color-text-dark);
  box-shadow: 0 0 16px rgba(59, 255, 154, 0.3);
  position: absolute;
  left: 145px;
  top: 32px;
  z-index: 1;
}

/* ---- Card ---- */
.events-timeline__card {
  border-radius: 20px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.events-timeline__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(19, 76, 102, 0.2);
}

/* ---- Badge ---- */
.events-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  margin-right: 8px;
}

.events-badge--conference {
  background: rgba(59, 255, 154, 0.1);
  color: var(--color-accent-green);
  border: 1px solid rgba(59, 255, 154, 0.2);
}

.events-badge--handson {
  background: rgba(161, 243, 255, 0.1);
  color: var(--color-accent-cyan);
  border: 1px solid rgba(161, 243, 255, 0.2);
}

.events-badge--happyhour {
  background: rgba(255, 184, 59, 0.1);
  color: #FFB83B;
  border: 1px solid rgba(255, 184, 59, 0.2);
}

/* Vendor badges (sit next to the type badge) */
.events-badge--teleport {
  background: rgba(139, 111, 255, 0.12);
  color: #B7A6FF;
  border: 1px solid rgba(139, 111, 255, 0.28);
}

.events-badge--castai {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-light);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Repli pour tout vendor Notion sans couleur dédiée (Portworx, SUSE…) : le
   générateur ne doit jamais produire un badge sans style. */
.events-badge--vendor {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---- Card content ---- */
.events-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 120%;
  color: var(--color-text-light);
  margin: 0 0 12px 0;
}

.events-card__location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 16px 0;
}

.events-card__icon {
  flex-shrink: 0;
  color: var(--color-accent-green);
}

.events-card__description {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 15px;
  line-height: 160%;
  color: var(--color-text-muted);
  margin: 0 0 20px 0;
}

/* ---- Partner logos ---- */
.events-card__logos {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.events-card__partner-logo {
  height: 22px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%) brightness(1.2);
}

/* ---- CTA link ---- */
.events-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-accent-green);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.events-card__cta:hover {
  gap: 12px;
}

/* ---- État vide ---- */
/* La timeline ne contient que des événements à venir : quand il n'y en a aucun,
   la page doit dire quelque chose plutôt que d'afficher une ligne nue. */
.events-timeline__empty {
  color: var(--color-text-muted);
  font-size: 18px;
  text-align: center;
  padding: 64px 24px;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .events-hero {
    padding: 160px 40px 40px;
  }

  body.has-topbar .events-hero {
    padding-top: 200px;
  }

  .events-hero__title {
    font-size: 48px;
  }

  .events-timeline {
    padding: 0 40px 80px;
  }

  .events-timeline__line {
    left: 192px;
  }
}

@media (max-width: 768px) {
  .events-hero {
    padding: 140px 20px 32px;
  }

  body.has-topbar .events-hero {
    padding-top: 180px;
  }

  .events-hero__title {
    font-size: 36px;
  }

  .events-timeline {
    padding: 0 20px 60px;
  }

  .events-timeline__line {
    left: 27px;
    top: 0;
  }

  .events-timeline__item {
    grid-template-columns: 1fr;
    gap: 12px 0;
    padding-left: 48px;
    margin-bottom: 36px;
  }

  .events-timeline__date {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding-top: 0;
  }

  .events-timeline__day {
    font-size: 24px;
  }

  .events-timeline__dot {
    display: block;
    position: absolute;
    left: 1px;
    top: 8px;
    margin-top: 0;
  }

  .events-timeline__card {
    padding: 24px;
  }

  .events-card__title {
    font-size: 20px;
  }
}
