/* =============================================
   1001oyun.app — REFACTORED STYLESHEET
   Prefix: oy-  (özgün, çakışma riski sıfır)
   Yapı:   BEM-light  →  .oy-blok__eleman--modifier
   ============================================= */

/* ── 1. DESIGN TOKENS ── */
:root {
  /* Renkler */
  --oy-color-bg:             #83ffe7;
  --oy-color-bg-body:        var(--bodyBackground, var(--oy-color-bg) url(/assets/img/bg.svg));
  --oy-color-surface:        #ffffff;
  --oy-color-surface-muted:  #E1E7E8;
  --oy-color-text:           #555555;
  --oy-color-link:           #565872;
  --oy-color-nav:            #384272;
  --oy-color-title-overlay:  #ffffff;
  --oy-color-border:         #6C6F8E;
  --oy-color-accent-gold:    gold;
  --oy-color-accent-yellow:  #E1E71C;
  --oy-color-card-bg:        #ffffff;

  /* Efektler */
  --oy-shadow-card:   0px 7px 10px 4px #5d6b844d;
  --oy-shadow-mid:    0px 4px 6px rgba(0, 0, 0, 0.1);
  --oy-bezier:        cubic-bezier(.25, .1, .25, 1);
  --oy-radius-card:   16px;
  --oy-radius-sm:     8px;
}


/* ── 2. RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body.oy-body {
  font-family: Arial, sans-serif;
  margin: 0;
  position: relative;
  z-index: 0;
  text-decoration: none;
  background: var(--oy-color-bg-body);
  background-attachment: fixed;
  background-position: 50%;
  background-size: max(624px, 100%);
}

html { overflow-x: hidden; }

/* Arka plan overlay */
body.oy-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
  z-index: -1;
}

/* Ekran okuyucu için gizli metin */
.oy-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ── 3. SAYFA SARMALI ── */
.oy-page-wrapper {
  margin-top: 15px;
  min-height: 100vh;
}

.oy-main {
  display: block;
}


/* ── 4. ANA IZGARA (oyunlar + sidenav birlikte) ── */
.oy-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  grid-auto-rows: 100px;
  /* "dense" geri getirildi — sıkı paketlenmiş görünüm için gerekli.
     Zoom/çözünürlük sorunu artık .ads_game_right'a aşağıda verilen
     SABİT (negatif çizgi numaralı) konumla çözülüyor: dense sadece
     konumu "auto" olan elemanları yeniden düzenler, açıkça bir
     grid-column/row verilen elemanlara dokunmaz. */
  grid-auto-flow: dense;
  gap: 0.8rem;
}

@media (max-width: 480px) {
  .oy-grid-layout {
    --oy-grid-gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: calc((100vw - 2 * var(--oy-grid-gap)) / 3);
    gap: var(--oy-grid-gap);
  }

}

/* ── 5. YAN NAVİGASYON ── */
.oy-sidenav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 15px;
  z-index: 10;
  border-radius: var(--oy-radius-sm);
  height: 100%;
  /* Izgara içindeki boyutu */
  grid-row: span 2;
  grid-column: span 1;
}

.oy-sidenav__logo {
  margin-bottom: auto;
  text-align: center;
}

.oy-sidenav__logo img {
  margin-top: 10px;
  max-width: 90px;
  width: 100%;
}

.oy-sidenav__icons {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-top: 1px solid var(--oy-color-border);
  padding: 7px 2px 2px;
}

@media (max-width: 480px) {
  .oy-sidenav__icons {
    gap: 4px;
  }

  .oy-sidenav__icons .oy-icon {
    width: clamp(24px, 10vw, 35px);
    height: auto;
  }
}

.oy-sidenav__icon-link {
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ── 6. SVG İKON SİSTEMİ ── */
/*
  Eski: #iconsvg (id tekrarı, hatalı)
  Yeni: .oy-icon  (class, güvenli)
*/
.oy-icon {
  width: 35px;
  height: 35px;
  color: var(--oy-color-nav);   /* fill yerine currentColor kullanılıyor */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.oy-icon:hover,
a:hover .oy-icon,
button:hover .oy-icon {
  opacity: 0.5;
  transform: scale(1.09);
}

/* Oylama yıldızı ikonu */
.oy-rating-icon {
  color: var(--oy-color-accent-gold);
}

/* Oyun listesi ikon kartı */
.oy-icon-card {
  position: relative;
  border: none;
  border-radius: var(--oy-radius-sm);
  overflow: hidden;
  box-shadow: var(--oy-shadow-mid);
  background: var(--oy-color-accent-yellow);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s;
}

.oy-icon-card:hover {
  transform: scale(1.09);
}

.oy-icon-card svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: #ffffff;
}

.oy-icon-card__title {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 5px 1px;
  text-align: center;
  font-size: 14px;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--oy-color-title-overlay);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s ease;
}

.oy-icon-card:hover .oy-icon-card__title {
  visibility: visible;
  opacity: 1;
}


/* ── 7. OYUN KARTLARI ── */
.oy-game-card {
  position: relative;
  border: none;
  border-radius: var(--oy-radius-card);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.1);
  background: var(--oy-color-card-bg);
  transition: transform 0.25s var(--oy-bezier), box-shadow 0.25s var(--oy-bezier);
}

.oy-game-card:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.22), 0 4px 8px rgba(0,0,0,0.12);
}

.oy-game-card a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.oy-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Boyut değişkenleri — ızgara span'ları */
.oy-game-card--small {
  grid-row: span 1;
  grid-column: span 1;
}

.oy-game-card--medium {
  grid-row: span 2;
  grid-column: span 2;
}

.oy-game-card--large {
  grid-row: span 3;
  grid-column: span 3;
}

/* Kart başlık overlay */
.oy-game-card__title {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 5px 0;
  text-align: center;
  font-size: 14px;
  font-weight: normal;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--oy-color-title-overlay);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s ease;
}

.oy-game-card:hover .oy-game-card__title {
  visibility: visible;
  opacity: 1;
}

/* Küçük ekranlarda boyut düzeltmesi */
@media screen and (max-width: 212px) {
  .oy-game-card--medium {
    grid-row: span 1;
    grid-column: span 1;
  }
}

@media screen and (max-width: 325px) {
  .oy-game-card--large {
    grid-row: span 2;
    grid-column: span 2;
  }
}

@media screen and (max-width: 600px) {
  .oy-game-card__title {
    font-size: 12px;
    padding: 5px 0;
  }
}

/* Wiggle animasyonu (öne çıkan kart için) */
@keyframes oy-card-wiggle {
  26%  { transform: rotate(0)    scale(1); }
  28%  { transform: rotate(-2deg) scale(1.04); }
  32%  { transform: rotate(1deg)  scale(1.01); }
  34%  { transform: rotate(-2deg) scale(1.02); }
  36%  { transform: rotate(3deg)  scale(1); }
  39%  { transform: rotate(-1deg) scale(1); }
  44%  { transform: rotate(0)    scale(1); }
}

.oy-game-card--featured {
  display: inline-block;
  animation: oy-card-wiggle 4s ease-in-out infinite;
}


/* ── 8. KATEGORİ BAŞLIK KARTI (kategori sayfası) ── */
.oy-category-heading {
  grid-row: span 1;
  grid-column: span 2;
  background: var(--oy-color-surface);
  border-radius: var(--oy-radius-sm);
  box-shadow: var(--oy-shadow-mid);
  display: flex;
  justify-content: center;
  align-items: center;
}

.oy-category-heading__title {
  width: 100%;
  padding: 5px 4px;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  color: var(--oy-color-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ── 8b. KATEGORİ LİSTE KARTLARI ── */
.oy-category-card {
  grid-row: span 1;
  grid-column: span 2;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  border-radius: var(--oy-radius-card);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(56,66,114,0.12), 0 0 0 1px rgba(56,66,114,0.06);
  transition: transform 0.3s var(--oy-bezier), box-shadow 0.3s var(--oy-bezier);
}

.oy-category-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(56,66,114,0.2), 0 0 0 1px rgba(56,66,114,0.1);
}

.oy-category-card a {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.oy-category-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--oy-radius-sm) 0 0 var(--oy-radius-sm);
  flex-shrink: 0;
}

.oy-category-card__label {
  flex-grow: 1;
  padding: 5px 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #384272;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  letter-spacing: -0.2px;
}

/* Mobil: kategori kartı dikey */
@media (max-width: 600px) {
  .oy-category-card {
    grid-column: span 1;
    grid-row: span 2;
  }

  .oy-category-card a {
    flex-direction: column;
  }

  .oy-category-card img {
    width: 100%;
    height: auto;
    border-radius: var(--oy-radius-sm) var(--oy-radius-sm) 0 0;
  }

  .oy-category-card__label {
    padding: 10px 4px;
  }
}


/* ── 9. ARAMA PANELİ (slide-in) ── */
.oy-search-panel {
  position: fixed;
  top: 0;
  left: -110%;
  width: 360px;
  height: 100%;
  background-color: var(--oy-color-bg);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
  transition: left 0.3s ease;
  z-index: 1000;
}

@media (max-width: 480px) {
  .oy-search-panel {
    width: 100vw;
  }

  .oy-search-panel__input-wrap {
    max-width: 100%;
    margin: 10px 8px;
  }

  .oy-search-panel__categories ul {
    gap: 6px;
  }

  .oy-search-panel__cat-item {
    width: calc(50% - 3px);
  }
}

.oy-search-panel.open {
  left: 0;
}

.oy-search-panel__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}

/* Kapat butonu */
.oy-search-panel__close {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  background-color: var(--oy-color-surface);
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 0 0 0 100px;
  box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, opacity 0.3s;
  z-index: 1100;
  color: var(--oy-color-nav);
}

.oy-search-panel__close svg {
  margin: 0 0 10px 10px;
}

.oy-search-panel__close:hover {
  opacity: 0.8;
}

/* Arama girişi */
.oy-search-panel__input-wrap {
  position: relative;
  max-width: 360px;
  margin: 10px;
}

.oy-search-panel__input {
  width: 100%;
  outline: none;
  padding: 15px;
  border: none;
  border-radius: 10px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  font-size: 18px;
  color: var(--oy-color-text);
}

.oy-search-panel__input-icon {
  position: absolute;
  right: 5px;
  top: 10px;
  width: 30px;
  height: 34px;
  color: var(--oy-color-nav);
  pointer-events: none;
}

/* Scroll alanı */
.oy-search-panel__scroll-area {
  padding-bottom: 120px;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.oy-search-panel__scroll-area::-webkit-scrollbar {
  display: none;
}

/* Kategori listesi */
.oy-search-panel__categories {
  margin: 10px;
}

.oy-search-panel__categories ul {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  gap: 10px;
  margin: 0;
}

.oy-search-panel__cat-item {
  display: flex;
  align-items: center;
  background-color: var(--oy-color-surface);
  border-radius: var(--oy-radius-sm);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
  width: calc(50% - 5px);
}

.oy-search-panel__cat-item--hot,
.oy-search-panel__cat-item--all {
  background-color: var(--oy-color-surface-muted);
}

.oy-search-panel__cat-item:hover {
  opacity: 0.8;
}

.oy-search-panel__cat-item a {
  padding: 10px 0 10px 5px;
  text-decoration: none;
  font-size: 15px;
  color: var(--oy-color-link);
  font-weight: bold;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

/* Son oynanan başlık kartı */
.oy-last-played-title {
  grid-row: span 1;
  grid-column: span 2;
  background: var(--oy-color-surface);
  border-radius: var(--oy-radius-sm);
  box-shadow: var(--oy-shadow-mid);
  display: flex;
  justify-content: center;
  align-items: center;
}

.oy-last-played-label {
  width: 100%;
  padding: 5px 4px;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  color: var(--oy-color-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Sonuç bulunamadı */
.oy-search-no-result {
  padding: 12px 8px;
  font-size: 14px;
  color: var(--oy-color-text);
  text-align: center;
}

/* Tarayıcının kendi X (clear) butonunu gizle */
.oy-search-panel__input::-webkit-search-cancel-button,
.oy-search-panel__input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* Arama sonuçları + son oynanan grid */
.oy-search-panel__recent {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(73px, 73px));
  grid-auto-rows: minmax(73px, 73px);
  grid-auto-flow: dense;
  justify-content: start;
  gap: 0.5rem;
  margin: 10px;
}

/* Son oynanan başlık — küçük kart, oyunlarla aynı boyut */
.oy-last-played-title {
  grid-row: span 1;
  grid-column: span 1;
  background: var(--oy-color-surface);
  border-radius: var(--oy-radius-sm);
  box-shadow: var(--oy-shadow-mid);
  display: flex;
  justify-content: center;
  align-items: center;
}

.oy-last-played-label {
  width: 100%;
  padding: 4px 2px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: var(--oy-color-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
}

/* Sonuç bulunamadı */
.oy-search-no-result {
  padding: 12px 8px;
  font-size: 14px;
  color: var(--oy-color-text);
  text-align: center;
}

/* ── 10. HOME SEO BÖLÜMÜ ── */
.oy-home-info {
  color: var(--oy-color-text);
  margin: 40px 0 0;
  font-size: 16px;
  box-sizing: border-box;
}

.oy-home-info__body {
  background-color: var(--oy-color-surface);
  margin-bottom: 40px;
  padding: 32px 28px;
  border-radius: var(--oy-radius-card);
  box-shadow: 0 2px 12px rgba(56,66,114,0.07);
}

.oy-home-info__body h1 {
  font-size: 24px;
  margin-bottom: 15px;
}

.oy-home-info__body h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

.oy-home-info__body h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.oy-home-info__body p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.oy-home-info__body a,
.oy-game-info__body a,
.oy-footer a {
  position: relative;
  color: var(--oy-color-link);
  text-decoration: underline;
  transition: color 0.3s, opacity 0.3s, transform 0.3s;
}

.oy-home-info__body a:hover,
.oy-game-info__body a:hover,
.oy-footer a:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

/* Breadcrumb linkleri — underline ve renk override */
.oy-breadcrumb a {
  color: var(--oy-color-link);
  text-decoration: none;
  font-weight: normal;
}

.oy-breadcrumb a:hover {
  text-decoration: underline;
  opacity: 0.8;
  transform: none;
}


/* ── 11. SSS (FAQ) ── */
.oy-faq-item {
  background-color: var(--oy-color-surface);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 5px 15px;
  margin-bottom: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
  text-align: left;
}

.oy-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  outline: none;
  color: #333;
  list-style: none;
}

.oy-faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: #4a90e2;
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.oy-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.oy-faq-item p {
  padding: 10px 0;
  margin: 0;
  color: #555;
  line-height: 1.6;
  border-top: 1px solid #f0f0f0;
}

.oy-faq-item:hover {
  border-color: #b0b0b0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}


/* ── 12. FOOTER ── */
.oy-footer {
  width: 100%;
  background-color: var(--oy-color-surface);
}

.oy-footer__inner {
  padding: 60px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.oy-footer__logo img {
  max-width: 250px;
  height: auto;
  margin-bottom: 10px;
}

.oy-footer__link-columns {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  width: 100%;
}

.oy-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 250px;
}

.oy-footer__col-heading {
  color: var(--oy-color-border);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.oy-footer__col-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--oy-color-border);
}

.oy-footer__col a {
  margin-bottom: 20px;
  color: var(--oy-color-link);
  text-decoration: underline;
  transition: opacity 0.3s;
}

.oy-footer__col a:hover {
  opacity: 0.8;
}

.oy-footer__copyright {
  width: 100%;
  max-width: 1000px;
  border-top: 1px solid var(--oy-color-border);
  padding-top: 30px;
  text-align: center;
  opacity: 0.8;
  margin: 0;
  color: var(--oy-color-text);
}

@media (max-width: 768px) {
  .oy-footer__link-columns {
    flex-direction: column;
    align-items: center;
    gap: 35px;
  }
}


/* ── 13. PWA KURULUM POPUP'I ── */
.oy-pwa-popup {
  position: fixed;
  bottom: 25px;
  right: -320px;
  z-index: 99999;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
}

.oy-pwa-popup._open {
  right: 25px;
  opacity: 1;
  visibility: visible;
  animation: oy-slide-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes oy-slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.oy-pwa-popup__container {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 25px;
  max-width: 420px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.oy-pwa-popup__content {
  flex: 1;
}

.oy-pwa-popup__text {
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.oy-pwa-popup__actions {
  display: flex;
  gap: 12px;
}

.oy-pwa-popup__btn {
  border: none;
  border-radius: var(--oy-radius-sm);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.oy-pwa-popup__btn--cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #a0a0a0;
}

.oy-pwa-popup__btn--cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.oy-pwa-popup__btn--add {
  background: #ff6b35;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.oy-pwa-popup__btn--add::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 25%, rgba(255, 255, 255, 0.1) 50%, transparent 75%);
  animation: oy-shine 3s infinite;
}

@keyframes oy-shine {
  0%   { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%)  rotate(45deg); }
}

.oy-pwa-popup__btn--add:hover {
  background: #ff5722;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

.oy-pwa-popup__icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .oy-pwa-popup {
    display: none !important;
  }
}


/* ── 16. OYUN EMBED (oyun sayfası: splash, iframe, aksiyonlar) ── */

/* Izgara içindeki kolon — eski game-container-column */
.oy-game-embed-col {
  max-width: 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  grid-row: span 3;
  grid-column: span 3;
}

@media (min-width: 640px) {
  .oy-game-embed-col { grid-row: span 4; grid-column: span 4; }
}
@media (min-width: 768px) {
  .oy-game-embed-col { grid-row: span 4; grid-column: span 6; }
}
@media (min-width: 1024px) {
  .oy-game-embed-col { grid-row: span 4; grid-column: span 6; }
}
@media (min-width: 1280px) {
  .oy-game-embed-col { grid-row: span 4; grid-column: span 7; }
}
@media (min-width: 1440px) {
  .oy-game-embed-col { grid-row: span 5; grid-column: span 7; }
}
@media (min-width: 1536px) {
  .oy-game-embed-col { grid-row: span 5; grid-column: span 7; }
}
@media (min-width: 1920px) {
  .oy-game-embed-col { grid-row: span 5; grid-column: span 8; }
}

/* Oyun kutusu — eski game-container */
.oy-game-embed {
  display: flex;
  flex-direction: row;
  width: 100%;
  flex: 1;          /* aksiyon barına yer bırak */
  min-height: 0;
  border: none;
  overflow: hidden;
  background-color: #fff;
  text-align: center;
}

/* Splash ekranı — premium yeniden tasarım */
.oy-game-embed__splash {
  background: linear-gradient(160deg, #1a1f3c 0%, #2d3561 50%, #1a1f3c 100%);
  margin: 0;
  padding: 24px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.oy-game-embed__splash::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(ellipse at center, rgba(131,255,231,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.oy-game-embed__splash img {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 3px rgba(131,255,231,0.25);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.oy-game-embed__splash img:hover {
  transform: scale(1.04);
}

.oy-game-embed__splash h2 {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  text-align: center;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.oy-game-embed__splash-title {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  text-align: center;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Oyna butonu — premium */
.oy-game-embed__play-btn {
  position: relative;
  padding: 0 32px;
  background: linear-gradient(135deg, #00e5b0, #00c49a);
  color: #1a1f3c;
  border: none;
  border-radius: 50px;
  width: auto;
  min-width: 180px;
  height: 52px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,229,176,0.4), 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.oy-game-embed__play-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

.oy-game-embed__play-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 32px rgba(0,229,176,0.55), 0 4px 10px rgba(0,0,0,0.3);
}

/* iframe alanı — eski #iframe-container */
.oy-game-embed__iframe-wrap {
  flex: 2;
  padding: 0;
  margin: 0;
  width: 100%;
  display: none;
  position: relative;
}

/* Sürüklenebilir mobil çıkış butonu */
.oy-game-embed__move-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border: none;
  touch-action: none;
  cursor: pointer;
  background-color: var(--oy-color-surface);
  width: 36px;
  height: 36px;
  padding: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0 var(--oy-radius-sm) var(--oy-radius-sm) 0;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
  color: var(--oy-color-nav);
}

.oy-game-embed__move-btn:hover {
  opacity: 0.5;
}

/* Aksiyon barı — YATAY, sağa yaslı (Poki tarzı) */
.oy-game-embed__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;   /* butonlar sağa yaslı */
  gap: 8px;
  width: 100%;
  padding: 6px 12px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
  border-top: 1px solid rgba(108,111,142,0.15);
}

.oy-game-embed__actions button {
  position: relative;          /* tooltip için */
  background: none;
  border: none;
  cursor: pointer;
  color: var(--oy-color-border);
  padding: 4px 8px;
  border-radius: var(--oy-radius-sm);
  display: flex;
  flex-direction: row;         /* ikon + sayı yan yana */
  align-items: center;
  gap: 5px;
  width: auto;
  transition: background 0.15s ease, transform 0.12s ease;
}

/* Hover — Poki: ikon+sayı maviye döner, hafif zemin */
.oy-game-embed__actions button:hover {
  background: rgba(47,128,237,0.10);
  transform: scale(1.06);
}
.oy-game-embed__actions button:hover .icon { fill: #2f80ed; opacity: 1; }
.oy-game-embed__actions button:hover span   { color: #2f80ed; }

/* Tıklama basma efekti */
.oy-game-embed__actions button:active { transform: scale(0.9); }

/* Hover tooltip (aria-label) — butonun üstünde */
.oy-game-embed__actions button::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #384272;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}
.oy-game-embed__actions button:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.oy-game-embed__actions button svg,
.oy-game-embed__actions .icon {
  width: 24px;
  height: 24px;
  fill: var(--oy-color-nav);
  transition: fill 0.15s ease;
}

.oy-game-embed__actions button span {
  font-size: 13px;
  font-weight: 700;
  color: var(--oy-color-border);
  line-height: 1;
  transition: color 0.15s ease;
}

/* Sol oyun bilgi bloğu — Poki tarzı ikon + isim + geliştirici */
.oy-game-embed__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;   /* sola yasla; butonlar sağda kalsın */
  min-width: 0;
}
.oy-game-embed__meta-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.oy-game-embed__meta-text {
  display: flex;
  flex-direction: column;
  min-width: 0;         /* ellipsis için */
}
.oy-game-embed__meta-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--oy-color-text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oy-game-embed__meta-author {
  font-size: 12px;
  color: var(--oy-color-border);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Aktif (tıklanmış) durumlar — Poki tarzı renkli */
.btn-like.active .icon,
.btn-like.active span,
.btn-dislike.active .icon,
.btn-dislike.active span { fill: #2f80ed; color: #2f80ed; }

.btn-favorite.active .icon { fill: #FF5E5E; }

/* MOBİL: aksiyon barı gizli + splash oyun görselini kaplar (Poki mobil) */
@media (max-width: 768px) {
  .oy-game-embed__actions { flex-wrap: wrap; gap: 4px; }

  .oy-game-embed__splash {
    padding: 20px 16px;
    background-image:
      linear-gradient(180deg, rgba(26,31,60,0.45) 0%, rgba(26,31,60,0.82) 100%),
      var(--oy-game-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .oy-game-embed__splash::before { display: none; }
  .oy-game-embed__splash img { width: 92px; height: 92px; }
}

/* Oyun bilgi/açıklama bölümü — eski section.game */
.oy-game-info {
  color: var(--oy-color-text);
  margin: 40px 0 0;
  font-size: 16px;
  box-sizing: border-box;
}

.oy-game-info__body {
  background-color: var(--oy-color-surface);
  margin-bottom: 40px;
  padding: 32px 28px;
  border-radius: var(--oy-radius-card);
  box-shadow: 0 2px 12px rgba(56,66,114,0.07);
}

.oy-game-info__body h1 { font-size: 24px; margin-bottom: 15px; }
.oy-game-info__body h2 { font-size: 20px; margin-bottom: 15px; }
.oy-game-info__body p  { line-height: 1.6; margin-bottom: 15px; }

/* Reklam alanları — class isimleri değişmedi, burada da tanımlı olsun */
.ads_game_right {
  /* Negatif grid-column ile SAĞ KENARA sabitlendi: "auto" (span N)
     yerine "-1'den -4'e kadar 3 sütun" demek — toplam sütun sayısı
     (ekran genişliği/zoom farkıyla) değişse bile, bu her zaman
     grid'in en sağındaki 3 sütunu ifade eder. "dense" bu elemana
     artık dokunmaz çünkü konumu artık "auto" değil, açıkça verilmiş. */
  grid-column: -4 / -1;
  grid-row: span 6;      /* ← 300x600'e büyütüldü */
  display: table;
  width: 100%;
  height: 100%;
  max-width: 100%;
  text-align: center;
  overflow: hidden;
  background: #ffffff80;
}

/* Sol dikey reklam — eşik 1600px'den 1400px'e düşürüldü, daha çok
   kullanıcı (1440/1536 gibi yaygın çözünürlükler) görsün diye. */
.ads_game_left { display: none; }

@media (min-width: 1400px) {
  .ads_game_left {
    display: table;
    grid-row: span 6;
    grid-column: span 2;   /* ~160px genişlik */
    width: 100%;
    height: 100%;
    max-width: 100%;
    text-align: center;
    overflow: hidden;
    background: #ffffff80;
  }
}

.ads_game_bottom {
  grid-row: span 1;
  grid-column: span 7;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  text-align: center;
  overflow: hidden;
  background: #ffffff80;
}

/* Izgara içine serpiştirilen ek reklamlar (300×250) — uzun oyun
   listesinde kullanıcı aşağı kaydırdıkça ek gösterim fırsatı yaratır. */
.ads_game_mid {
  grid-row: span 3;
  grid-column: span 3;
  display: table;
  width: 100%;
  height: 100%;
  max-width: 100%;
  text-align: center;
  overflow: hidden;
  background: #ffffff80;
}
@media (max-width: 768px) {
  .ads_game_mid { display: none; }
}

.ads_content_1 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ads_content_2 {
  display: table-cell;
  vertical-align: middle;
}

/* Dev/responsive reklam gelse bile kutu şişmesin, taşan reklam kırpılsın */
.ads_game_right,
.ads_game_left,
.ads_game_mobile { table-layout: fixed; }

.ads_game_right  ins.adsbygoogle,
.ads_game_left   ins.adsbygoogle,
.ads_game_mobile ins.adsbygoogle,
.ads_game_bottom ins.adsbygoogle { max-width: 100%; }

.advert-vertical {
  font-size: 12px;
  font-weight: normal;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-right: 10px;
}

.advert-label {
  font-size: 12px;
  color: #999;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

@media (max-width: 768px) {
  .ads_game_bottom,
  .ads_game_right { display: none !important; }

  .ads_game_mobile {
    grid-row: span 4;
    grid-column: span 3;
    display: table;
    width: 100%;
    height: 100%;
    max-width: 100%;
    text-align: center;
    overflow: hidden;
    background: #ffffff80;
  }
}

@media (min-width: 769px) {
  .ads_game_mobile { display: none; }
}

/* ── 17. SHARE MENU ── */
.oy-share-menu {
  position: fixed;
  bottom: 0;
  right: -250px;
  width: 250px;
  background-color: var(--oy-color-surface);
  border-radius: var(--oy-radius-sm) 0 0 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 10px;
  transition: right 0.3s ease;
  z-index: 1000;
}

.oy-share-menu.show {
  right: 0;
}

.oy-share-link {
  display: flex;
  align-items: center;
  margin: 5px 0;
  padding: 10px 15px;
  border-radius: var(--oy-radius-sm);
  text-decoration: none;
  color: var(--oy-color-link);
  background-color: var(--oy-color-surface-muted);
  transition: opacity 0.3s ease;
}

.oy-share-link:hover {
  opacity: 0.8;
}

#copyLink {
  background-color: var(--oy-color-surface-muted);
  color: var(--oy-color-link);
  font-weight: bold;
  cursor: pointer;
}

/* ── 18. TOAST BİLDİRİMİ ── */
.oy-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--oy-radius-sm);
  z-index: 999999;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
  pointer-events: none;
}

.oy-toast.show {
  opacity: 1;
  bottom: 50px;
}


/* ── 17. OYUN DETAY SAYFASI YARDIMCI SINIFLARI ── */
/* (Diğer sayfalarda kullanılmak üzere, bu dosyada da tanımlandı) */

.oy-game-section {
  color: var(--oy-color-text);
  margin: 40px 0 0;
  font-size: 16px;
  box-sizing: border-box;
}

.oy-game-description {
  background-color: var(--oy-color-surface);
  margin-bottom: 40px;
  padding: 20px;
}

.oy-game-description h1 { font-size: 24px; margin-bottom: 15px; }
.oy-game-description h2 { font-size: 20px; margin-bottom: 15px; }
.oy-game-description p  { line-height: 1.6; margin-bottom: 15px; }

/* Breadcrumb */
.oy-breadcrumb {
  list-style: none;
  padding: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.oy-breadcrumb__item {
  display: inline;
  white-space: nowrap;
  margin-bottom: 5px;
}

.oy-breadcrumb__item::after {
  content: '›';
  margin: 0 5px;
}

.oy-breadcrumb__item:last-child::after {
  content: '';
}

/* Oyun meta bilgisi */
.oy-game-meta {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 12px 16px;
  border-radius: var(--oy-radius-sm);
  font-size: 14px;
  color: #333;
  max-width: 300px;
  margin: 16px 0;
}

.oy-game-meta p      { margin: 6px 0; }
.oy-game-meta strong { color: #555; }
.oy-game-meta time   { color: #000; }

/* Blink animasyonu */
@keyframes oy-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.oy-blink {
  animation: oy-blink 1s infinite;
}


/* ── 18. STATIK SAYFA ALANI ── */
.oy-page-content {
  color: var(--oy-color-text);
  margin-top: 40px;
  font-size: 16px;
  min-height: 100vh;
}

.oy-page-content__body {
  background-color: var(--oy-color-surface);
  margin-bottom: 40px;
  padding: 20px;
}

.oy-page-content__body h1 { font-size: 24px; margin-bottom: 15px; }
.oy-page-content__body h2 { font-size: 20px; margin-bottom: 15px; }
.oy-page-content__body p  { line-height: 1.6; margin-bottom: 15px; }

.oy-sidenav {
  grid-row: span 1;
  grid-column: span 1;
  height: 100%;
}
.oy-cg-player {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  overflow: hidden;
  border-radius: 12px;
  background: #10233b;
}

.oy-cg-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.oy-cg-start {
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  color: #10233b;
  background: #75eff2;
  cursor: pointer;
}

.oy-cg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.oy-cg-cards a {
  display: grid;
  gap: 6px;
  padding: 8px;
  color: #10233b;
  background: #eefafb;
  border-radius: 8px;
}

.oy-cg-cards img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.oy-game-embed__actions .oy-report-button {
  background: #eaf1ff;
  color: #273759;
  font: 600 13px system-ui, sans-serif;
  white-space: nowrap;
}

.oy-report-dialog {
  width: min(420px, calc(100% - 36px));
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  padding: 20px;
  color: #192b45;
  background: white;
}

.oy-report-dialog::backdrop { background: #16263b99; }
.oy-report-dialog textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin-top: 8px;
  font: inherit;
}
.oy-report-dialog form div { display: flex; justify-content: flex-end; gap: 8px; }
.oy-report-dialog button { padding: 7px 12px; cursor: pointer; }

.ads_game_left,
.ads_game_right,
.ads_game_bottom,
.ads_game_mobile,
.ads_game_mid {
  position: relative;
}

.oy-managed-ad {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fff;
}

.oy-managed-ad img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.oy-back-to-top {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--oy-color-nav);
  color: var(--oy-color-surface);
  box-shadow: 0 2px 8px #0004;
  cursor: pointer;
}

.oy-back-to-top:not([hidden]) {
  display: grid;
  place-items: center;
}

.oy-back-to-top:focus-visible {
  outline: 2px solid var(--oy-color-surface);
  outline-offset: -5px;
}
