/* /explore. Colours come from the shared tokens in shows-ui.css (light and night mode). */

.explore {
  display: block;
  padding-bottom: 48px;
  background: var(--ev-bg);
  color: var(--ev-text);
}

.explore [hidden] {
  display: none !important;
}

.explore-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Hero */
.explore-hero {
  padding: 36px 0 32px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .16), transparent 45%),
    linear-gradient(135deg, #8f2d07, var(--ev-brand) 70%, #f39a3d);
  color: #fff;
  text-align: center;
}

html.night-mode .explore-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .08), transparent 45%),
    linear-gradient(135deg, #3b1606, #7a2f0c);
}

.explore-hero__title {
  margin: 0;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
}

.explore-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 680px;
  margin: 20px auto 0;
  padding: 7px;
  border-radius: 14px;
  background: var(--ev-surface);
  box-shadow: 0 18px 40px rgba(30, 10, 0, .28);
  text-align: left;
}

.explore-search:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 18px 40px rgba(30, 10, 0, .28);
}

.explore-search__icon {
  margin-left: 10px;
  color: var(--ev-muted);
}

.explore-search__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--ev-text);
  font-size: 16px;
  outline: 0;
}

.explore-search__input::placeholder {
  color: var(--ev-muted);
  font-size: 16px;
}

.explore-search__button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--ev-brand);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.explore-search__button:hover,
.explore-search__button:focus-visible {
  background: var(--ev-brand-strong);
}

.explore-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.explore-quick__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff !important;
  font-size: 14px;
  text-decoration: none;
}

.explore-quick__link:hover,
.explore-quick__link:focus-visible {
  background: rgba(255, 255, 255, .24);
}

/* Sections */
.explore-section {
  padding-top: 32px;
}

.explore-section__title {
  margin: 0 0 14px;
  color: var(--ev-text);
  font-size: 18px;
  font-weight: 600;
}

/* Trending: a swipeable row on phones, a grid on wide screens */
.explore-rail {
  display: grid;
  grid-auto-columns: minmax(260px, 78%);
  grid-auto-flow: column;
  gap: 14px;
  margin: 0 -16px;
  padding: 2px 16px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
  scrollbar-width: thin;
}

.explore-rail__item {
  display: flex;
  scroll-snap-align: start;
}

/* Topic tiles */
.explore-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.explore-topic {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--ev-radius-sm);
  background: var(--ev-surface-muted);
  text-decoration: none;
}

.explore-topic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.explore-topic:hover img,
.explore-topic:focus-visible img {
  transform: scale(1.05);
}

.explore-topic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .08) 65%);
}

.explore-topic__text {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 1;
  display: grid;
  color: #fff;
}

.explore-topic__name {
  font-size: 15px;
  font-weight: 600;
}

/* List head, filters and active filters */
.explore-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-sm);
  background: var(--ev-surface);
}

.explore-filter label {
  display: block;
  margin-bottom: 4px;
  color: var(--ev-muted);
  font-size: 13px;
  font-weight: 500;
}

.explore-filter select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--ev-border);
  border-radius: 10px;
  background-color: var(--ev-surface);
  color: var(--ev-text);
  font-size: 16px;
}

.explore-filter select:focus {
  border-color: var(--ev-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--shows-primary) 16%, transparent);
  outline: 0;
}

.explore-filters__apply {
  min-height: 44px;
  align-self: end;
  border: 0;
  border-radius: 10px;
  background: var(--ev-brand);
  color: #fff;
  font-size: 15px;
}

.explore-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.explore-active__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ev-brand-soft);
  color: var(--ev-brand) !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.explore-active__chip:hover,
.explore-active__chip:focus-visible {
  background: var(--ev-brand);
  color: #fff !important;
}

.explore-active__clear {
  color: var(--ev-muted) !important;
  font-size: 14px;
}

/* Results */
.explore-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.explore-grid > li {
  display: flex;
}

.explore-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 16px;
  border: 1px dashed var(--ev-border);
  border-radius: var(--ev-radius-sm);
  background: var(--ev-surface);
  color: var(--ev-muted);
  text-align: center;
}

.explore-empty i {
  font-size: 28px;
}

.explore-empty p {
  margin: 0;
  font-size: 15px;
}

.explore-empty__action {
  color: var(--ev-brand) !important;
  font-weight: 500;
}

/* More events */
.explore-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.explore-more__button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid var(--ev-brand);
  border-radius: 999px;
  background: var(--ev-surface);
  color: var(--ev-brand) !important;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.explore-more__button:hover,
.explore-more__button:focus-visible {
  background: var(--ev-brand);
  color: #fff !important;
}

.explore-more__button[aria-busy="true"] {
  opacity: .7;
  pointer-events: none;
}

/* Places */
.explore-places {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.explore-place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--ev-border);
  border-radius: 999px;
  background: var(--ev-surface);
  color: var(--ev-text) !important;
  font-size: 14px;
  text-decoration: none;
}

.explore-place i {
  color: var(--ev-brand);
}

.explore-place:hover,
.explore-place:focus-visible {
  border-color: var(--ev-brand);
}

@media (min-width: 576px) {
  .explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explore-rail {
    grid-auto-columns: minmax(280px, 44%);
  }
}

@media (min-width: 768px) {
  .explore-hero {
    padding: 56px 0 48px;
  }

  .explore-hero__title {
    font-size: 34px;
  }

  .explore-section {
    padding-top: 44px;
  }

  .explore-topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .explore-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .explore-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .explore-rail {
    grid-auto-columns: calc((100% - 42px) / 4);
    margin: 0;
    padding: 2px 0 8px;
  }

  .explore-topics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .explore-filters {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .explore-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
