/* =============================================
   PlayZone — Anında Oyna Vitrin & Oynatıcı Stilleri
   ============================================= */

/* ── PlayZone Vitrin Hero ── */
.playzone-hero {
  position: relative;
  text-align: center;
  padding: 60px 28px 48px;
  background: linear-gradient(145deg, #0f0c29, #1a1040, #24243e);
  border-bottom: 1px solid rgba(138, 43, 226, 0.25);
  overflow: hidden;
}

.playzone-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 230, 118, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.playzone-hero h1 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  position: relative;
}

.playzone-hero h1 .pz-bolt {
  color: #a855f7;
}

.playzone-hero p {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
  position: relative;
}

/* ── Kategori Filtresi ── */
.pz-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 28px;
  background: rgba(15, 12, 41, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pz-filter-chip {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pz-filter-chip:hover {
  color: #fff;
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
}

.pz-filter-chip.active {
  color: #fff;
  background: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

/* ── Oyun Kartları Grid ── */
.pz-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 28px;
  max-width: 1280px;
  margin: 0 auto;
}

.pz-game-card {
  background: #141b27;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.pz-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
}

.pz-card-cover {
  position: relative;
  width: 100%;
  height: 155px;
  overflow: hidden;
}

.pz-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pz-game-card:hover .pz-card-cover img {
  transform: scale(1.06);
}

.pz-card-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pz-game-card:hover .pz-card-play-overlay {
  opacity: 1;
}

.pz-play-btn-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
  transition: transform 0.2s ease;
}

.pz-game-card:hover .pz-play-btn-icon {
  transform: scale(1.1);
}

.pz-card-pegi {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pz-card-body {
  padding: 14px 16px 16px;
}

.pz-card-title {
  color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pz-card-dev {
  color: #64748b;
  font-size: 0.78rem;
  margin: 0 0 10px;
}

.pz-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pz-card-genre-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 3px 9px;
  border-radius: 10px;
}

.pz-card-play-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #a855f7;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  transition: all 0.2s ease;
}

.pz-card-play-link:hover {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.5);
}

/* ── Boş / Yükleniyor Durumları ── */
.pz-loading, .pz-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}

.pz-loading .spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(168, 85, 247, 0.2);
  border-top-color: #a855f7;
  border-radius: 50%;
  animation: pz-spin 0.8s linear infinite;
  margin-bottom: 14px;
}

@keyframes pz-spin {
  to { transform: rotate(360deg); }
}

/* ── Oynatıcı Sayfası (Tam Ekran Kusursuz Arcade Mimarisi) ── */
.pz-player-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  -webkit-touch-callout: none;
}

/* Oyun iFrame Alanı: %100 Viewport (Sıfır Kesilme, Sıfır Piksel Kaybı) */
.pz-player-iframe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1;
  overflow: hidden;
}

.pz-player-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Yüzen, Yarı Saydam Cam (Glassmorphism) HUD Üst Bar */
.pz-player-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(8px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 8px max(18px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.94) 0%, rgba(10, 14, 23, 0.75) 75%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  transform: translateY(0);
}

.pz-player-toolbar.is-collapsed {
  transform: translateY(-100%);
  pointer-events: none;
  opacity: 0;
}

/* Menü Kapalıyken Sağ Üst Köşede Durup Fare Gelince veya Tıklayınca Açan Zarif Tetikleyici (Oyun Alanını Asla Bölmez) */
.pz-hud-trigger-zone {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 90;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.pz-hud-pill {
  pointer-events: auto;
  margin-top: 6px;
  background: rgba(14, 19, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateY(-8px);
}

.pz-player-wrapper:hover .pz-hud-pill,
.pz-player-toolbar.is-collapsed ~ .pz-hud-trigger-zone .pz-hud-pill {
  opacity: 0.85;
  transform: translateY(0);
}

.pz-hud-pill:hover {
  opacity: 1;
  color: #fff;
  background: rgba(30, 41, 59, 0.95);
  border-color: #00e676;
}

.pz-player-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pz-player-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.pz-player-back:hover {
  color: #fff;
  background: rgba(0, 230, 118, 0.15);
  border-color: rgba(0, 230, 118, 0.4);
}

.pz-player-title {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.pz-player-dev {
  color: #64748b;
  font-size: 0.78rem;
  margin-left: 4px;
}

.pz-player-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pz-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pz-toolbar-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.pz-btn-collapse {
  background: transparent;
  border-color: transparent;
  color: #64748b;
  padding: 5px 8px;
}

.pz-btn-collapse:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Fullscreen mode */
.pz-player-wrapper.is-fullscreen .pz-player-toolbar,
.pz-player-wrapper.is-fullscreen .pz-hud-trigger-zone {
  display: none;
}

/* ── Ana Sayfa Promo Şeridi ── */
.playzone-promo-strip {
  background: linear-gradient(135deg, #1a1040 0%, #0f0c29 50%, #24243e 100%);
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  padding: 32px 28px;
}

.playzone-promo-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.playzone-promo-text h2 {
  color: #fff;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.playzone-promo-text h2 .bolt {
  color: #a855f7;
}

.playzone-promo-text p {
  color: #94a3b8;
  margin: 0;
  font-size: 0.9rem;
}

.playzone-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.playzone-promo-btn:hover {
  background: rgba(168, 85, 247, 0.25);
  color: #e0b3ff;
  border-color: #a855f7;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.2);
}

/* ── Arama Rozeti ── */
.pz-search-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

/* ── Responsive ── */
@media (max-width: 920px) {
  .playzone-hero {
    padding: 40px 16px 32px;
  }

  .playzone-hero h1 {
    font-size: 1.6rem;
  }

  .pz-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 16px;
  }

  .pz-card-cover {
    height: 110px;
  }

  .pz-player-toolbar {
    padding: 6px 12px;
    flex-direction: row;
    justify-content: space-between;
    gap: 6px;
  }

  .pz-player-title-box {
    display: none;
  }

  .pz-player-toolbar-right {
    width: auto;
    gap: 4px;
  }

  .pz-toolbar-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  .playzone-promo-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .pz-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .pz-card-body {
    padding: 10px 12px 12px;
  }

  .pz-card-title {
    font-size: 0.82rem;
  }

  .pz-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .pz-filters {
    padding: 12px;
    gap: 6px;
  }

  .pz-filter-chip {
    padding: 5px 12px;
    font-size: 0.78rem;
  }
}
