/* ===== Temel ===== */
:root {
  --orange: #ff6a3d;
  --yellow: #ecd06f;
  --bg: #0e1230;
  --bg2: #14183a;
  --card: #1b2048;
  --text: #eef1ff;
  --muted: #9aa0cc;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 3D Hero ===== */
#hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
#canvas-container { position: absolute; inset: 0; }
#canvas-container canvas { display: block; }

.hero-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 2;
  width: 90%;
}
.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
  line-height: 1;
}
.hero-title span { color: var(--orange); }
.hero-sub {
  margin-top: 16px;
  font-size: clamp(.9rem, 2vw, 1.2rem);
  color: var(--yellow);
}
.hero-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 34px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  border-radius: 40px;
  pointer-events: auto;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(255,106,61,.4);
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(255,106,61,.6); }
.hero-hint {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: .85rem;
  z-index: 2;
  background: rgba(0,0,0,.3);
  padding: 8px 18px;
  border-radius: 30px;
  backdrop-filter: blur(6px);
}

/* ===== Oyun Listesi ===== */
#games { padding: 70px 0 90px; background: linear-gradient(180deg, var(--bg), var(--bg2)); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 2.4rem; }
.section-head p { color: var(--muted); margin-top: 8px; }

.featured-strip { text-align: center; margin-bottom: 24px; }
.badge {
  display: inline-block;
  background: rgba(236,208,111,.15);
  color: var(--yellow);
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: .9rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.game-card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  border-color: var(--orange);
}
.game-card.is-featured { border-color: rgba(236,208,111,.4); }
.game-thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #2a2f5a, #1b2048);
  display: flex; align-items: center; justify-content: center;
}
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback {
  font-size: 4rem; font-weight: 900; color: var(--orange); opacity: .5;
}
.card-star {
  position: absolute; top: 10px; right: 12px; font-size: 1.3rem;
}
.game-info { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.game-info h3 { font-size: 1.2rem; margin-bottom: 6px; }
.game-cat {
  align-self: flex-start;
  font-size: .75rem;
  background: rgba(255,106,61,.2);
  color: var(--orange);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.game-desc { color: var(--muted); font-size: .9rem; flex: 1; line-height: 1.5; }
.game-plays { margin-top: 12px; font-size: .8rem; color: var(--muted); }

/* ===== Footer ===== */
.site-footer {
  background: #090c22;
  padding: 30px 0;
}
.site-footer .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.site-footer p { color: var(--muted); font-size: .85rem; }
.admin-link { color: var(--muted); font-size: .85rem; }
.admin-link:hover { color: var(--orange); }

/* ===== Oyun Oynama Sayfası ===== */
.play-page { min-height: 100vh; display: flex; flex-direction: column; }
.play-header {
  background: #090c22;
  padding: 14px 0;
  position: sticky; top: 0; z-index: 10;
}
.play-header .container { display: flex; justify-content: space-between; align-items: center; }
.back-btn { color: var(--orange); font-weight: 600; }
.play-title { font-size: 1.2rem; }
.play-frame-wrap {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.play-frame {
  width: 100%; max-width: 960px;
  aspect-ratio: 4/3;
  border: none;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

/* ===== Mobil ===== */
@media (max-width: 640px) {
  .hero-hint { font-size: .75rem; }
  .game-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .game-info { padding: 12px; }
  .game-info h3 { font-size: 1rem; }
}
