/* ──────────────────────────────────────────────────────────────────────
   Custom homepage — gameVgames-inspired full takeover
   - React'in HomePage'i sadece "/" rotasında gizlenir
   - Tüm bölümler buradan render edilir
   ────────────────────────────────────────────────────────────────────── */

:root {
  --hp-bg: #0b0b14;
  --hp-bg-2: #11111c;
  --hp-card-bg: #161624;
  --hp-text: #ffffff;
  --hp-text-dim: #b0b3c4;
  --hp-text-mute: #6b7080;
  --hp-pink: #ff3d7f;
  --hp-pink-2: #ff1a6b;
  --hp-purple: #a855f7;
  --hp-purple-2: #c084fc;
  --hp-cyan: #06b6d4;
  --hp-yellow: #facc15;
  --hp-green: #10b981;
  --hp-blue: #3b82f6;
  --hp-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* React #root görünür — sadece içindeki collection rows gizlenir (hero kalır) */
#hp-root { display: none; }
body.hp-home #hp-root { display: block; }
body.hp-home #root { padding-top: 0 !important; margin-top: 0 !important; }
/* Admin: hero gizlenmek istenirse (homepage_sections içinde {type:'hero',visible:false}) */
body.hp-home.hp-no-hero #root { display: none !important; }
/* Hero başarıyla slot'a taşındıysa React #root'u tamamen gizle (gereksiz boşluk kalmasın) */
body.hp-home.hp-hero-moved #root { display: none !important; }
/* React footer her durumda gizli (içeriği zaten sol sidebar'da) */
body footer,
#root footer,
#root [class*="footer" i] { display: none !important; }
/* Hero slot — React hero element'i buraya taşınır */
.hp-hero-slot {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}
.hp-hero-slot:empty { display: none; }
/* Slot içine taşınan React hero child'larının kendi üst/alt margin'lerini sıfırla */
.hp-hero-slot > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* Tüm React wrapper'larının üst boşluğunu sıfırla (mosaic'e yapışsın) */
body.hp-home #root,
body.hp-home #root > *,
body.hp-home #root > * > *,
body.hp-home #root > * > * > *,
body.hp-home #root > * > * > * > *,
body.hp-home #root main,
body.hp-home #root section:first-child,
body.hp-home #root > div > main,
body.hp-home #root > div > section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
#hp-root { padding-bottom: 0 !important; }
.hp-react-hide {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* React HomePage'in hero dışındaki section'ları (collection rows) gizlenir */
body.hp-home .hp-react-hide { display: none !important; }

/* ── Container ──────────────────────────────────────────────────────── */
#hp-root {
  position: relative;
  min-height: auto;
  background: transparent;
  padding: calc(var(--gv-h, 72px) + var(--gv-strip-h, 86px)) 0 0;
  margin: 0;
  font-family: 'Nunito', 'Poppins', 'Quicksand', system-ui, sans-serif;
  color: var(--hp-text);
}
/* Body'nin tek tip arka planı, #hp-root ve #root aynı zemin üzerinde */
body.hp-home { background: var(--hp-bg) !important; }
body.hp-home #root,
body.hp-home #root > div,
body.hp-home #root main,
body.hp-home #root > div > div,
body.hp-home #root > div > main {
  background: transparent !important;
}
@media (min-width: 1024px) {
  #hp-root { padding-left: var(--gv-sb-w, 64px); }
}

.hp-inner {
  padding: 24px 0 0 24px;
  max-width: none;
}
@media (max-width: 768px) {
  .hp-inner { padding: 16px 0 0 12px; }
}

/* ── Section ────────────────────────────────────────────────────────── */
.hp-section {
  margin-bottom: 38px;
}
.hp-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 24px;
  margin-bottom: 14px;
  /* Anchor stacking — hovered cards (z:101) stay above this title bar.
     Without this, in some layouts the title text rendered AFTER the lifted
     card paints over its top edge. */
  position: relative;
  z-index: 0;
}
.hp-section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hp-section-title .hp-emoji {
  font-size: 22px;
  display: inline-block;
}
.hp-see-all {
  color: var(--hp-pink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s var(--hp-ease), transform 0.18s var(--hp-ease);
  white-space: nowrap;
}
.hp-see-all:hover {
  color: var(--hp-pink-2);
  transform: translateX(3px);
}

/* ── Horizontal row of cards ────────────────────────────────────────── */
.hp-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  /* top padding accommodates hover lift (translateY(-3px) + scale(1.05)).
     Without this, the top of hovered cards is clipped by overflow-y:hidden. */
  padding: 16px 24px 24px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
  scroll-snap-type: x proximity;
}
.hp-row::-webkit-scrollbar { height: 6px; }
.hp-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.hp-row::-webkit-scrollbar-track { background: transparent; }

/* ── Game card ──────────────────────────────────────────────────────── */
.hp-card {
  position: relative;
  flex: 0 0 auto;
  width: 180px;
  height: 180px;
  border-radius: 14px;
  overflow: visible;
  background: var(--hp-card-bg);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.3s var(--hp-ease), box-shadow 0.3s var(--hp-ease);
  isolation: isolate;
}
.hp-card-inner {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--hp-card-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: box-shadow 0.3s var(--hp-ease);
}
.hp-card:hover .hp-card-inner {
  box-shadow: 0 14px 32px rgba(0,0,0,0.55),
              0 0 0 2px var(--hp-pink),
              0 0 28px rgba(255,46,77,0.5);
}
.hp-card:hover {
  transform: translateY(-3px) scale(1.05);
  z-index: 101;
}

/* Büyük kartlar (Öne Çıkanlar satırı) */
.hp-row.hp-row-large .hp-card,
.hp-row.hp-row-large .hp-card-inner {
  width: 240px;
  height: 240px;
  border-radius: 18px;
}

@media (max-width: 768px) {
  .hp-card, .hp-card-inner { width: 140px; height: 140px; border-radius: 12px; }
  .hp-row.hp-row-large .hp-card, .hp-row.hp-row-large .hp-card-inner { width: 170px; height: 170px; }
}

.hp-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.04);
  transition: filter 0.22s var(--hp-ease), transform 0.22s var(--hp-ease);
}
.hp-card:hover img {
  filter: saturate(1.15) contrast(1.08) brightness(1.05);
  transform: scale(1.06);
}

/* Karanlık overlay (hover'da görünür) */
.hp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.55) 35%,
    transparent 65%);
  opacity: 0;
  transition: opacity 0.22s var(--hp-ease);
  pointer-events: none;
}
.hp-card:hover::after { opacity: 1; }

/* Card overlay text (name + rating) */
.hp-card-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 12px 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.22s var(--hp-ease), transform 0.22s var(--hp-ease);
  transform: translateY(8px);
  pointer-events: none;
  z-index: 1;
}
.hp-card:hover .hp-card-meta {
  opacity: 1;
  transform: translateY(0);
}
.hp-card-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  max-width: 70%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 800;
  color: var(--hp-yellow);
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  white-space: nowrap;
}

/* ── Badges (Öne Çıkan / Yeni) — hap şekilli, üst kenardan taşar ───── */
.hp-badge {
  position: absolute;
  top: -7px;
  right: 10px;
  z-index: 5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.hp-badge-featured {
  background: #2EA8FF;
  box-shadow: 0 4px 14px rgba(46, 168, 255, 0.5);
}
.hp-badge-new {
  background: var(--hp-purple);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.55);
}
.hp-badge-hot {
  background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
  animation: hp-pulse 2s ease-in-out infinite;
}
@keyframes hp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Bookmark ikonu (hover'da görünür) */
.hp-card-bookmark {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.22s var(--hp-ease), transform 0.22s var(--hp-ease), background 0.18s var(--hp-ease);
  pointer-events: auto;
  border: none;
  cursor: pointer;
}
.hp-card:hover .hp-card-bookmark {
  opacity: 1;
  transform: scale(1);
}
.hp-card-bookmark:hover {
  background: var(--hp-pink);
}
.hp-card-bookmark svg { width: 14px; height: 14px; }

/* ── Category icon strip ────────────────────────────────────────────── */
.hp-cat-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 24px 16px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.hp-cat-strip::-webkit-scrollbar { height: 6px; }
.hp-cat-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
.hp-cat-strip::-webkit-scrollbar-track { background: transparent; }

.hp-cat-icon {
  flex: 0 0 auto;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.18s var(--hp-ease);
}
.hp-cat-icon:hover { transform: translateY(-3px); }

.hp-cat-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a1a2e 0%, #25253d 100%);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-purple-2);
  transition: all 0.22s var(--hp-ease);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.hp-cat-icon:hover .hp-cat-icon-box {
  border-color: var(--hp-pink);
  color: #fff;
  background: linear-gradient(135deg, #2a1a3e 0%, #3a1f4f 100%);
  box-shadow: 0 6px 20px rgba(255,61,127,0.35),
              inset 0 0 18px rgba(168, 85, 247, 0.25);
}
.hp-cat-icon-box svg { width: 28px; height: 28px; }

.hp-cat-icon-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--hp-text-dim);
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.hp-cat-icon:hover .hp-cat-icon-label { color: #fff; }

/* ── "Kategoriler" grid (renkli icon tile'lar) ──────────────────────── */
.hp-cat-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  padding-right: 24px;
}
@media (max-width: 1600px) { .hp-cat-grid { grid-template-columns: repeat(7, 1fr); } }
@media (max-width: 1400px) { .hp-cat-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1100px) { .hp-cat-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 900px)  { .hp-cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  { .hp-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px)  { .hp-cat-grid { grid-template-columns: repeat(2, 1fr); } }

.hp-cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--hp-card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--hp-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 14px 8px 12px;
  border-radius: 12px;
  transition: all 0.22s var(--hp-ease);
  cursor: pointer;
  text-align: center;
  min-height: 92px;
  position: relative;
  overflow: hidden;
}
.hp-cat-chip-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.22s var(--hp-ease);
}
.hp-cat-chip-icon svg { width: 22px; height: 22px; }
.hp-cat-chip-label {
  line-height: 1.2;
  color: var(--hp-text-dim);
  transition: color 0.18s var(--hp-ease);
}
.hp-cat-chip:hover {
  border-color: var(--hp-pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,46,77,0.25);
}
.hp-cat-chip:hover .hp-cat-chip-icon { transform: scale(1.1); }
.hp-cat-chip:hover .hp-cat-chip-label { color: #fff; }

/* Kategori bazlı icon arka plan renkleri */
.hp-cat-chip[data-color="red"]    .hp-cat-chip-icon { background: linear-gradient(135deg, #ef4444, #dc2626); }
.hp-cat-chip[data-color="orange"] .hp-cat-chip-icon { background: linear-gradient(135deg, #fb923c, #ea580c); }
.hp-cat-chip[data-color="yellow"] .hp-cat-chip-icon { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.hp-cat-chip[data-color="green"]  .hp-cat-chip-icon { background: linear-gradient(135deg, #34d399, #10b981); }
.hp-cat-chip[data-color="cyan"]   .hp-cat-chip-icon { background: linear-gradient(135deg, #22d3ee, #06b6d4); }
.hp-cat-chip[data-color="blue"]   .hp-cat-chip-icon { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.hp-cat-chip[data-color="purple"] .hp-cat-chip-icon { background: linear-gradient(135deg, #c084fc, #9333ea); }
.hp-cat-chip[data-color="pink"]   .hp-cat-chip-icon { background: linear-gradient(135deg, #f472b6, #db2777); }

/* ── Satır navigasyon okları ───────────────────────────────────────── */
.hp-row-wrap {
  position: relative;
}
.hp-row-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: none;
  color: var(--hp-pink-2);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  transition: opacity 0.18s var(--hp-ease), transform 0.18s var(--hp-ease), background 0.18s var(--hp-ease);
}
.hp-row-arrow svg { width: 22px; height: 22px; }
.hp-row-arrow:hover {
  background: var(--hp-pink);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}
.hp-row-arrow-prev { left: -10px; opacity: 0; pointer-events: none; }
.hp-row-arrow-next { right: 14px; opacity: 0.9; }
.hp-row-wrap:hover .hp-row-arrow-prev { opacity: 0.9; pointer-events: auto; }
.hp-row-arrow.hp-arrow-hidden { opacity: 0 !important; pointer-events: none !important; }

@media (max-width: 768px) {
  .hp-row-arrow { display: none; }
}

/* ── Minimal footer ─────────────────────────────────────────────────── */
.hp-footer {
  margin-top: 48px;
  padding: 28px 24px 36px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--hp-text-mute);
  font-size: 13px;
}
.hp-footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
}
.hp-footer-brand {
  font-weight: 800;
  color: #fff;
  font-size: 15px;
}
.hp-footer-brand b { color: var(--hp-pink); }
.hp-footer a {
  color: var(--hp-text-dim);
  text-decoration: none;
  transition: color 0.18s var(--hp-ease);
}
.hp-footer a:hover { color: var(--hp-pink); }
.hp-footer-copy {
  margin-top: 12px;
  color: var(--hp-text-mute);
  font-size: 12px;
}

/* ── Skeleton loading ───────────────────────────────────────────────── */
.hp-skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.09) 50%,
    rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: hp-shimmer 1.4s ease-in-out infinite;
  border-radius: 18px;
}
@keyframes hp-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── "Yukarı çık" butonu ────────────────────────────────────────────── */
.hp-up {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 20, 36, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.22s var(--hp-ease), transform 0.22s var(--hp-ease), background 0.18s var(--hp-ease);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.hp-up.hp-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.hp-up:hover {
  background: linear-gradient(135deg, var(--hp-purple) 0%, var(--hp-pink) 100%);
  border-color: var(--hp-pink);
  box-shadow: 0 6px 24px rgba(255,61,127,0.45);
}

/* ── First section title with bottom accent line ────────────────────── */
.hp-section-title::after {
  content: '';
  display: none;
}

/* ── No-data / loading messages ─────────────────────────────────────── */
.hp-empty {
  padding: 16px 0;
  color: var(--hp-text-mute);
  font-size: 13px;
}

/* ── Existing home-style overrides for React cards no longer apply here */
/* (React #root is hidden via display:none on home) */

/* ════════════════════════════════════════════════════════════════════════
   YATAY KATEGORİ ŞERİTLERİ (Action, Racing, Multiplayer, vs.)
   ══════════════════════════════════════════════════════════════════════ */
.hp-cr-section {
  padding: 24px 0 8px 24px;
  margin: 0;
  background: transparent;
}
.hp-cr-section .hp-section-header {
  padding-right: 24px;
  margin-bottom: 12px;
  gap: 12px;
}
.hp-cr-section .hp-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}
.hp-cr-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff2e4d;
}
.hp-cr-icon svg { width: 24px; height: 24px; }
.hp-cr-section .hp-see-all {
  color: #ff2e4d;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s var(--hp-ease), color 0.18s var(--hp-ease);
}
.hp-cr-section .hp-see-all:hover {
  color: #ff5577;
  transform: translateX(3px);
}

/* Yatay kart şeridi */
.hp-cr-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  /* top padding for hover lift — prevents clipping when cards scale up */
  padding: 16px 24px 16px 0;
  scroll-snap-type: x proximity;
  /* Scrollbar tamamen gizli — sadece oklar veya touchpad ile kaydırma */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hp-cr-row::-webkit-scrollbar { display: none; }

/* Kare oyun kartı (140×140) */
.hp-cr-card {
  position: relative;
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--hp-card-bg);
  text-decoration: none;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.22s var(--hp-ease), box-shadow 0.22s var(--hp-ease);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  isolation: isolate;
}
.hp-cr-card:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0,0,0,0.6), 0 0 0 2px #ff2e4d, 0 0 24px rgba(255,46,77,0.4);
  /* Fixed .gv-header is z:100; lift above it so hovered card top isn't
     covered by it or the section title above. */
  z-index: 101;
}
.hp-cr-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.1);
  transition: transform 0.22s var(--hp-ease), filter 0.22s var(--hp-ease);
}
.hp-cr-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.2) brightness(1.05);
}
.hp-cr-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1;
}
.hp-cr-card video.hp-video-active { opacity: 1; }

/* Rozet */
.hp-cr-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 5px;
  color: #fff;
  text-transform: uppercase;
  transform: skewX(-8deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  pointer-events: none;
}
.hp-cr-badge.new {
  background: linear-gradient(135deg, #A24BFF 0%, #7C3AED 100%);
}
.hp-cr-badge.featured {
  background: linear-gradient(135deg, #FF2E4D 0%, #ff5577 100%);
}

/* Hover overlay (alt yarı koyu + oyun adı + puan + expand) */
.hp-cr-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 10px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 60%, transparent 100%);
  color: #fff;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s var(--hp-ease), transform 0.22s var(--hp-ease);
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px;
}
.hp-cr-card:hover .hp-cr-overlay {
  opacity: 1;
  transform: translateY(0);
}
.hp-cr-overlay-name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.hp-cr-overlay-rating {
  font-size: 11px;
  font-weight: 800;
  color: #facc15;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Expand ikon (sağ üst, rozetin altında) */
.hp-cr-expand {
  position: absolute;
  top: 36px;
  right: 8px;
  z-index: 4;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.22s var(--hp-ease), transform 0.22s var(--hp-ease);
  pointer-events: none;
}
.hp-cr-card:hover .hp-cr-expand {
  opacity: 1;
  transform: scale(1);
}
.hp-cr-expand svg { width: 12px; height: 12px; }

@media (max-width: 720px) {
  .hp-cr-card { flex: 0 0 110px; width: 110px; height: 110px; border-radius: 12px; }
  .hp-cr-section .hp-section-title { font-size: 18px; }
}

/* ── Top ad banner (mosaic'in üstünde, 728x90 leaderboard) ──────────── */
.hp-ad-top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 24px 16px 0;
  min-height: 90px;
}
.hp-ad-top:empty { display: none; }
.hp-ad-slot {
  display: inline-block;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .hp-ad-top { transform: scale(0.55); transform-origin: top center; height: 50px; min-height: 50px; margin-bottom: 0; }
}

/* ────────────────────────────────────────────────────────────────────── */
/* ── "Öne Çıkan Oyunlar" — glow-card slider (yatay kaydırmalı)         */
/* ────────────────────────────────────────────────────────────────────── */
:root {
  --ocg-accent: #7C3AED;
  --ocg-accent-glow: rgba(124, 58, 237, 0.5);
  --ocg-bg: #0F0F23;
}

.section.homepage-section.ocg-section {
  display: block;
  padding: 0 8px;
  margin: 0 0 8px 0;
  position: relative;
  background: var(--ocg-bg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--hp-ease), transform 0.6s var(--hp-ease);
}
.section.homepage-section.ocg-section.ocg-visible {
  opacity: 1;
  transform: translateY(0);
}

.ocg-section .section-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
  position: relative;
  z-index: 20;
  padding: 14px 16px 8px;
}
.ocg-section .section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  letter-spacing: -0.01em;
}
.ocg-icon-lightning {
  color: var(--ocg-accent);
  display: inline-flex;
  filter: drop-shadow(0 0 8px var(--ocg-accent-glow));
}
.ocg-icon-lightning svg { width: 24px; height: 24px; fill: currentColor; }

.games-slider-wrapper {
  position: relative;
  z-index: 10;
}
.games-slider.vertical-glow-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 12px 16px;
  scrollbar-width: none;
  will-change: scroll-position;
}
.games-slider.vertical-glow-slider::-webkit-scrollbar { display: none; }
.glow-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  transform: translateZ(0);
  will-change: transform;
  text-decoration: none;
  color: inherit;
}
@media (max-width: 720px) {
  .glow-card { flex: 0 0 140px; }
}

/* ── Slider arrows ──────────────────────────────────────────────────── */
.slider-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 15;
  padding: 0;
}
.slider-arrow.prev {
  left: 0;
  background: linear-gradient(to right, rgba(7,7,20,0.85) 0%, rgba(7,7,20,0.3) 70%, transparent 100%);
  border-radius: 0 12px 12px 0;
}
.slider-arrow.next {
  right: 0;
  background: linear-gradient(to left, rgba(7,7,20,0.85) 0%, rgba(7,7,20,0.3) 70%, transparent 100%);
  border-radius: 12px 0 0 12px;
}
.games-slider-wrapper:hover .slider-arrow {
  opacity: 1;
}
.slider-arrow svg {
  width: 32px;
  height: 32px;
  color: var(--ocg-accent);
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.9));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
.slider-arrow:hover svg {
  transform: scale(1.3);
  filter: drop-shadow(0 0 15px var(--ocg-accent)) drop-shadow(0 0 30px var(--ocg-accent-glow));
}
.slider-arrow:hover {
  backdrop-filter: blur(4px);
}
.slider-arrow.disabled {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ── Glow card wrapper ──────────────────────────────────────────────── */
.glow-card-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: #0F0F23;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(124, 58, 237, 0.2);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
}
.glow-card:hover .glow-card-wrapper {
  /* Lift removed — only glow effects (shadow + border) on hover.
     Prevents the lifted top edge from being clipped by the section header. */
  box-shadow:
    0 20px 50px rgba(0,0,0,0.7),
    0 0 0 2px var(--ocg-accent),
    0 0 50px rgba(124, 58, 237, 0.8),
    0 0 100px rgba(124, 58, 237, 0.4);
  border-color: var(--ocg-accent);
}
/* Blur arka plan — kart 9:16 ama görsel 4:3, eksik alanları görselin bulanık
   kopyası doldurur → kırpılma yok, kalite korunur */
.gc-bg-blur {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.55) saturate(1.35);
  transform: scale(1.2);
  z-index: 0;
  transition: filter 0.3s ease;
}
.gc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  transition: transform 0.3s ease-out, opacity 0.3s ease;
  display: block;
}
.glow-card:hover .gc-img {
  transform: scale(1.04);
}

/* Hover video preview (üst katmanda) */
.gc-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.gc-video.hp-video-active {
  opacity: 1;
}

/* SVG glow overlay (en üst katman, parlak alanlar mor neon yayar) */
.glow-card-wrapper svg.gc-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}
.glow-card:hover .glow-card-wrapper svg.gc-svg {
  opacity: 1;
}
.glow-card:hover .gc-img {
  filter: saturate(1.2) brightness(1.1);
}

/* ── Card info layer ────────────────────────────────────────────────── */
.glow-card-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: #fff;
  z-index: 10;
  pointer-events: none;
}
.glow-card-info h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.glow-card-info p {
  font-size: 10px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 4px 0 0;
}

/* ── Card badge ─────────────────────────────────────────────────────── */
.glow-card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  backdrop-filter: blur(12px);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  z-index: 11;
  pointer-events: none;
}
.glow-card-badge.popular {
  background: linear-gradient(135deg, rgba(124,58,237,0.4), rgba(124,58,237,0.1));
  border-color: rgba(124,58,237,0.6);
}
.glow-card-badge.new {
  background: linear-gradient(135deg, rgba(34,211,238,0.4), rgba(34,211,238,0.1));
  border-color: rgba(34,211,238,0.6);
}

/* ── Hero banner (mosaic'in altında — döner featured slider) ─────────── */
.hp-hero-section {
  margin: 0 24px 32px 0;
  position: relative;
}
.hp-hero {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--hp-card-bg);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}
@media (max-width: 720px) { .hp-hero { height: 220px; } }

.hp-hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.hp-hero-slide.hp-active {
  opacity: 1;
  pointer-events: auto;
}
.hp-hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hp-hero-bg, none);
  background-size: cover;
  background-position: center;
  filter: blur(34px) brightness(0.4) saturate(1.3);
  transform: scale(1.2);
  z-index: 0;
}
.hp-hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,11,20,0.95) 0%, rgba(11,11,20,0.65) 45%, rgba(11,11,20,0.15) 75%, transparent 100%);
  z-index: 1;
}
.hp-hero-text {
  position: relative;
  z-index: 2;
  flex: 1 1 60%;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}
@media (max-width: 720px) { .hp-hero-text { padding: 24px; gap: 10px; } }

.hp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: linear-gradient(135deg, var(--hp-pink) 0%, var(--hp-purple) 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255,46,77,0.4);
}
.hp-hero-title {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 16px rgba(0,0,0,0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 720px) { .hp-hero-title { font-size: 26px; } }

.hp-hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 560px;
}
@media (max-width: 720px) { .hp-hero-desc { display: none; } }

.hp-hero-cta {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--hp-pink) 0%, var(--hp-pink-2) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s var(--hp-ease), box-shadow 0.18s var(--hp-ease), filter 0.18s var(--hp-ease);
  box-shadow: 0 6px 20px rgba(255,46,77,0.5);
  margin-top: 4px;
}
.hp-hero-cta:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(255,46,77,0.65);
}

.hp-hero-image {
  position: relative;
  z-index: 2;
  flex: 0 0 36%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 36px 24px 0;
}
@media (max-width: 720px) { .hp-hero-image { display: none; } }
.hp-hero-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}

/* Hero pagination dots */
.hp-hero-dots {
  position: absolute;
  bottom: 14px;
  right: 20px;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.hp-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s var(--hp-ease), transform 0.2s var(--hp-ease);
}
.hp-hero-dot.hp-active {
  background: var(--hp-pink);
  transform: scale(1.3);
}

/* ── Mosaic grid — UNIFORM kare hücreler, yoğun grid (Poki tarzı) ──── */
.hp-mosaic-section {
  margin-bottom: 0;
  padding-right: 24px;
}
.hp-mosaic-section .hp-section-header {
  margin-bottom: 12px;
}
.hp-mosaic {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
  /* Açık pozisyonlu big'ler için dense flow */
  grid-auto-flow: row dense;
}
.hp-mosaic > * {
  aspect-ratio: 1 / 1;
}

/* ── Sabit ama satırlara yayılmış büyük kartlar (her yüklemede aynı) ──
   b1 sol-üst, b2 üst-orta, b3 alt (2. satır). Küçükler dense flow ile
   kalan hücreleri doldurur (3 büyük=12 + 18 küçük = 30 = 10×3). ──── */
.hp-mosaic-card.b1,
.hp-mosaic-card.b2,
.hp-mosaic-card.b3 { aspect-ratio: 1 / 1; }
.hp-mosaic-card.b1 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.hp-mosaic-card.b2 { grid-column: 6 / span 2; grid-row: 1 / span 2; }
.hp-mosaic-card.b3 { grid-column: 4 / span 2; grid-row: 2 / span 2; }

/* Responsive: daha az sütunda big pozisyonları adapte olur */
@media (max-width: 1400px) {
  .hp-mosaic { grid-template-columns: repeat(8, 1fr); }
  .hp-mosaic-card.b1 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .hp-mosaic-card.b2 { grid-column: 5 / span 2; grid-row: 1 / span 2; }
  .hp-mosaic-card.b3 { grid-column: 3 / span 2; grid-row: 2 / span 2; }
}
@media (max-width: 1100px) {
  .hp-mosaic { grid-template-columns: repeat(6, 1fr); }
  .hp-mosaic-card.b1 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .hp-mosaic-card.b2 { grid-column: 4 / span 2; grid-row: 1 / span 2; }
  .hp-mosaic-card.b3 { display: none; }  /* 6 sütunda sadece 2 big */
}
@media (max-width: 720px)  {
  .hp-mosaic { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .hp-mosaic-card.b1 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .hp-mosaic-card.b2 { grid-column: 4 / span 2; grid-row: 1 / span 2; }
}
@media (max-width: 480px)  {
  .hp-mosaic { grid-template-columns: repeat(4, 1fr); }
  .hp-mosaic-card.b1 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .hp-mosaic-card.b2 { grid-column: 3 / span 2; grid-row: 1 / span 2; }
}

.hp-mosaic-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--hp-card-bg);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.22s var(--hp-ease), box-shadow 0.22s var(--hp-ease);
  isolation: isolate;
  display: block;
}
/* Eski .big sınıfı artık kullanılmıyor — .b1/.b2/.b3 ile fixed pozisyon */

.hp-mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s var(--hp-ease), filter 0.28s var(--hp-ease), opacity 0.3s ease;
  filter: saturate(1.05);
}
/* Hover'da oynayan preview video */
.hp-mosaic-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1;
}
.hp-mosaic-card video.hp-video-active {
  opacity: 1;
}
.hp-mosaic-card:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 30px rgba(0,0,0,0.55), 0 0 0 2px var(--hp-pink), 0 0 24px rgba(255,46,77,0.4);
  /* Fixed .gv-header has z-index:100. To prevent it covering the lifted
     card top edge, lift the hovered card above it. */
  z-index: 101;
}
.hp-mosaic-card:hover img { transform: scale(1.08); filter: saturate(1.18) brightness(1.05); }

/* Mosaic kartlarda da rozet ve hover overlay */
.hp-mosaic-card .hp-badge {
  top: -6px;
  right: 8px;
}
.hp-mosaic-card .hp-card-bookmark {
  top: 8px;
  left: 8px;
}
.hp-mosaic-card .hp-card-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 10px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.55) 60%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s var(--hp-ease), transform 0.22s var(--hp-ease);
  pointer-events: none;
}
.hp-mosaic-card:hover .hp-card-meta {
  opacity: 1;
  transform: translateY(0);
}
