/* ================================
   Events Section
   DJ Oshawn Website
================================ */

.events-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background:
    radial-gradient(circle at top right, rgba(183, 25, 48, 0.14), transparent 34%),
    radial-gradient(circle at bottom left, rgba(183, 25, 48, 0.08), transparent 30%),
    #050505;
  color: #ffffff;
  padding: clamp(54px, 6vw, 96px) 3.5vw clamp(80px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}

.events-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.22;
  pointer-events: none;
}

.events-section__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1440px);
  margin: 0 auto;
}

.events-section__header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(38px, 4vw, 58px);
  position: relative;
}

.events-section__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.events-section__eyebrow span {
  display: block;
  width: 54px;
  height: 1px;
  background: #B71930;
  box-shadow: 0 0 10px rgba(183, 25, 48, 0.45);
}

.events-section__eyebrow p {
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #B71930;
  margin: 0;
  line-height: 1;
}

.events-section__header h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(42px, 5vw, 82px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin: 0;
}

.events-section__header h2::first-letter {
  color: #ffffff;
}

.events-section__intro {
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 720px;
  margin: 22px auto 0;
}

.events-section__top-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-size: 15px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  background: #B71930;
  border: 1px solid #B71930;
  padding: 15px 32px;
  line-height: 1;
  transition: all 0.25s ease;
}

.events-section__top-button:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

/* Grid */

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.5vw, 36px);
}

/* Card */

.event-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
    #0a0a0a;
  border: 1px solid rgba(255,255,255,0.09);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(183,25,48,0.18), transparent 38%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.event-card:hover {
  transform: translateY(-8px);
  border-color: rgba(183,25,48,0.78);
  box-shadow: 0 24px 70px rgba(183,25,48,0.18);
}

.event-card:hover::before {
  opacity: 1;
}

.event-card__image-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  background: #111111;
  aspect-ratio: 4 / 5;
}

.event-card__image-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0,0,0,0.82), transparent);
  z-index: 2;
  pointer-events: none;
}

.event-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1.01);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.event-card:hover .event-card__image {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.05);
}

/* Date badge */

.event-card__date {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  width: 72px;
  min-height: 86px;
  background: #B71930;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

.event-card__date span,
.event-card__date small {
  font-family: "Bebas Neue", "Oswald", sans-serif;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1;
}

.event-card__date span {
  font-size: 16px;
}

.event-card__date strong {
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-size: 38px;
  font-weight: 400;
  color: #ffffff;
  line-height: 0.9;
  margin: 4px 0;
}

.event-card__date small {
  font-size: 13px;
  opacity: 0.82;
}

/* Content */

.event-card__content {
  position: relative;
  z-index: 4;
  padding: 24px 24px 26px;
}

.event-card__category {
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #B71930;
  margin: 0 0 10px;
}

.event-card h3 {
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(20px, 1.5vw, 27px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #ffffff;
  margin: 0 0 14px;
}

.event-card__details {
  display: grid;
  gap: 5px;
  margin-bottom: 22px;
}

.event-card__details span {
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255,255,255,0.68);
}

.event-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B71930;
  text-decoration: none;
  transition: color 0.25s ease, gap 0.25s ease;
}

.event-card__link span {
  line-height: 1;
  transition: transform 0.25s ease;
}

.event-card__link:hover {
  color: #ffffff;
  gap: 12px;
}

.event-card__link:hover span {
  transform: translateX(3px);
}

/* Tablet */

@media (max-width: 1024px) {
  .events-section {
    padding: 90px 4vw;
  }

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

  .event-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Mobile */

@media (max-width: 767px) {
  .events-section {
    padding: 72px 5vw;
  }

  .events-section__header {
    text-align: left;
    margin-bottom: 38px;
  }

  .events-section__eyebrow {
    justify-content: flex-start;
  }

  .events-section__eyebrow span {
    width: 42px;
  }

  .events-section__eyebrow p {
    font-size: 13px;
    letter-spacing: 0.18em;
  }

  .events-section__header h2 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .events-section__intro {
    font-size: 15px;
    line-height: 1.6;
    margin-left: 0;
    margin-right: 0;
  }

  .events-section__top-button {
    margin-top: 24px;
    padding: 14px 28px;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .event-card:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }

  .event-card__image-wrap {
    aspect-ratio: 4 / 5;
  }

  .event-card__content {
    padding: 22px 20px 24px;
  }

  .event-card__date {
    width: 64px;
    min-height: 78px;
    top: 14px;
    left: 14px;
  }

  .event-card__date strong {
    font-size: 34px;
  }
}

/* Small Mobile */

@media (max-width: 420px) {
  .events-section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .event-card__image-wrap {
    aspect-ratio: 3 / 4;
  }

  .event-card h3 {
    font-size: 22px;
  }
}

.event-card__tooltip-wrap {
  position: relative;
  margin-top: 14px;
}

.event-card__tooltip-trigger {
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.74);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.event-card__tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  width: min(280px, 80vw);
  background: rgba(5,5,5,0.96);
  border: 1px solid rgba(183,25,48,0.55);
  color: rgba(255,255,255,0.82);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  padding: 14px 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.22s ease;
  z-index: 20;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}

.event-card__tooltip-wrap:hover .event-card__tooltip,
.event-card__tooltip-trigger:focus + .event-card__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}