/* ===== RESET & TEMEL ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: #f0f4ff;
  color: #2d2d2d;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== HEADER ===== */
.header {
  background: linear-gradient(135deg, #6c3be2 0%, #4f46e5 100%);
  padding: 14px 0;
  box-shadow: 0 4px 20px rgba(108,59,226,0.4);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* LOGO */
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.logo-kral {
  font-family: 'Fredoka One', cursive;
  font-size: 32px;
  color: #ffffff;
  text-shadow: 2px 3px 0px #3730a3;
  letter-spacing: 1px;
}

.logo-oyun {
  font-family: 'Fredoka One', cursive;
  font-size: 32px;
  color: #fde68a;
  text-shadow: 2px 3px 0px #92400e;
  letter-spacing: 1px;
}

.logo-crown {
  font-size: 24px;
  animation: sallan 2s ease-in-out infinite;
}

@keyframes sallan {
  0%, 100% { transform: rotate(-10deg); }
  50%       { transform: rotate(10deg); }
}

/* ARAMA */
.arama-formu {
  display: flex;
  flex: 1;
  max-width: 500px;
  gap: 8px;
}

.arama-input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 50px;
  border: 3px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
}

.arama-input::placeholder { color: rgba(255,255,255,0.7); }
.arama-input:focus { border-color: #fde68a; background: rgba(255,255,255,0.25); }

.arama-btn {
  padding: 10px 22px;
  background: #fde68a;
  color: #92400e;
  border: none;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.arama-btn:hover { background: #fcd34d; transform: scale(1.05); }

/* ===== KATEGORİLER ===== */
.kategoriler {
  background: #fff;
  border-bottom: 3px solid #e8ecff;
  padding: 10px 0;
  overflow-x: auto;
}

.kategori-listesi {
  display: flex;
  gap: 8px;
  white-space: nowrap;
  padding-bottom: 2px;
}

.kategori-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 18px;
  border-radius: 50px;
  border: 2px solid #e8ecff;
  background: #f8f9ff;
  color: #5b6080;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.kategori-btn:hover {
  background: #6c3be2;
  color: #fff;
  border-color: #6c3be2;
  transform: translateY(-2px);
}

.kategori-btn.aktif {
  background: #6c3be2;
  color: #fff;
  border-color: #6c3be2;
  box-shadow: 0 4px 12px rgba(108,59,226,0.35);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #6c3be2 0%, #4f46e5 50%, #06b6d4 100%);
  color: #fff;
  text-align: center;
  padding: 48px 16px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '⭐🎮🏆🎯🚀🎪';
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  font-size: 40px;
  letter-spacing: 30px;
  opacity: 0.15;
  pointer-events: none;
}

.hero h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(28px, 5vw, 52px);
  text-shadow: 3px 4px 0px rgba(0,0,0,0.2);
  margin-bottom: 12px;
}

.hero p {
  font-size: clamp(15px, 2.5vw, 20px);
  opacity: 0.9;
  font-weight: 600;
}

/* ===== MAIN ===== */
.main { padding: 32px 0 48px; }

.bolum-baslik {
  font-family: 'Fredoka One', cursive;
  font-size: 26px;
  color: #4f46e5;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 3px dashed #c7d2fe;
}

/* ===== OYUN GRİD ===== */
.oyun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

/* ===== OYUN KART ===== */
.oyun-kart {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(108,59,226,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid #e8ecff;
}

.oyun-kart:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px rgba(108,59,226,0.25);
  border-color: #6c3be2;
}

.oyun-resim {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e8ecff;
}

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

.oyun-kart:hover .oyun-resim img { transform: scale(1.08); }

.oyun-overlay {
  position: absolute;
  inset: 0;
  background: rgba(108,59,226,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.oyun-kart:hover .oyun-overlay { opacity: 1; }

.oyna-btn {
  background: #fde68a;
  color: #92400e;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
  letter-spacing: 1px;
}

.oyun-bilgi {
  padding: 12px 14px;
}

.oyun-bilgi h3 {
  font-size: 14px;
  font-weight: 800;
  color: #2d2d2d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.oyun-kategori {
  font-size: 12px;
  color: #6c3be2;
  font-weight: 700;
  background: #f0f4ff;
  padding: 2px 10px;
  border-radius: 20px;
  display: inline-block;
}

/* ===== BOŞ DURUM ===== */
.bos-durum {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 20px;
  background: #fff;
  border-radius: 16px;
  border: 3px dashed #c7d2fe;
}

/* ===== OYUN SAYFASI ===== */
.oyun-sayfasi { padding: 24px 0 48px; }

.oyun-baslik-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.oyun-baslik-bar h1 {
  font-family: 'Fredoka One', cursive;
  font-size: 28px;
  color: #4f46e5;
}

.geri-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: #6c3be2;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s, transform 0.15s;
}

.geri-btn:hover { background: #4f46e5; transform: translateY(-2px); }

.oyun-cerceve-wrap {
  position: relative;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(108,59,226,0.3);
  border: 3px solid #6c3be2;
}

.oyun-cerceve {
  width: 100%;
  min-height: 500px;
  height: 650px;
  border: none;
  display: block;
}

@media (max-width: 600px) {
  .oyun-cerceve { min-height: 350px; height: 450px; }
}

.tam-ekran-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 8px 16px;
  background: rgba(108,59,226,0.85);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.tam-ekran-btn:hover { background: #6c3be2; }

.oyun-aciklama {
  margin-top: 24px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 2px solid #e8ecff;
}

.oyun-aciklama h2 {
  font-family: 'Fredoka One', cursive;
  color: #4f46e5;
  margin-bottom: 10px;
  font-size: 20px;
}

.oyun-aciklama p {
  color: #555;
  line-height: 1.7;
  font-size: 15px;
}

/* ===== FOOTER ===== */
.footer {
  background: #2d2d2d;
  color: #aaa;
  text-align: center;
  padding: 24px 16px;
  font-size: 14px;
}

.footer strong { color: #fde68a; }
.footer-alt { margin-top: 6px; font-size: 12px; opacity: 0.6; }

/* ===== MOBİL ===== */
@media (max-width: 600px) {
  .header .container { gap: 10px; }
  .arama-formu { max-width: 100%; }
  .oyun-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 12px; }
  .oyun-cerceve { height: 350px; }
  .logo-kral, .logo-oyun { font-size: 24px; }
}
/* ===== PROFESYONEL SOSYAL MEDYA PAYLAŞIM ALANI ===== */
.paylasim-kapsayici {
  margin: 28px 0 20px;
}

.paylasim-ic {
  background: #ffffff;
  border-radius: 28px;
  padding: 20px 28px;
  border: 1px solid #e8ecff;
  box-shadow: 0 8px 20px rgba(108, 59, 226, 0.08);
  transition: all 0.2s ease;
}

.paylasim-baslik {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: #4f46e5;
  margin-bottom: 18px;
}

.paylasim-baslik i {
  font-size: 1.4rem;
  color: #6c3be2;
}

.paylasim-buton-grup {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.paylasim-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.paylasim-btn i {
  font-size: 1.1rem;
}

.paylasim-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* Marka renkleri */
.paylasim-btn.whatsapp { background: #25D366; }
.paylasim-btn.facebook { background: #1877F2; }
.paylasim-btn.twitter { background: #000000; } /* X marka rengi siyah */
.paylasim-btn.telegram { background: #0088cc; }
.paylasim-btn.instagram { background: #E4405F; }

/* Mobil uyum */
@media (max-width: 640px) {
  .paylasim-ic {
    padding: 16px 20px;
  }
  .paylasim-buton-grup {
    gap: 10px;
  }
  .paylasim-btn {
    padding: 7px 16px;
    font-size: 0.8rem;
  }
  .paylasim-btn i {
    font-size: 0.9rem;
  }
  .paylasim-baslik {
    font-size: 1rem;
    margin-bottom: 14px;
  }
}
/* HİT SAYACI */
.hit-sayaci {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}
.hit-sayaci span {
    background: rgba(108,59,226,0.2);
    padding: 5px 15px;
    border-radius: 40px;
    backdrop-filter: blur(2px);
}
.hit-sayaci span strong {
    color: #fde68a;
    font-weight: 800;
}
/* POPÜLER SAYFALAMA */
.populer-sayfalama {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}
.sayfa-btn {
    background: #e8ecff;
    color: #4f46e5;
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 800;
    transition: 0.2s;
}
.sayfa-btn.aktif,
.sayfa-btn:hover {
    background: #6c3be2;
    color: white;
}

/* Popüler grid için 5x3 düzeni (isteğe bağlı, flex zaten 5 sütun yapacak) */
.populer-grid {
    grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1000px) {
    .populer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 700px) {
    .populer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 500px) {
    .populer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Oynanma sayısı küçük etiket */
.oyun-oynanma-kucuk {
    font-size: 0.7rem;
    color: #ffaa44;
    margin-left: 8px;
}
/* Oyun sayfalama (tüm oyunlar için) */
.oyun-sayfalama {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.sayfa-btn {
    background: #e8ecff;
    color: #4f46e5;
    padding: 8px 16px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
    display: inline-block;
}
.sayfa-btn.aktif,
.sayfa-btn:hover {
    background: #6c3be2;
    color: white;
}
/* YORUM SİSTEMİ STİLLERİ (daha önce eklenmediyse) */
.yorumlar-alani {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    margin-top: 30px;
    box-shadow: 0 4px 16px rgba(108,59,226,0.08);
}
.yorumlar-alani h3 {
    font-family: 'Fredoka One', cursive;
    color: #4f46e5;
    margin-bottom: 20px;
    font-size: 1.5rem;
}
.yorum-listesi {
    margin-bottom: 30px;
    max-height: 500px;
    overflow-y: auto;
}
.yorum-kart {
    display: flex;
    gap: 15px;
    padding: 16px;
    border-bottom: 1px solid #e8ecff;
}
.yorum-profil {
    flex-shrink: 0;
}
.profil-resim {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6c3be2;
}
.yorum-icerik {
    flex: 1;
}
.yorum-bilgi {
    margin-bottom: 8px;
}
.yorum-bilgi strong {
    font-size: 1rem;
    color: #2d2d2d;
}
.yorum-yas {
    font-size: 0.8rem;
    color: #6c3be2;
    margin-left: 8px;
}
.yorum-tarih {
    font-size: 0.7rem;
    color: #999;
    margin-left: 12px;
}
.yorum-metin {
    color: #555;
    line-height: 1.5;
    font-size: 0.9rem;
}
.yorum-yok {
    text-align: center;
    color: #888;
    padding: 20px;
}
.yorum-formu {
    background: #f8f9ff;
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
}
.yorum-formu h4 {
    margin-bottom: 16px;
    color: #4f46e5;
}
.form-grup {
    margin-bottom: 15px;
}
.form-grup.yarim {
    display: inline-block;
    width: calc(50% - 10px);
    margin-right: 10px;
}
.form-grup.tam {
    width: 100%;
}
.form-grup label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.85rem;
}
.zorunlu {
    color: #e74c3c;
}
.form-grup input, .form-grup select, .form-grup textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
}
.yorum-btn {
    background: #6c3be2;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
}
.yorum-btn:hover {
    background: #4f46e5;
}
.form-uyari {
    font-size: 0.7rem;
    color: #888;
    margin-top: 10px;
}
@media (max-width: 600px) {
    .form-grup.yarim {
        width: 100%;
        margin-right: 0;
    }
}