/* Game detail editions block
   Adds a clean edition selector section to the game detail page. */

.game-detail-editions {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.game-detail-editions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.game-edition-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(93, 231, 255, 0.14);
  border-radius: 22px;
  padding: 10px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background:
    radial-gradient(circle at 24% 12%, rgba(93, 231, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(21, 32, 54, 0.92), rgba(12, 16, 28, 0.96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.game-edition-card.is-active {
  border-color: rgba(93, 231, 255, 0.5);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 209, 102, 0.18) inset;
}

.game-edition-card:focus-visible {
  outline: 2px solid rgba(93, 231, 255, 0.72);
  outline-offset: 3px;
}

.game-edition-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background:
    radial-gradient(circle at 28% 20%, rgba(93, 231, 255, 0.26), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(255, 209, 102, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(25, 55, 92, 0.96), rgba(8, 12, 22, 0.98));
}

.game-edition-card.is-deluxe .game-edition-cover {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 209, 102, 0.26), transparent 32%),
    radial-gradient(circle at 84% 22%, rgba(255, 122, 47, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(62, 45, 20, 0.96), rgba(8, 10, 18, 0.98));
}


.game-edition-cover:not(.has-image)::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.58));
  opacity: 0.75;
}

.game-edition-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
}

.game-edition-cover-title {
  position: relative;
  z-index: 1;
  max-width: 100%;
  color: #fffdf8;
  font-size: clamp(18px, 4.5vw, 24px);
  line-height: 0.95;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: -0.6px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.75);
}

.game-edition-info {
  display: grid;
  gap: 5px;
  padding: 10px 2px 0;
}

.game-edition-name {
  color: #fffdf8;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 1000;
}

.game-edition-price {
  color: #ffd166;
  font-size: 17px;
  line-height: 1;
  font-weight: 1000;
  text-shadow: 0 4px 18px rgba(255, 209, 102, 0.2);
}

.game-edition-old-price {
  display: block;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 400;
  text-decoration: line-through;
  margin-top: 3px;
}

/* Subscription discount row (EA Play / PS Plus) */
.game-edition-sub-discount {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.game-edition-sub-badge {
  background: linear-gradient(135deg, #e8520a, #c43800);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 5px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.game-edition-sub-info {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

/* Same badge on detail page price card */
.parsed-detail-sub-discount {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.parsed-detail-sub-badge {
  background: linear-gradient(135deg, #e8520a, #c43800);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.parsed-detail-sub-info {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

@media (max-width: 420px) {
  .game-detail-editions-grid {
    gap: 10px;
  }

  .game-edition-card {
    padding: 8px;
    border-radius: 20px;
  }

  .game-edition-cover {
    border-radius: 16px;
  }

  .game-edition-name {
    font-size: 13px;
  }

  .game-edition-price {
    font-size: 16px;
  }
}
/* Капсула платформы (PS4/PS5) у названия издания — inline-вариант бейджа с карточек
   (parser-platform-badge). Нужна для PS4/PS5-версий одной игры в блоке «Издания». */
.game-edition-platform {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(8, 14, 30, 0.72);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2px;
  vertical-align: middle;
  white-space: nowrap;
}
