/* ============================================================
   Podstrm - events page styles
   ============================================================ */

.container {
  max-width: var(--page-max);
}

.events-page {
  min-height: calc(100vh - 72px);
  padding: 70px 0 90px;
}

.events-intro {
  margin-bottom: 52px;
}

.schedule-pill,
.date-pill,
.price-pill,
.host-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.schedule-pill {
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  background: rgba(151, 65, 255, 0.22);
  color: #a046ff;
  font-size: 11px;
}

.events-intro h1 {
  margin-top: 26px;
  color: var(--text);
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.events-intro p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.events-list {
  display: grid;
  gap: 22px;
}

.events-list.is-empty > .event-card { display: none; }
.events-list:not(.is-empty) > .events-empty { display: none; }

.events-empty {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  padding: 58px 32px 64px;
  overflow: hidden;
  border: 1px solid rgba(88, 104, 134, 0.34);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(45, 79, 255, 0.16), transparent 44%), linear-gradient(145deg, rgba(19, 26, 42, 0.92), rgba(10, 14, 24, 0.96));
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
}

.events-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

[data-theme="light"] .events-empty {
  border-color: rgba(31, 79, 255, 0.14);
  background: radial-gradient(circle at 50% 0%, rgba(31, 79, 255, 0.12), transparent 45%), linear-gradient(145deg, #fff, #f7f8fc);
  box-shadow: 0 24px 60px rgba(25, 41, 85, 0.08);
}

[data-theme="light"] .events-empty::before { background-image: radial-gradient(rgba(31, 79, 255, 0.18) 1px, transparent 1px); }

.empty-visual { position: relative; width: 174px; height: 150px; margin-bottom: 24px; }

.empty-orbit {
  position: absolute;
  left: 50%;
  top: 49%;
  border: 1px solid rgba(72, 103, 255, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.empty-orbit-one { width: 170px; height: 104px; }
.empty-orbit-two { width: 136px; height: 136px; transform: translate(-50%, -50%) rotate(35deg); }

.empty-calendar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 105px;
  overflow: hidden;
  border: 1px solid rgba(111, 130, 169, 0.46);
  border-radius: 18px;
  background: #171f30;
  transform: translate(-50%, -50%) rotate(-3deg);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36), 0 0 36px rgba(31, 79, 255, 0.12);
}

[data-theme="light"] .empty-calendar { border-color: rgba(31, 79, 255, 0.18); background: #fff; box-shadow: 0 18px 38px rgba(32, 54, 110, 0.14); }

.empty-calendar-top { position: relative; height: 33px; background: linear-gradient(110deg, var(--blue), #8566ff); }
.empty-calendar-top span { position: absolute; top: -6px; width: 7px; height: 15px; border: 2px solid #b8c5ff; border-radius: 5px; }
.empty-calendar-top span:first-child { left: 25px; }
.empty-calendar-top span:last-child { right: 25px; }
.empty-calendar-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 17px; }
.empty-calendar-body span { width: 10px; height: 10px; border-radius: 3px; background: #354057; }
[data-theme="light"] .empty-calendar-body span { background: #dfe4ef; }
.empty-calendar-body .is-highlighted { background: var(--cyan); box-shadow: 0 0 12px rgba(31, 214, 224, 0.7); }

.empty-spark { position: absolute; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px currentColor; }
.empty-spark-one { top: 16px; right: 15px; width: 7px; height: 7px; color: var(--cyan); }
.empty-spark-two { bottom: 20px; left: 5px; width: 5px; height: 5px; color: #8566ff; background: #8566ff; }
.empty-spark-three { top: 56px; left: 3px; width: 4px; height: 4px; color: #57ee09; background: #57ee09; }

.empty-copy { position: relative; z-index: 1; max-width: 520px; }
.empty-kicker { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border: 1px solid rgba(79, 111, 255, 0.26); border-radius: 999px; background: rgba(31, 79, 255, 0.1); color: #91a6ff; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
[data-theme="light"] .empty-kicker { color: #254cd8; }
.empty-copy h2 { margin-top: 16px; color: var(--text); font-size: clamp(24px, 3vw, 34px); line-height: 1.14; letter-spacing: -0.045em; }
.empty-copy p { max-width: 470px; margin: 12px auto 0; color: var(--text-muted); font-size: 15px; font-weight: 500; line-height: 1.65; }
.empty-action { min-height: 48px; margin-top: 26px; padding: 0 22px; border-radius: 12px; background: linear-gradient(100deg, var(--blue), #405eff); color: #fff; font-weight: 800; box-shadow: 0 12px 28px rgba(31, 79, 255, 0.27); }
.empty-action svg { transition: transform 0.18s ease; }
.empty-action:hover svg { transform: translateX(3px); }

.event-card {
  display: grid;
  grid-template-columns: 288px 1fr;
  min-height: 287px;
  overflow: hidden;
  border: 1px solid #324059;
  border-radius: 8px;
  background: #0e1522;
}

[data-theme="light"] .event-card {
  border-color: #aeb0b5;
  background: #fff;
}

.event-image {
  width: 100%;
  height: 100%;
  min-height: 287px;
  object-fit: cover;
}

.event-details {
  padding: 29px 28px 28px;
}

.event-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.date-pill {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  background: #20293a;
  color: #e0e3ea;
  font-size: 11px;
}

[data-theme="light"] .date-pill {
  background: #c9cbcd;
  color: #191c22;
}

.price-pill {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  color: #102000;
  font-size: 11px;
}

.price-pill.free {
  background: #57ee09;
}

.price-pill.premium {
  background: #a545ff;
  color: #fff;
}

.event-details h2 {
  margin-top: 20px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.event-details p {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.host-pill {
  gap: 6px;
  min-height: 34px;
  margin-top: 23px;
  padding: 5px 9px 5px 6px;
  border-radius: 8px;
  background: #182232;
  color: #e2e5eb;
  font-size: 12px;
  transition: transform 0.18s ease, background 0.18s ease;
}

[data-theme="light"] .host-pill {
  background: #c8cacc;
  color: #23262c;
}

.host-pill:hover,
.host-pill:focus-visible {
  transform: translateY(-2px);
  background: #22314a;
}

[data-theme="light"] .host-pill:hover,
[data-theme="light"] .host-pill:focus-visible {
  background: #b7bbc3;
}

.host-pill img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.event-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.event-register,
.event-copy {
  height: 45px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}

.event-register {
  min-width: 206px;
  padding: 0 22px;
  background: linear-gradient(90deg, var(--blue), #08d5cc);
  color: #fff;
}

[data-theme="dark"] .event-register {
  background: var(--blue);
}

.event-copy {
  min-width: 143px;
  padding: 0 20px;
  border: 1px solid #324059;
  background: transparent;
  color: #fff;
}

[data-theme="light"] .event-copy {
  border-color: #1b2434;
  background: #070d19;
}

@media (max-width: 900px) {
  .event-card {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 720px) {
  .events-page {
    padding-top: 42px;
  }

  .events-intro {
    margin-bottom: 32px;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-image {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .event-details {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--page-gutter);
  }

  .events-intro h1 {
    font-size: 28px;
  }

  .events-empty { min-height: 420px; padding: 46px 20px 52px; border-radius: 18px; }
  .empty-visual { margin-bottom: 15px; transform: scale(0.9); }

  .event-actions,
  .event-register,
  .event-copy {
    width: 100%;
  }
}
