/* Game Spotlight block */

.gp-product-spotlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 940px);
  margin: 24px auto 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(16, 16, 20, 0.9), rgba(8, 8, 12, 0.92));
  color: #f6f7fb;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
}

body:not(.jnews-dark-mode) .gp-product-spotlight,
.jnews-light-mode .gp-product-spotlight {
  border-color: rgba(111, 123, 190, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(235, 239, 248, 0.92));
  color: #141827;
  box-shadow: 0 28px 64px rgba(46, 60, 103, 0.14);
}

.gp-product-spotlight::before {
  content: "";
  position: absolute;
  inset: -14%;
  background-image: var(--gp-product-spotlight-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(16px) saturate(118%) brightness(0.5);
  transform: scale(1.06);
  opacity: 0.86;
  z-index: 0;
}

body:not(.jnews-dark-mode) .gp-product-spotlight::before,
.jnews-light-mode .gp-product-spotlight::before {
  filter: blur(14px) saturate(108%) brightness(0.78);
  opacity: 0.7;
}

.gp-product-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(8, 8, 12, 0.68) 12%, rgba(15, 15, 20, 0.28) 48%, rgba(6, 6, 10, 0.76) 100%),
    linear-gradient(180deg, rgba(255, 65, 86, 0.08), rgba(255, 255, 255, 0));
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  z-index: 0;
}

body:not(.jnews-dark-mode) .gp-product-spotlight::after,
.jnews-light-mode .gp-product-spotlight::after {
  background:
    linear-gradient(135deg, rgba(245, 247, 255, 0.84) 12%, rgba(227, 231, 245, 0.44) 48%, rgba(210, 217, 240, 0.82) 100%),
    linear-gradient(180deg, rgba(105, 118, 188, 0.1), rgba(255, 255, 255, 0));
}

.gp-product-spotlight__shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.gp-product-spotlight__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gp-product-spotlight__cover-frame {
  width: 100%;
  min-height: clamp(220px, 27vw, 300px);
  padding: 9px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not(.jnews-dark-mode) .gp-product-spotlight__cover-frame,
.jnews-light-mode .gp-product-spotlight__cover-frame {
  border-color: rgba(120, 132, 184, 0.18);
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 38px rgba(83, 98, 160, 0.12);
}

.gp-product-spotlight__cover {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
}

.gp-product-spotlight__flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.gp-product-spotlight .gp-product-flag-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.gp-product-spotlight .gp-product-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, rgba(20, 26, 38, 0.88), rgba(39, 47, 63, 0.72));
  color: #f8fafc;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

body:not(.jnews-dark-mode) .gp-product-spotlight .gp-product-flag,
.jnews-light-mode .gp-product-spotlight .gp-product-flag {
  border-color: rgba(111, 123, 190, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(233, 238, 248, 0.58));
  color: #262d4f;
  box-shadow: 0 10px 22px rgba(83, 98, 160, 0.12);
}

.gp-product-spotlight .gp-product-flag--category {
  background: linear-gradient(145deg, rgba(81, 46, 108, 0.9), rgba(45, 25, 64, 0.76));
}

.gp-product-spotlight .gp-product-flag--physical {
  background: linear-gradient(145deg, rgba(100, 80, 35, 0.9), rgba(59, 48, 21, 0.76));
}

.gp-product-spotlight .gp-product-flag--digital {
  background: linear-gradient(145deg, rgba(9, 63, 116, 0.9), rgba(11, 44, 76, 0.76));
}

.gp-product-spotlight .gp-product-flag__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  font-size: 14px;
  line-height: 1;
}

.gp-product-spotlight .gp-product-flag__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.gp-product-spotlight__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 2px;
  text-align: center;
}

.gp-product-spotlight__platform-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gp-product-spotlight .gp-product-chip,
.gp-product-spotlight .gp-tech-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  color: #f5f6fb;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: normal;
}

body:not(.jnews-dark-mode) .gp-product-spotlight .gp-product-chip,
body:not(.jnews-dark-mode) .gp-product-spotlight .gp-tech-chip,
.jnews-light-mode .gp-product-spotlight .gp-product-chip,
.jnews-light-mode .gp-product-spotlight .gp-tech-chip {
  border-color: rgba(111, 123, 190, 0.22);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(236, 241, 252, 0.56));
  color: #2b3055;
}

.gp-product-spotlight .gp-product-chip {
  padding: 8px 12px;
}

.gp-product-spotlight .gp-product-chip--platform {
  padding-inline: 12px;
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, rgba(255, 56, 78, 0.98), rgba(193, 16, 43, 0.96) 62%, rgba(104, 7, 21, 0.98));
  color: #fff;
  box-shadow: 0 12px 24px rgba(169, 14, 35, 0.34);
}

body:not(.jnews-dark-mode) .gp-product-spotlight .gp-product-chip--platform,
.jnews-light-mode .gp-product-spotlight .gp-product-chip--platform {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, rgba(255, 64, 86, 0.98), rgba(201, 20, 48, 0.96) 62%, rgba(122, 12, 28, 0.98));
  color: #fff;
}

.gp-product-spotlight .gp-product-chip--platform .gp-product-chip__label {
  color: inherit;
}

.gp-product-spotlight .gp-product-chip__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gp-product-spotlight .gp-product-chip__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gp-product-spotlight .gp-tech-chip {
  padding: 6px 11px;
  font-size: 0.72rem;
}

.gp-product-spotlight__title {
  margin: 0;
  color: inherit;
  font-size: clamp(1.25rem, 2.5vw, 2.05rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.gp-product-spotlight__excerpt {
  margin: 0;
  max-width: 48ch;
  color: rgba(245, 246, 251, 0.82);
  font-size: 0.92rem;
  line-height: 1.5;
}

body:not(.jnews-dark-mode) .gp-product-spotlight__excerpt,
.jnews-light-mode .gp-product-spotlight__excerpt {
  color: rgba(24, 28, 42, 0.84);
}

.gp-product-spotlight__stores {
  width: 100%;
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body:not(.jnews-dark-mode) .gp-product-spotlight__stores,
.jnews-light-mode .gp-product-spotlight__stores {
  border-top-color: rgba(111, 123, 190, 0.14);
}

.gp-product-spotlight__stores-title {
  margin: 0 0 6px;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  opacity: 0.82;
  text-align: center;
  text-transform: uppercase;
}

.gp-product-spotlight__store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.gp-product-spotlight .gp-game-page-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.gp-product-spotlight .gp-game-page-link--spotlight {
  margin-top: 1px;
}

.gp-product-spotlight .gp-game-page-link__label {
  display: block;
  width: 100%;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0.78;
  text-transform: uppercase;
}

.gp-product-spotlight .gp-page-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(149, 224, 255, 0.34);
  background: linear-gradient(90deg, #00a7eb 0%, #0088c5 58%, #055a87 100%);
  box-shadow: 0 10px 24px rgba(0, 167, 235, 0.28);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  transition: filter 0.2s ease, transform 0.05s ease;
}

.gp-product-spotlight .gp-page-button:hover {
  filter: brightness(0.92);
}

.gp-product-spotlight .gp-page-button:active {
  transform: translateY(1px);
}

.gp-product-spotlight .gp-page-button i {
  font-size: 14px;
}

.gp-product-spotlight .purchase-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, #ff2238, #d6001e);
  box-shadow: 0 8px 22px rgba(214, 0, 30, 0.35);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.05s ease;
}

.gp-product-spotlight .purchase-button:hover {
  filter: brightness(0.92);
}

.gp-product-spotlight .purchase-button:active {
  transform: translateY(1px);
}

.gp-product-spotlight .purchase-button i {
  font-size: 14px;
}

.gp-block-preview--spotlight {
  width: 100%;
}

@media (max-width: 900px) {
  .gp-product-spotlight__shell {
    grid-template-columns: 1fr;
  }

  .gp-product-spotlight__body {
    padding-top: 0;
  }

  .gp-product-spotlight__stores {
    margin-top: 8px;
  }
}

@media (max-width: 700px) {
  .gp-product-spotlight {
    width: 100%;
    border-radius: 22px;
    margin: 18px auto 22px;
  }

  .gp-product-spotlight__shell {
    gap: 14px;
    padding: 14px;
  }

  .gp-product-spotlight__cover-frame {
    min-height: 180px;
    padding: 7px;
    border-radius: 18px;
  }

  .gp-product-spotlight__title {
    font-size: clamp(1.15rem, 5.5vw, 1.7rem);
  }

  .gp-product-spotlight__store-buttons {
    justify-content: center;
  }

  .gp-product-spotlight__platform-row,
  .gp-product-spotlight__flags {
    justify-content: center;
  }

  .gp-product-spotlight .gp-game-page-link {
    align-items: center;
    width: 100%;
  }

  .gp-product-spotlight .gp-page-button,
  .gp-product-spotlight .purchase-button {
    width: min(100%, 240px);
    justify-content: center;
  }
}
