/* ══════════════════════════════════════════════
   GFP 2027 — Hero Slider (Cinematic)
   Based on index8.html design
   ══════════════════════════════════════════════ */

.hero-content-inner { padding: 0 30px; }

/* ── Main Container ── */
.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(520px, 58vw, 680px);
  background: #0A0A0A;
}

/* ── Individual Slide ──
   Crossfade: the incoming slide fades in on top; the outgoing one stays
   fully visible underneath until the fade ends, then hides. Fading both at
   once showed the dark background (or another slide) in between. */
.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0s linear 1s, visibility 0s linear 1s;
}

.hero-slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Slide Gradient Fallback ── */
.hero-slide-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ── Slide Image (loads on top of gradient) ── */
.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

/* Legacy fallback for img without class */
.hero-slide img:not(.hero-slide-img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── Gradient Overlays ── */
.hero-gradient-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.65) 35%,
    rgba(0, 0, 0, 0.20) 65%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-gradient-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.80) 0%,
    rgba(0, 0, 0, 0.35) 30%,
    transparent 60%
  );
  z-index: 3;
  pointer-events: none;
}

/* ── Content Wrapper ── */
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.hero-content-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 60px;
}

.hero-text-area {
  max-width: 560px;
  pointer-events: auto;
}

/* ── Badge Row ── */
.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-badge-featured {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #67E8F9;
  background: rgba(var(--blue-rgb),0.1);
  border: 1px solid rgba(var(--blue-rgb),0.35);
  border-radius: 4px;
}

.hero-badge-featured svg {
  fill: #67E8F9;
  stroke: none;
}

.hero-badge-platform {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.38);
}

.hero-badge-divider {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-slide-counter {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Title ── */
.hero-title {
  font-size: clamp(1.4rem, 2.8vw, 2rem) !important;
  font-weight: 800 !important;
  color: #FFFFFF;
  line-height: 1.15 !important;
  letter-spacing: -0.02em;
  margin: 0 0 16px !important;
  text-indent: 0 !important;
  position: relative !important;
  overflow: visible !important;
  white-space: normal !important;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 45%, #B9FFD2 70%, var(--btn-bg) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Description ── */
.hero-description {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.52);
  max-width: 440px;
  margin: 0 0 22px;
}

/* ── Rating Row ── */
.hero-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-stars {
  display: flex;
  align-items: center;
  gap: 3px;
}

.hero-star {
  width: 12px;
  height: 12px;
  color: var(--gold);
  fill: var(--gold);
  flex-shrink: 0;
}

.hero-star--dim {
  opacity: 0.3;
}

.hero-rating-text {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 3px;
}

.hero-rating-sep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 14px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #A5F3FC;
  background: rgba(var(--blue-rgb),0.15);
  border: 1px solid rgba(var(--blue-rgb),0.25);
  border-radius: 4px;
  white-space: nowrap;
}

.hero-tag svg {
  flex-shrink: 0;
}

/* ── Price Row ── */
.hero-price-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-discount-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.hero-discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 5px;
  width: fit-content;
}

.hero-price-old {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: line-through;
}

.hero-price-current {
  font-size: 2.2rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ── Buttons ── */
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--btn-text) !important;
  background: var(--btn-bg) !important;
  border: none !important;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 15px rgba(var(--btn-rgb),0.35);
  text-decoration: none;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

.hero-btn-cart:hover {
  transform: translateY(-2px);
  background: var(--btn-bg-hover) !important;
  box-shadow: 0 6px 20px rgba(var(--btn-rgb),0.50);
}

.hero-btn-cart:active {
  transform: translateY(0);
}

.hero-btn-cart svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-btn-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.80);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.hero-btn-details:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.hero-btn-details:active {
  background: rgba(255, 255, 255, 0.10);
}

.hero-btn-details svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Navigation Arrows (bottom area, left & right) ── */
/* ── Navigation Wrapper ── */
.hero-nav {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  flex-shrink: 0;
  pointer-events: auto;
}

.hero-arrow--prev {
  left: 20px;
}

.hero-arrow--next {
  right: 20px;
}

.hero-arrow:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--btn-text);
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.hero-arrow svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Dot Indicators (bottom center) ── */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.hero-dot {
  width: 5px;
  height: 5px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.4s ease;
}

.hero-dot.is-active {
  width: 24px;
  background: var(--blue);
}

.hero-dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.40);
}

/* ══════════════════════════════════════════════
   Responsive — Tablet
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-content-inner {
    padding: 0 40px;
  }
}

/* ══════════════════════════════════════════════
   Responsive — Mobile
   ══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .hero-slider {
    height: clamp(480px, 90vw, 600px);
    border-radius: 0;
  }

  .hero-content-inner {
    padding: 0 20px;
  }

  .hero-text-area {
    max-width: 100%;
    padding-top: 72px;
    gap: 12px;
  }

  .hero-title {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  }

  .hero-description {
    font-size: 13px;
    max-width: 100%;
  }

  .hero-price-current {
    font-size: 1.6rem;
  }

  .hero-price-row {
    gap: 16px;
  }

  .hero-buttons {
    flex-wrap: wrap;
  }

  .hero-btn-cart,
  .hero-btn-details {
    padding: 11px 20px;
    font-size: 13px;
  }

  /* Arrows move to the bottom corners so they do not cover the text. */
  .hero-arrow {
    width: 34px;
    height: 34px;
    top: auto;
    bottom: 8px;
    transform: none;
  }
  .hero-arrow:hover,
  .hero-arrow:active {
    transform: none;
  }

  .hero-arrow--prev {
    left: 10px;
  }

  .hero-arrow--next {
    right: 10px;
  }

  .hero-arrow svg {
    width: 16px;
    height: 16px;
  }

  .hero-dots {
    bottom: 20px;
    gap: 5px;
    max-width: calc(100% - 110px);
    overflow: hidden;
  }

  /* Room under the buttons for the arrows and dots */
  .hero-text-area {
    padding-bottom: 56px;
  }

  .hero-slide-counter {
    display: none;
  }

  .hero-badge-row {
    gap: 8px;
  }

  .hero-rating-row {
    gap: 6px;
  }

  .hero-publisher-logo img {
    height: 28px;
    max-width: 140px;
  }

  .hero-pegi {
    bottom: 16px;
    left: 16px;
  }
}

/* ── Publisher Logo (inline in content area) ── */
.hero-publisher-logo {
  margin-bottom: 12px;
}

.hero-publisher-logo img {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  opacity: 0.85;
}

/* ── Brand Name (fallback when no logo image) ── */
.hero-brand-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
}

/* ── PEGI Rating ── */
.hero-pegi {
  position: absolute;
  bottom: 24px;
  left: 60px;
  z-index: 15;
}

.hero-pegi img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
