@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg: #0F1020;
  --surface: #191B2E;
  --surface-2: #22243B;
  --accent-1: #6C5CE7;
  --accent-2: #00E5A0;
  --accent-3: #FF4D8D;
  --text: #F1F0FA;
  --muted: #9A99B8;
  --radius: 14px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Inter', sans-serif;
  min-height:100vh;
}
h1,h2,h3,.logo,.pill,.btn{ font-family:'Chakra Petch', sans-serif; }

a{color:inherit; text-decoration:none}
button{font-family:inherit; cursor:pointer}

:focus-visible{
  outline:2px solid var(--accent-2);
  outline-offset:2px;
}

/* ---------- Header ---------- */
header.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(15,16,32,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.header-inner{
  max-width:1280px; margin:0 auto; padding:14px 24px;
  display:flex; align-items:center; gap:24px;
}
.logo{
  font-weight:700; font-size:22px; letter-spacing:0.5px;
  display:flex; align-items:center; gap:8px;
  white-space:nowrap;
}
.logo .kart{
  width:14px; height:22px; border-radius:3px;
  background:linear-gradient(180deg,var(--accent-1),var(--accent-2));
  display:inline-block;
  transform:skewX(-8deg);
}
.arama{
  flex:1; max-width:420px;
  display:flex; align-items:center;
  background:var(--surface);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:999px;
  padding:8px 16px;
  gap:8px;
}
.arama input{
  background:none; border:none; color:var(--text);
  width:100%; font-size:14px; outline:none;
}
.arama svg{flex-shrink:0; opacity:0.6}

nav.kategori-nav{
  overflow-x:auto;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.kategori-nav-inner{
  max-width:1280px; margin:0 auto; padding:10px 24px;
  display:flex; gap:10px;
}
.pill{
  flex-shrink:0;
  padding:7px 16px;
  border-radius:999px;
  background:var(--surface);
  border:1px solid rgba(255,255,255,0.08);
  color:var(--muted);
  font-size:13px; font-weight:600; letter-spacing:0.3px;
  transition:all .15s ease;
}
.pill:hover{ color:var(--text); border-color:rgba(255,255,255,0.2) }
.pill.aktif{
  background:linear-gradient(135deg,var(--accent-1),var(--accent-3));
  color:#fff; border-color:transparent;
}

/* ---------- Hero ---------- */
.hero{
  max-width:1280px; margin:0 auto; padding:48px 24px 24px;
}
.hero h1{
  font-size:clamp(28px,4vw,44px);
  margin:0 0 8px;
  line-height:1.05;
}
.hero p{ color:var(--muted); font-size:16px; max-width:560px; margin:0 }
.hero .vurgu{
  background:linear-gradient(135deg,var(--accent-2),var(--accent-1));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ---------- Section ---------- */
.section{
  max-width:1280px; margin:0 auto; padding:28px 24px;
}
.section-baslik{
  display:flex; align-items:baseline; gap:10px; margin-bottom:16px;
}
.section-baslik h2{
  font-size:20px; margin:0; letter-spacing:0.3px;
}
.section-baslik .cizgi{
  flex:1; height:1px; background:rgba(255,255,255,0.08);
}

/* ---------- Game grid / cartridge cards ---------- */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(190px,1fr));
  gap:18px;
}
.kart-oyun{
  background:var(--surface);
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.06);
  transition:transform .18s ease, border-color .18s ease;
  display:block;
}
.kart-oyun:hover{
  transform:translateY(-4px);
  border-color:rgba(255,255,255,0.18);
}
.kart-oyun .kapak-wrap{
  position:relative;
  aspect-ratio:16/9;
  width:100%;
  overflow:hidden;
  background:var(--surface-2);
}
.kart-oyun .kapak-wrap img{
  width:100%; height:100%; object-fit:cover;
  display:block;
  transition:transform .3s ease;
}
.kart-oyun:hover .kapak-wrap img{ transform:scale(1.06) }
.kart-oyun .serit{
  position:absolute; top:0; left:0; right:0; height:4px;
}
.kart-oyun .bilgi{
  padding:10px 12px 14px;
}
.kart-oyun .ad{
  font-size:14.5px; font-weight:600;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.kart-oyun .kategori-etiket{
  font-size:11px; color:var(--muted); margin-top:3px;
  text-transform:uppercase; letter-spacing:0.5px;
}

/* ---------- Empty state ---------- */
.bos-durum{
  color:var(--muted); padding:40px 0; text-align:center;
}

/* ---------- Oyun (game) page ---------- */
.oyun-sayfa{
  max-width:1280px; margin:0 auto; padding:20px 24px 60px;
  display:grid; grid-template-columns:1fr 300px; gap:24px;
}
.oyun-ust{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:12px; gap:12px; flex-wrap:wrap;
}
.oyun-ust h1{ font-size:22px; margin:0; }
.geri-link{
  display:inline-flex; align-items:center; gap:6px;
  color:var(--muted); font-size:14px; font-weight:600;
}
.geri-link:hover{ color:var(--text) }
.oyun-eylemler{ display:flex; gap:8px; }
.btn{
  display:inline-flex; align-items:center; gap:6px;
  background:var(--surface); border:1px solid rgba(255,255,255,0.1);
  color:var(--text); padding:9px 14px; border-radius:8px;
  font-size:13px; font-weight:600;
  transition:background .15s ease;
}
.btn:hover{ background:var(--surface-2) }
.btn.vurgu-btn{
  background:linear-gradient(135deg,var(--accent-1),var(--accent-3));
  border-color:transparent;
}

.oyun-cerceve-dis{
  position:relative;
  aspect-ratio:16/9;
  background:#000;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.08);
}
.oyun-cerceve-dis iframe{
  width:100%; height:100%; border:none; display:block;
}
.yukleniyor{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  color:var(--muted); font-size:14px; background:var(--surface);
}

.oyun-aciklama{
  margin-top:16px; color:var(--muted); font-size:14px; line-height:1.6;
}

.yan-panel h3{
  font-size:14px; text-transform:uppercase; letter-spacing:0.6px;
  color:var(--muted); margin:0 0 12px;
}
.yan-liste{ display:flex; flex-direction:column; gap:10px; }
.yan-liste .kart-oyun .kapak-wrap{ aspect-ratio:16/9 }
.yan-kart{
  display:flex; gap:10px; align-items:center;
  background:var(--surface); border-radius:10px; padding:8px;
  border:1px solid rgba(255,255,255,0.06);
  transition:border-color .15s ease;
}
.yan-kart:hover{ border-color:rgba(255,255,255,0.2) }
.yan-kart img{
  width:72px; aspect-ratio:16/9; object-fit:cover; border-radius:6px; flex-shrink:0;
}
.yan-kart .ad{ font-size:13px; font-weight:600 }
.yan-kart .kategori-etiket{ font-size:10.5px; color:var(--muted) }

footer{
  text-align:center; color:var(--muted); font-size:13px;
  padding:30px 24px; border-top:1px solid rgba(255,255,255,0.06);
}

@media (max-width:880px){
  .oyun-sayfa{ grid-template-columns:1fr; }
  .arama{ display:none; }
}
