/* === Variables & Reset === */
:root {
  --bg: #0f0f14;
  --text: #e9e9f2;
  --muted: #b8b8c7;
  --border: rgba(255,255,255,0.12);
  --header-h: 64px;
  --accent: #d4a853;
  --accent-glow: rgba(212,168,83,0.18);
  --radius: 14px;
  --ease: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* === Header === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(15,15,20,0.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10;
  transition: transform 250ms ease, opacity 250ms ease;
}

.site-header.is-hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.site-header.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: color var(--ease);
}

.nav a:hover { color: var(--accent); }

/* Hamburger button */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 10px;
  color: var(--text);
  flex-direction: column;
  gap: 5px;
  transition: border-color var(--ease);
}

.nav-toggle:hover { border-color: rgba(212,168,83,0.5); }

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* === Snap Container === */
.snap-container {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body.header-on .snap-container { padding-top: var(--header-h); }

/* === Panels === */
.panel {
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  border-bottom: 1px solid var(--border);
}

body.header-on .panel {
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
}

.panel:nth-child(even) { background: rgba(255,255,255,0.015); }

.panel-inner {
  width: min(1280px, 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: rgba(255,255,255,0.03);
}

/* === Headings === */
h2 {
  margin: 0 0 20px 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  position: relative;
  padding-bottom: 18px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

p {
  margin: 0 0 14px 0;
  color: var(--muted);
  line-height: 1.7;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  background: rgba(255,255,255,0.07);
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
  cursor: pointer;
}

.btn:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

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

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0f0f14;
  font-weight: 700;
}

.btn.primary:hover {
  background: #ddb85e;
  border-color: #ddb85e;
  box-shadow: 0 6px 20px rgba(212,168,83,0.3);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.35);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
}

/* === Reveal animation === */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === HERO === */
.hero {
  position: relative;
  overflow: hidden;
}

.hero .panel-inner {
  background: rgba(10,10,16,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
}

.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
}

.hero-bg::before {
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212,168,83,0.65), transparent 70%);
  top: 20%;
  left: -10%;
  animation: light-drift-a 12s ease-in-out infinite alternate;
}

.hero-bg::after {
  width: 500px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(180,130,50,0.5), transparent 70%);
  bottom: 15%;
  right: -5%;
  animation: light-drift-b 16s ease-in-out infinite alternate;
}

@keyframes light-drift-a {
  0%   { transform: translate(0, 0);      opacity: 0.22; }
  40%  { transform: translate(30%, 12%);  opacity: 0.28; }
  100% { transform: translate(65%, -8%);  opacity: 0.16; }
}

@keyframes light-drift-b {
  0%   { transform: translate(0, 0);       opacity: 0.18; }
  50%  { transform: translate(-25%, -15%); opacity: 0.24; }
  100% { transform: translate(-55%, 10%);  opacity: 0.10; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,15,20,0.2), rgba(15,15,20,0.8));
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 44px 32px;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(212,168,83,0.4);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
  background: rgba(212,168,83,0.08);
}

.hero-logo {
  width: min(420px, 38vw);
  height: auto;
  display: block;
  margin: 0 auto 18px auto;
}

.hero-motto {
  margin: 0 0 28px 0;
  font-size: 18px;
  color: var(--text);
  opacity: 0.8;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === ABOUT === */
#about {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#about .panel-inner {
  background: rgba(10,10,16,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,0.1);
}

.about-marquee {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
}

.about-marquee-track {
  display: flex;
  gap: 12px;
  animation: marquee-slide 28s linear infinite;
  will-change: transform;
  flex-shrink: 0;
}

.about-marquee-track img {
  height: 52vh;
  width: auto;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0.07;
  filter: blur(3px) saturate(0.3);
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
  display: block;
}

@keyframes marquee-slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 6px)); }
}

/* === GAMES === */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.game-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-7px);
  border-color: rgba(212,168,83,0.4);
  box-shadow: 0 24px 56px rgba(0,0,0,0.55), 0 0 32px var(--accent-glow);
}

.game-cover-wrap {
  overflow: hidden;
}

.game-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,0.03);
  transition: transform 0.4s ease;
}

.game-card:hover .game-cover {
  transform: scale(1.04);
}

.game-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-info h3 {
  margin: 0 0 8px 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.game-info p {
  margin: 0 0 14px 0;
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
}

.game-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.game-actions .btn-sm {
  flex: 1;
}

/* === CONTACT === */
.contact-list {
  margin: 16px 0 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.contact-list li:first-child { border-top: none; }

.contact-list span {
  display: inline-block;
  min-width: 70px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--ease);
}

.contact-list a:hover { color: var(--accent); }

/* === FOOTER === */
.footer-panel {
  height: auto !important;
  min-height: 35vh;
  scroll-snap-align: end;
  scroll-snap-stop: normal;
  place-items: stretch;
  padding: 40px 20px;
  background: #0b0b11;
}

body.header-on .footer-panel {
  height: auto !important;
  min-height: calc(35vh - var(--header-h));
}

.footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  background: rgba(255,255,255,0.03);
}

.footer-brand {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--accent);
}

.footer-copy {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.footer-links,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a,
.footer-social a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--ease);
}

.footer-links a:hover,
.footer-social a:hover { color: var(--accent); }

/* === Mobile === */
@media (max-width: 720px) {
  :root { --header-h: 56px; }

  .site-header { padding: 0 14px; }

  /* Mobile nav dropdown */
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(13,13,19,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    flex-direction: column;
    z-index: 9;
  }

  .nav.nav-open { display: flex; }

  .nav a {
    margin-left: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }

  .nav a:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }

  /* Panels */
  .panel {
    height: 100dvh;
    overflow: hidden;
    padding: 22px 14px;
    scroll-snap-stop: normal;
  }

  body.header-on .panel { height: calc(100dvh - var(--header-h)); }

  .panel-inner {
    overflow: hidden;
    padding: 20px;
    border-radius: 14px;
  }

  /* Hero */
  .hero-logo { width: min(240px, 55vw); }
  .hero-badge { font-size: 10px; letter-spacing: 1px; }
  .hero-motto { font-size: 15px; }
  .hero-inner { padding: 28px 18px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  /* Headings */
  h2 { font-size: 24px; }

  /* Games — yatay kaydırmalı carousel */
  .game-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    /* panel-inner padding'ini aşarak tam genişliğe ulaş */
    margin: 16px -20px 0;
    padding: 0 20px 2px;
    touch-action: pan-x;
  }

  .game-grid::-webkit-scrollbar { display: none; }

  .game-card {
    flex: 0 0 72vw;
    scroll-snap-align: start;
    min-width: 0;
  }

  .game-cover { aspect-ratio: 1 / 1; }

  /* Blur performans optimizasyonu */
  .about-marquee-track img { filter: saturate(0.2); }

  /* Dokunma hedefleri */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; padding: 10px 14px; }

  /* Contact */
  .contact-list span { min-width: 58px; }

  /* Footer */
  .footer-panel {
    min-height: auto;
    padding: 24px 14px;
  }

  .footer-inner {
    padding: 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-links,
  .footer-social {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
  }

  body.header-on .footer-panel { min-height: auto; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  .hero-bg::before,
  .hero-bg::after { animation: none; }
  .about-marquee-track { animation-play-state: paused; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
