/**
 * Ana sayfa premium polish — cam derinlik, glow, hover, bölüm ışığı
 * anasayfa-vitrin.css üzerine ince katman
 */

/* —— Bölüm ambient ışık —— */
.gs-pc-section,
.gs-populer-section,
.gs-kategoriler-section,
.uo-cheap-section,
.oyuncu-showcase-section,
.uo-flash-section {
  position: relative;
  isolation: isolate;
}

.gs-pc-section::before,
.gs-populer-section::before,
.uo-cheap-section::before,
.oyuncu-showcase-section::before {
  content: "";
  position: absolute;
  inset: -8px 0 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 72% 48% at 50% -8%, rgba(102, 192, 244, 0.11) 0%, transparent 62%),
    radial-gradient(ellipse 40% 36% at 92% 40%, rgba(209, 76, 146, 0.07) 0%, transparent 55%);
}

.gs-pc-section > .container,
.gs-populer-section > .container,
.uo-cheap-section > .container,
.oyuncu-showcase-section > .container,
.gs-kategoriler-section > .container {
  position: relative;
  z-index: 1;
}

.gs-section-accent-line {
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(111, 212, 222, 0.55) 0%,
    rgba(102, 192, 244, 0.35) 28%,
    rgba(209, 76, 146, 0.2) 55%,
    transparent 82%
  );
  opacity: 1;
}

/* —— Ürün kartı: hover + glow —— */
.section .card.card--wd,
.section__carousel .card.card--wd {
  will-change: transform;
}

.section .card.card--wd:hover,
.section__carousel .card.card--wd:hover {
  transform: translateY(-6px);
  border-color: rgba(111, 212, 222, 0.45);
  box-shadow:
    0 0 0 1px rgba(102, 192, 244, 0.14),
    0 20px 44px rgba(0, 0, 0, 0.48),
    0 0 32px rgba(102, 192, 244, 0.14);
}

.section .card.card--wd:hover .card__cover img,
.section__carousel .card.card--wd:hover .card__cover img {
  transform: scale(1.08);
}

.section .card.card--wd .product-label--pct,
.section__carousel .card.card--wd .product-label--pct {
  animation: uoPremLabelPulse 2.6s ease-in-out infinite;
}

@keyframes uoPremLabelPulse {
  0%, 100% {
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.38);
  }
  50% {
    box-shadow: 0 6px 22px rgba(225, 29, 72, 0.58), 0 0 14px rgba(239, 68, 68, 0.25);
  }
}

.section .card.card--wd .card__buy,
.section__carousel .card.card--wd .card__buy {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 8px 20px rgba(102, 192, 244, 0.28),
    0 0 18px rgba(102, 192, 244, 0.12);
}

.section .card.card--wd .card__buy:hover,
.section__carousel .card.card--wd .card__buy:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.34) inset,
    0 12px 28px rgba(102, 192, 244, 0.38),
    0 0 24px rgba(102, 192, 244, 0.22);
}

/* —— Hero slider —— */
.home-hero-slider-wrap {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 20px 52px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(102, 192, 244, 0.06);
}

.home-hero-slider-wrap:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.09) inset,
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(102, 192, 244, 0.12);
}

.home-hero-side__banner:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 20px 44px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(102, 192, 244, 0.1);
}

.home-hero-slider .owl-nav button:hover {
  box-shadow: 0 0 20px rgba(102, 192, 244, 0.25);
}

/* —— Catglass —— */
.fp-catglass__pill {
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.2s ease;
}

.fp-catglass__pill:hover,
.fp-catglass__pill:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(150, 165, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

/* —— En ucuz kartlar —— */
.uo-cheap-card {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.uo-cheap-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(102, 192, 244, 0.12);
}

.uo-cheap-card__buy {
  box-shadow: 0 4px 16px rgba(102, 192, 244, 0.22);
  transition: filter 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.uo-cheap-card__buy:hover {
  box-shadow: 0 6px 22px rgba(102, 192, 244, 0.35);
  transform: translateY(-1px);
}

/* —— Liste kolonları —— */
.gs-list-columns .list--mb {
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  backdrop-filter: blur(10px) saturate(1.05);
  background: rgba(14, 21, 29, 0.78);
  border-color: rgba(102, 192, 244, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 28px rgba(0, 0, 0, 0.22);
}

.list__item:hover,
.list__item--steam:hover {
  background: rgba(102, 192, 244, 0.09);
  border-color: rgba(102, 192, 244, 0.2);
  box-shadow: inset 3px 0 0 rgba(102, 192, 244, 0.55);
}

/* —— Showcase grid —— */
.oyuncu-showcase-card {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.oyuncu-showcase-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(255, 170, 96, 0.12);
}

/* —— Carousel okları —— */
.gs-rail-controls .section__nav:hover,
.section__nav--bg:hover {
  box-shadow: 0 0 18px rgba(102, 192, 244, 0.22);
}

/* —— Görünüm animasyonu (hafif) —— */
@media (prefers-reduced-motion: no-preference) {
  .gs-pc-section .card.card--wd,
  .section__carousel .card.card--wd,
  .uo-cheap-card,
  .oyuncu-showcase-card {
    animation: uoPremFadeUp 0.55s ease both;
    animation-delay: calc(var(--uo-stagger, 0) * 40ms);
  }

  .gs-pc-section .owl-item:nth-child(1) .card { --uo-stagger: 0; }
  .gs-pc-section .owl-item:nth-child(2) .card { --uo-stagger: 1; }
  .gs-pc-section .owl-item:nth-child(3) .card { --uo-stagger: 2; }
  .gs-pc-section .owl-item:nth-child(4) .card { --uo-stagger: 3; }
  .gs-pc-section .owl-item:nth-child(5) .card { --uo-stagger: 4; }
  .gs-pc-section .owl-item:nth-child(6) .card { --uo-stagger: 5; }
}

@keyframes uoPremFadeUp {
  from {
    opacity: 0.82;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section .card.card--wd .product-label--pct,
  .section__carousel .card.card--wd .product-label--pct {
    animation: none !important;
  }

  .gs-pc-section .card.card--wd,
  .section__carousel .card.card--wd,
  .uo-cheap-card,
  .oyuncu-showcase-card {
    animation: none !important;
  }
}
