/* ============================================================
   Gaming Page
   ============================================================ */

/* ── Hero Banner ── */

.gaming-hero {
  position: relative;
  width: 100%;
  min-height: 700px;
  overflow: hidden;
  background-image: linear-gradient(182.76deg, rgba(0, 0, 0, 0.6) 4.53%, rgba(0, 0, 0, 0) 30.8%), linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url("../images/gaming/gaming-banner.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gaming-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 768px;
  text-align: center;
}

.gaming-hero-heading {
  position: relative;
  width: 1030px;
  height: 200px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gaming-hero-heading-glow,
.gaming-hero-heading-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 80px;
  line-height: 100px;
  text-transform: capitalize;
  text-align: center;
}

.gaming-hero-heading-glow {
  color: rgba(194, 27, 181, 0.6);
  filter: blur(15px);
}

.gaming-hero-heading-text {
  color: #ffffff;
}

.gaming-hero-subtitle {
  width: 768px;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  color: #ffffff;
  text-align: center;
}

/* ── Gaming Grid ── */

.gaming-grid {
  background: var(--color-page-bg);
  padding: 80px 80px 0 80px;
}

.gaming-grid-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.gaming-grid-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  line-height: 40px;
  color: var(--color-purple);
  margin: 0;
  text-transform: capitalize;
}

.gaming-grid-layout {
  display: flex;
  gap: 38px;
  align-items: flex-start;
}

/* Sidebar */

.gaming-sidebar {
  width: 370px;
  flex-shrink: 0;
  /* Hug the filter content instead of stretching to the results column height,
     which would leave a large empty gap below the last pill. */
  align-self: flex-start;
}

.gaming-sidebar-inner {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gaming-filter-mobile-header {
  display: none;
}
.gaming-filter-mobile-body {
  display: contents;
}

.gaming-filter-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* The sub-category section is toggled via the [hidden] attribute in JS. Without
   this override, .gaming-filter-section's display:flex beats the UA [hidden]
   rule (equal specificity, author wins), so the empty section stays a flex item
   and its 40px gap leaves a phantom gap at the bottom of the sidebar. */
.gaming-filter-section[hidden] {
  display: none;
}

/* Search */

.gaming-search-label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  background: #ffffff;
  border: 1px solid #d5d7da;
  box-shadow: 0px 1px 2px rgba(10, 13, 18, 0.05);
  border-radius: 12px;
  padding: 10px 14px;
  box-sizing: border-box;
  cursor: text;
}

.gaming-search-icon {
  flex-shrink: 0;
}

.gaming-search {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: #333333;
  background: transparent;
  appearance: none;
}

.gaming-search::placeholder {
  color: #717680;
}

/* Filter headings */

.gaming-filter-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  line-height: 26px;
  letter-spacing: -0.5px;
  color: #111111;
  margin: 0;
}

/* Filter pills container */

.gaming-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Pills */

.gaming-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  height: 48px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.5px;
  cursor: pointer;
  border: 1px solid #131211;
  background: transparent;
  color: #131211;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}

.gaming-pill.gaming-pill-active,
.gaming-pill:hover {
  background: var(--color-purple);
  color: #ffffff;
  border-color: var(--color-purple);
}

/* Main content area */

.gaming-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Floor tabs */

.gaming-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gaming-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  height: 48px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.5px;
  cursor: pointer;
  border: 1px solid #131211;
  background: transparent;
  color: #131211;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}

.gaming-tab.gaming-tab-active,
.gaming-tab:hover {
  background: var(--color-purple);
  color: #ffffff;
  border-color: var(--color-purple);
}

/* Floor plan */

.gaming-floor-plan[hidden] {
  display: none;
}

.gaming-floor-plan-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Results bar */

.gaming-results-bar {
  display: flex;
  align-items: center;
  gap: 24px;
}

.gaming-results-count {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: -0.5px;
  color: #000000;
  white-space: nowrap;
}

.gaming-sort-wrap {
  position: relative;
  width: 213px;
  height: 44px;
  flex-shrink: 0;
}

.gaming-sort {
  width: 100%;
  height: 100%;
  padding: 10px 36px 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 24px;
  color: #717680;
  background: #ffffff;
  border: 1px solid #d5d7da;
  box-shadow: 0px 1px 2px rgba(10, 13, 18, 0.05);
  border-radius: 8px;
  appearance: none;
  cursor: pointer;
  box-sizing: border-box;
}

.gaming-sort-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Card grid */

.gaming-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Gaming venue card */

.gaming-card {
  display: flex;
  flex-direction: column;
}

.gaming-card-link {
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.gaming-card[hidden] {
  display: none;
}

.gaming-card-img {
  display: block;
  width: 100%;
  height: 340px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.gaming-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--store-img);
  background-size: cover;
  background-position: center;
  transition: transform 320ms ease-out;
}

.gaming-card:hover .gaming-card-img::after,
.gaming-card:focus-visible .gaming-card-img::after {
  transform: scale(1.04);
}

.gaming-card-img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(331.19deg, rgba(87, 8, 150, 0.2) 24.33%, rgba(173, 20, 191, 0) 58.71%), linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 77.9%);
}

.gaming-card-img--avr::after {
  background-image: url("../images/gaming/shops/KFC.webp");
}
.gaming-card-img--miika::after {
  background-image: url("../images/gaming/shops/Miika.webp");
}

.gaming-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gaming-card-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 22px;
  color: #131211;
}

.gaming-card-floor {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  line-height: 17px;
  color: #333333;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .gaming-grid-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .gaming-sidebar {
    width: 100%;
  }

  .gaming-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .gaming-sidebar-inner {
    gap: 16px;
    padding: 20px 16px;
  }

  .gaming-hero {
    height: 720px;
    min-height: 720px;
    padding: 48px 24px;
    background-image: linear-gradient(180deg, rgba(9, 7, 18, 0.64) 0%, rgba(22, 13, 41, 0.38) 100%), url("../images/gaming/gaming_mobile.webp");
  }

  .gaming-filter-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .gaming-filter-mobile-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 24px;
    color: #111111;
  }

  .gaming-filter-mobile-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #111111;
  }

  .gaming-filter-mobile-toggle svg {
    transition: transform 0.25s ease;
  }

  .gaming-filter-mobile-toggle[aria-expanded="false"] svg {
    transform: rotate(-90deg);
  }

  .gaming-filter-mobile-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .gaming-filter-mobile-body.hcm-filter-collapsed {
    display: none;
  }

  .gaming-hero-content {
    width: 100%;
    gap: 12px;
  }

  .gaming-hero-heading {
    width: 100%;
    height: auto;
    min-height: 120px;
  }

  .gaming-hero-heading-glow,
  .gaming-hero-heading-text {
    font-size: 40px;
    line-height: 1.2;
  }

  .gaming-hero-subtitle {
    width: 100%;
    font-size: 16px;
    line-height: 24px;
  }

  .gaming-grid {
    padding: 80px 16px;
    padding-bottom: 0;
  }

  .gaming-grid-wrap {
    gap: 32px;
  }

  .gaming-grid-heading {
    font-size: 24px;
    line-height: 32px;
    text-align: center;
  }

  .gaming-grid-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .gaming-sidebar {
    width: 100%;
  }

  .gaming-content {
    width: 100%;
  }

  .gaming-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .gaming-tab {
    flex-shrink: 0;
  }

  /* When floor tabs are moved inside the sidebar filter on mobile they should wrap */
  .gaming-sidebar-inner .gaming-tabs {
    overflow-x: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .gaming-results-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .gaming-sort-wrap {
    width: 213px;
    max-width: 100%;
  }

  .gaming-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gaming-card-img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .gaming-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gaming-card-img {
    height: 500px;
  }

  .gaming-card-name {
    font-size: 18px;
  }
}

/* ── Mobile Filter Toggle ── */

@media (max-width: 768px) {
}

/* ─── Sub-category drill-down (sidebar) ─── */

.gaming-subcats-section {
  border-top: 1px solid #e9eaeb;
  padding-top: 4px;
}
