/* Root & Theme - Siyah, Kırmızı, Mavi, Beyaz Paleti */
:root {
  /* Ana Renk Paleti */
  --primary: #0ea5e9;        /* Modern açık mavi - ana brand rengi */
  --primary-hover: #0284c7;  /* Mavi hover */
  --secondary: #374151;      /* Orta gri - ikincil */
  --accent: #dc2626;         /* Kırmızı - vurgu rengi */
  --accent-hover: #b91c1c;   /* Koyu kırmızı */

  /* Siyah Spektrumu */
  --black: #000000;          /* Saf siyah */
  --black-soft: #0f0f0f;    /* Ultra koyu */
  --black-medium: #1a1a1a;  /* Koyu siyah */
  --black-light: #2d2d2d;   /* Orta siyah */
  --black-lighter: #404040; /* Açık siyah */

  /* Beyaz Spektrumu */
  --white: #ffffff;          /* Saf beyaz */
  --white-soft: #fafafa;    /* Ultra açık gri */
  --white-medium: #f5f5f5;  /* Açık gri */
  --white-dark: #e5e5e5;    /* Orta gri */

  /* Full Black Theme Arka Planlar */
  --bg-0: #000000;           /* Saf siyah arka plan */
  --bg-1: #0a0a0a;          /* Ultra koyu siyah */
  --bg-2: #111111;          /* Koyu siyah */
  --bg-3: #1a1a1a;          /* Orta siyah */
  --card-bg: #111111;       /* Kart arka planı */
  --card-bg-hover: #1a1a1a; /* Kart hover */

  /* Dark Theme Metinler */
  --text-primary: #ffffff;   /* Ana beyaz metin */
  --text-secondary: #d1d5db; /* İkincil açık gri metin */
  --text-tertiary: #9ca3af; /* Üçüncül gri metin */
  --text-muted: #6b7280;     /* Soluk metin */

  /* Mavi Tonları */
  --blue-light: #38bdf8;     /* Açık mavi */
  --blue-medium: #0ea5e9;    /* Orta mavi */
  --blue-dark: #0284c7;     /* Koyu mavi */

  /* Kırmızı Tonları */
  --red-light: #ef4444;      /* Açık kırmızı */
  --red-medium: #dc2626;     /* Orta kırmızı */
  --red-dark: #b91c1c;      /* Koyu kırmızı */

  /* Durum Renkleri */
  --success: #16a34a;        /* Başarı - yeşil */
  --warning: #eab308;        /* Uyarı - sarı */
  --danger: #dc2626;         /* Hata - kırmızı */
  --info: #0ea5e9;          /* Bilgi - mavi */

  /* Diğer Değişkenler */
  --radius: 12px;
  --radius-large: 20px;
  --shadow: 0 10px 30px rgba(0,0,0,.6);
  --shadow-soft: 0 4px 20px rgba(0,0,0,.3);
  --shadow-hover: 0 15px 40px rgba(0,0,0,.4);
  --border: #6b7280;
  --border-light: #9ca3af;
  --border-lighter: #d1d5db;

  /* Gradientler */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--blue-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--red-dark) 100%);
  --gradient-dark: linear-gradient(135deg, var(--bg-0) 0%, var(--bg-2) 100%);
  --gradient-card: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-2) 100%);
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, var(--bg-0), var(--bg-1), var(--bg-2));
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Full Black Theme - Light theme now becomes dark too */
body[data-theme="light"] {
  --bg-0: #000000;
  --bg-1: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --card-bg: #111111;
  --card-bg-hover: #1a1a1a;
  
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  --text-muted: #6b7280;
  
  --border: #333333;
  --border-light: #444444;
  --border-lighter: #555555;
  
  --shadow: 0 10px 30px rgba(0,0,0,.8);
  --shadow-soft: 0 8px 24px rgba(0,0,0,.6);
  --shadow-hover: 0 15px 40px rgba(0,0,0,.7);
  
  background: linear-gradient(135deg, var(--bg-0), var(--bg-1), var(--bg-2));
  color: var(--text-primary);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tilt, .reveal, .depth { transition: none !important; animation: none !important; }
}

/* Containers */
.container { width: min(1200px, 92%); margin-inline: auto; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  padding: .75rem 1rem; background: var(--primary); color: #fff; border-radius: 8px;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10000; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(0, 0, 0, .95); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
body[data-theme="light"] .site-header { background: rgba(0, 0, 0, .95); }

.nav-container { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; gap: 1rem; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--primary); text-decoration: none; text-shadow: 0 0 10px var(--primary); }

.site-nav ul { display: flex; list-style: none; gap: 1.25rem; }
.nav-link {
  text-decoration: none; color: var(--text-primary); padding: .5rem .75rem; border-radius: 10px; position: relative;
}
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 0; height: 2px; width: 0; transform: translateX(-50%);
  background: var(--primary); transition: width .25s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 80%; }

.nav-controls { display: flex; gap: .5rem; align-items: center; }
.lang-toggle, .theme-toggle, .mobile-menu-toggle {
  border: none; background: var(--primary); color: #fff; border-radius: 10px; padding: .55rem .8rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem; transition: transform .2s ease, box-shadow .2s ease;
}
.lang-toggle:hover, .theme-toggle:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,170,255,.3); }
.mobile-menu-toggle { display: none; background: transparent; color: inherit; padding: .4rem .6rem; border: 1px solid rgba(255,255,255,.12); }
body[data-theme="light"] .mobile-menu-toggle { border-color: rgba(0,0,0,.12); }

/* Lang menu */
.lang-container { position: relative; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + .4rem);
  background: rgba(31, 41, 55, .95); backdrop-filter: blur(10px);
  border-radius: 10px; padding: .25rem; min-width: 140px; display: none;
  box-shadow: var(--shadow-soft);
}
body[data-theme="light"] .lang-menu { background: rgba(255,255,255,.97); }
.lang-container.open .lang-menu { display: block; }
.lang-menu button {
  width: 100%; text-align: left; background: transparent; color: #fff; border: 0; padding: .6rem .8rem; border-radius: 8px; cursor: pointer;
}
body[data-theme="light"] .lang-menu button { color: #333; }
.lang-menu button:hover { background: var(--primary); color: #fff; }

/* Hero */
.hero {
  min-height: 100svh; display: grid; place-items: center; position: relative; text-align: center;
  background: var(--bg-0);
}
.hero .hero-content { position: relative; }
.hero h1 { font-size: clamp(2rem, 4.8vw, 4rem); font-weight: 800;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1rem, 1.2vw + .6rem, 1.3rem); color: var(--text-secondary); margin-top: .75rem; }



/* Buttons */
.btn {
  padding: .9rem 1.4rem; border-radius: 50px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .6rem;
  border: 0; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; will-change: transform;
}
.btn-primary { background: linear-gradient(45deg, var(--primary), var(--blue-dark)); color: #fff; }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,170,255,.3); }

/* Sections */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-title { text-align: center; font-size: clamp(1.6rem, 3.6vw, 3rem); color: var(--primary); margin-bottom: 2rem; }

/* Games Controls */
.games-controls {
  display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem;
  padding: 1.5rem; background: var(--bg-2); border-radius: 16px; border: 1px solid var(--border);
}

.search-box {
  position: relative; max-width: 400px;
}

.search-box input {
  width: 100%; padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid var(--border); border-radius: 50px;
  background: var(--bg-0); color: var(--text-primary);
  font-size: 1rem; transition: border-color 0.2s;
}

.search-box input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box i {
  position: absolute; left: 1rem; top: 50%;
  transform: translateY(-50%); color: var(--text-secondary);
  pointer-events: none;
}

.filter-tags {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}

.filter-tag {
  padding: 0.5rem 1rem; border-radius: 50px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-primary); cursor: pointer; font-size: 0.9rem;
  transition: all 0.2s ease;
}

.filter-tag:hover {
  border-color: var(--primary); color: var(--primary);
}

.filter-tag.active {
  background: var(--primary); border-color: var(--primary);
  color: white;
}

/* Games grid */
.games-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 1rem;
}

/* No games found */
.no-games-found {
  text-align: center; padding: 3rem 1rem;
}

.no-games-content {
  max-width: 400px; margin: 0 auto;
}

.no-games-icon {
  font-size: 3rem; color: var(--text-secondary);
  margin-bottom: 1rem; opacity: 0.5;
}

.no-games-found h3 {
  margin-bottom: 0.5rem; color: var(--text-primary);
}

.no-games-found p {
  color: var(--text-secondary); line-height: 1.5;
}
.game-card {
  background: var(--bg-2); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease; will-change: transform;
}
body[data-theme="light"] .game-card { background: #fff; }
.game-card:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.game-card:hover { box-shadow: 0 20px 40px rgba(0,170,255,.2); }
.game-image {
  height: 200px; display: grid; place-items: center; font-size: 3rem; color: #fff;
}
.gradient-1 { background: linear-gradient(45deg, var(--primary), var(--accent)); }
.gradient-2 { background: linear-gradient(45deg, var(--secondary), var(--primary)); }
.gradient-3 { background: linear-gradient(45deg, #1fd1f9, #b621fe); }

.game-content { padding: 1.25rem; }
.game-title { font-size: 1.3rem; color: var(--primary); margin-bottom: .4rem; }
.game-description { color: var(--text-secondary); margin-bottom: .75rem; }
.game-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; list-style: none; }
.tag { background: var(--primary); color: #fff; padding: .28rem .7rem; border-radius: 999px; font-size: .78rem; }

/* About */
.about-section { background: var(--bg-1); }
body[data-theme="light"] .about-section { background: var(--bg-1); }
.about-content { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.about-visual { display: grid; place-items: center; font-size: clamp(6rem, 16vw, 10rem); color: var(--primary); opacity: .8; }

.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1.2rem; }
.stat { text-align: center; padding: 1rem; background: var(--bg-2); border-radius: 15px; }
body[data-theme="light"] .stat { background: #fff; box-shadow: var(--shadow-soft); }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: .9rem; color: var(--text-secondary); }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.team-member {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-2);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body[data-theme="light"] .team-member {
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.team-member:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1);
}

.member-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.member-info {
  flex: 1;
}

.member-info strong {
  color: var(--text-0);
  font-size: 1.1rem;
}

.member-role {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.section-description {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.news-card { background: var(--bg-2); border-radius: 15px; overflow: hidden; transition: transform .2s ease; box-shadow: var(--shadow-soft); }
body[data-theme="light"] .news-card { background: #fff; }
.news-card:hover { transform: translateY(-5px); }
.news-image { height: 150px; display: grid; place-items: center; color: #fff; font-size: 2rem; }
.news-content { padding: 1.1rem 1.25rem; }
.news-date { color: var(--primary); font-size: .9rem; margin-bottom: .35rem; display: inline-block; }
.news-title { font-weight: 700; margin-bottom: .35rem; }
.news-excerpt { color: var(--text-1); font-size: .95rem; }

/* Contact */
.contact-section { background: var(--bg-1); }
body[data-theme="light"] .contact-section { background: var(--light-1); }
.contact-content { text-align: center; max-width: 820px; }
.contact-form { display: grid; gap: 1rem; margin-top: 1.2rem; }
.form-group { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-input {
  width: 100%; padding: 1rem; border: 2px solid var(--bg-2); border-radius: 10px; background: var(--bg-0); color: var(--text-0);
}
body[data-theme="light"] .form-input { background: #fff; border-color: #e0e0e0; color: #333; }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,170,255,.15); }
textarea.form-input { min-height: 120px; resize: vertical; }

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Footer */
.site-footer { background: var(--bg-0); color: var(--text-1); padding: 1.5rem 0; text-align: center; }

/* Toast */
#toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%) translateY(20px);
  background: rgba(20,20,20,.94); color: #fff; padding: .9rem 1.2rem; border-radius: 12px; opacity: 0; pointer-events: none;
  box-shadow: var(--shadow); transition: opacity .25s ease, transform .25s ease;
}
body[data-theme="light"] #toast { background: rgba(0,0,0,.85); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Active section highlight (scrollspy) */
.nav-link.active { color: var(--primary); }

/* Responsive */
@media (max-width: 900px) {
  .about-content { grid-template-columns: 1fr; text-align: center; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-nav ul { display: none; position: absolute; right: 1rem; top: 72px; flex-direction: column; background: rgba(10,10,10,.98); padding: .8rem; border-radius: 12px; width: min(90vw, 420px); }
  body[data-theme="light"] .site-nav ul { background: rgba(255,255,255,.98); }
  .site-nav ul.open { display: flex; }
  .mobile-menu-toggle { display: inline-flex; }
  .section-title { font-size: 2rem; }
  .games-grid, .stats { grid-template-columns: 1fr; }
  
  /* Oyun kontrolleri mobilde */
  .games-controls { padding: 1rem; }
  .search-box { max-width: 100%; }
  .filter-tags { justify-content: center; }
}

/* 3D Tilt subtle */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt:hover { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(8px); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === Bigger Social Icons + glow === */
.social-links { gap: 1rem; }
.social-link {
  width: 64px; height: 64px; font-size: 1.6rem;  /* büyüdü */
  border: 2px solid rgba(255,255,255,.08);
}
.social-link:hover {
  box-shadow: 0 12px 28px rgba(0,170,255,.35), 0 0 12px rgba(0,170,255,.35) inset;
  transform: translateY(-4px) scale(1.05);
}

/* === Reusable 3D Card === */
.card-3d {
  position: relative;
  background: var(--bg-2);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  overflow: hidden;
}
.card-3d::after {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(600px 600px at var(--mx,50%) var(--my,50%), rgba(0,170,255,.15), transparent 60%);
  transform: translateZ(40px);
  pointer-events: none;
}
.card-3d:hover {
  transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(10px);
  box-shadow: 0 24px 60px rgba(0,170,255,.18);
}

/* Magnetic buttons feel */
.btn { will-change: transform; }
.btn:hover { transform: translateY(-4px) scale(1.02); }

/* === Updates Section Layout === */
.updates-section { background: var(--bg-1); }
body[data-theme="light"] .updates-section { background: var(--light-1); }

.updates-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 2rem;
  align-items: start;
}

.tabs { margin-top: .75rem; }
.tab-list { display: flex; gap: .5rem; flex-wrap: wrap; }
.tab-button {
  background: transparent; color: var(--text-0);
  border: 1px solid rgba(255,255,255,.12); padding: .55rem .9rem; border-radius: 999px; cursor: pointer;
}
body[data-theme="light"] .tab-button { border-color: rgba(0,0,0,.12); }
.tab-button.active { background: var(--primary); color: #fff; border-color: transparent; }

.tab-panels { margin-top: 1rem; display: grid; gap: 1rem; }
.tab-panel { display: none; }
.tab-panel.active { display: grid; gap: 1rem; }

.update-card { padding: 1rem 1.1rem; }
.update-title { font-weight: 700; }
.update-text { color: var(--text-1); margin-top: .3rem; }
.update-list { margin: .35rem 0 0 1.1rem; color: var(--text-1); }
.update-time { display: inline-block; margin-top: .5rem; font-size: .9rem; color: var(--primary); }

/* Right column */
.login-card { padding: 1.1rem; }
.login-title { font-weight: 800; margin-bottom: .5rem; }
.login-form { display: grid; gap: .6rem; }
.login-hint { margin-top: .4rem; color: var(--text-1); font-size: .95rem; }

.forum-card {
  display: grid; grid-template-columns: 72px 1fr; gap: .9rem;
  margin-top: 1rem; padding: 1rem; text-decoration: none; color: inherit;
}
.forum-icon {
  width: 72px; height: 72px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.8rem; color: #fff;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
}
.forum-title { font-weight: 800; }
.forum-text { color: var(--text-1); margin: .25rem 0 .4rem; }
.forum-cta { color: #fff; background: var(--primary); padding: .4rem .7rem; border-radius: 999px; font-weight: 700; }

/* Quick Account (header right) */
.nav-controls {
  display: flex; 
  gap: 10px; 
  align-items: center;
  position: fixed;   /* sayfanın üstüne sabitler */
  top: 12px;         /* üstten boşluk */
  right: 16px;       /* sağdan boşluk */
  z-index: 1100;     /* diğer elementlerin üstünde */
}
.account-toggle, .account-link {
  display:flex; align-items:center; gap:.5rem;
  padding:.5rem .7rem; border:1px solid #2a2a33; border-radius:999px;
  background:#121218; color:#eaeaf2; cursor:pointer;
  text-decoration: none;
}
.account-toggle i, .account-link i { font-size:1.1rem }
.account-toggle:hover, .account-link:hover {
  background:#1a1a22; border-color:#3a3a44; transform:translateY(-1px);
}
.account-popover {
  position:absolute; top:calc(100% + 10px); right:0; z-index:1000;
  width:min(92vw, 340px); padding:12px; border:1px solid #2a2a33; border-radius:14px;
  background:#0f0f14; box-shadow:0 18px 50px rgba(0,0,0,.45);
  animation: acc-drop .16s ease-out;
}
@keyframes acc-drop { from{opacity:0; transform:translateY(-6px)} to{opacity:1; transform:translateY(0)} }
.account-tabs{display:flex; gap:6px; margin-bottom:8px}
.account-tab{
  flex:1; padding:.55rem; border-radius:10px; border:1px solid #2a2a33; background:#121218; color:#cfd3dc; cursor:pointer
}
.account-tab.active{ background:#1f1f29; color:#fff; border-color:#3a3a44 }
.account-panel{ display:block }
.account-panel:not(.active){ display:none }
.acc-input{
  width:100%; padding:.75rem .9rem; margin:.45rem 0;
  border-radius:10px; border:1px solid #3a3a44; background:#0b0b10; color:#fff
}
.acc-btn{
  display:block; width:100%; text-align:center; padding:.8rem; border-radius:10px; border:0;
  background:#2b2b36; color:#fff; font-weight:700; margin-top:.5rem; text-decoration:none
}
.acc-btn:hover{ filter:brightness(1.08) }
.acc-primary{ background:#6a5acd }
.acc-success{ background:#28a745 }
.acc-outline{ background:transparent; border:1px solid #3a3a44 }
.acc-row{ display:flex; justify-content:space-between; gap:.75rem; margin-top:.5rem }
.acc-link{ color:#9fd3ff; text-decoration:none; font-size:.92rem }
.acc-check{ display:flex; align-items:center; gap:.5rem; font-size:.92rem; margin:.25rem 0 .5rem }
.acc-hello{ margin:.2rem 0 .6rem; color:#d7d7e0 }
.reduce-motion .account-popover{ animation:none }

/* === Toast Notifications === */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  min-width: 300px;
  max-width: 400px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #007bff;
  animation: toastSlideIn 0.3s ease-out;
}

.toast-success {
  border-left-color: #28a745;
}

.toast-error {
  border-left-color: #dc3545;
}

.toast-warning {
  border-left-color: #ffc107;
}

.toast-info {
  border-left-color: #17a2b8;
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.toast-message {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.toast-close {
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.toast-close:hover {
  background-color: #f0f0f0;
  color: #666;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* === Auth Forms === */
.auth-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
}

.auth-form {
  background: var(--bg-2);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.auth-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-0);
}

.auth-input-group {
  margin-bottom: 1rem;
}

.auth-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-0);
}

.auth-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg-1);
  color: var(--text-0);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.1);
}

.auth-button {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.auth-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.auth-button:active {
  transform: translateY(0);
}

.auth-switch {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-1);
}

.auth-switch a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.auth-success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

/* User Panel */
.user-panel {
  display: none;
  text-align: center;
  padding: 1rem;
}

.user-info {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 1rem;
}

.user-actions {
  display: flex;
  gap: 0.5rem;
}

.user-btn {
  flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.user-btn-primary {
  background: var(--primary);
  color: #fff;
}

.user-btn-primary:hover {
  background: var(--primary-dark);
}

.user-btn-secondary {
  background: var(--bg-3);
  color: var(--text-0);
}

.user-btn-secondary:hover {
  background: var(--bg-4);
}

/* Responsive Auth */
@media (max-width: 480px) {
  .auth-container {
    padding: 1rem;
  }
  
  .auth-form {
    padding: 1.5rem;
  }
  
  .toast {
    min-width: 280px;
    right: 10px;
    left: 10px;
  }
}

/* Top Right Login Button */
.top-right-login-btn {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 9999;
  background: #28a745;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.top-right-login-btn:hover {
  background: #1e7e34;
}


/* === Override: Move only the login button to the top-right === */
/* Keep nav controls (language/theme) in the header flow */
.nav-controls {
  position: static !important;
}

/* Fix the .account wrapper to the top-right corner */
.account {
  position: fixed !important;
  top: 12px;
  right: 16px;
  z-index: 1100; /* above sticky header (z=1000) */
}

/* Ensure popover still anchors below the button */
.account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
}

@media (max-width: 768px) {
  .account { top: 10px; right: 10px; }
}

/* === FORCE OVERRIDES (final) === */
.nav-controls { position: static !important; }
.account {
  position: fixed !important;
  top: 12px !important;
  right: 16px !important;
  z-index: 9999 !important;
}
.account-popover {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
}

/* === özelleştirilmiş 3D kart === */
/* FOOTER polish */
.site-footer { 
  background: #000000;          /* saf siyah arka plan */
  color: #cfd6e4;
}

.site-footer .footer-bottom{
  border-top: 1px solid rgba(255,255,255,.08);
}

.site-footer .links{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;                    /* linkler arası boşluk */
  flex-wrap: wrap;              /* mobilde sar */
  line-height: 1.7;             /* okunabilirlik */
}

.site-footer .links a{
  text-decoration: none;
  color: #b4bed3;
  padding: 6px 10px;            /* tıklama alanı */
  border-radius: 8px;
  transition: background .2s, color .2s, border-color .2s;
}

/* hover + klavye odak */
.site-footer .links a:hover{ background: rgba(255,255,255,.06); color:#fff; }
.site-footer .links a:focus-visible{
  outline: 2px solid #5aa2ff;
  outline-offset: 2px;
}

/* ayraç görünümü */
.site-footer .links .sep{ opacity:.35; margin: 0 2px; }

/* privacy özel vurgusu */
.site-footer .links a.special{
  color: #52b4ff;
  border: 1px solid #52b4ff;
}
.site-footer .links a.special:hover{
  background:#52b4ff; color:#0a0f18;
}

/* telif satırı */
.site-footer .copy{
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px 22px;
  text-align: center;
  font-size: 13px;             /* link bar’dan bir tık küçük */
  color: #9aa6bd;
}

/* daha sıkı mobil */
@media (max-width: 560px){
  .site-footer .links{ gap: 8px; }
  .site-footer .links .sep{ display: none; } /* dar ekranda ayraçları gizle */
}





/* Yeni kodlar buraya gelecek */


/* ========= Featured Games Styles for Homepage ========= */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* Featured Games Grid for Homepage */
.featured-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.featured-game {
  background: var(--gradient-card);
  border-radius: var(--radius-large);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-soft);
}

.featured-game:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.games-cta {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-large);
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.games-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: white;
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.btn-large:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  background: var(--accent);
  color: white;
}

.games-count {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

/* ========= Games Page Styles ========= */
.games-hero {
  background: var(--gradient-dark);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.games-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(30, 64, 175, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.games-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--card-bg);
  border-radius: var(--radius-large);
  margin-bottom: 3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.search-box input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.5rem;
  background: var(--bg-2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
  background: var(--bg-1);
}

.search-box i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.filter-tag {
  padding: 0.75rem 1.5rem;
  background: var(--bg-2);
  border: 2px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--gradient-primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(30, 64, 175, 0.3);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.no-games-content {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border-radius: var(--radius-large);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.no-games-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.no-games-content h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ========= Game Cards ========= */
.game-card {
  background: var(--card-bg);
  border-radius: var(--radius-large);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-light);
}

.game-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.game-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.gradient-1 { background: var(--gradient-primary); }
.gradient-2 { background: var(--gradient-accent); }
.gradient-3 { background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); }

.game-content {
  padding: 1.5rem;
}

.game-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.game-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  list-style: none;
}

.tag {
  padding: 0.25rem 0.75rem;
  background: var(--bg-2);
  color: var(--text-tertiary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.game-card .btn {
  width: 100%;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
}

.game-card .btn:hover {
  background: var(--gradient-accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

/* ========= Responsive Design ========= */
@media (max-width: 768px) {
  .games-controls {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .search-box {
    min-width: unset;
  }
  
  .filter-tags {
    justify-content: center;
  }
  
  .featured-games-grid,
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .games-cta {
    padding: 2.5rem 1.5rem;
  }
  
  .btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .games-hero {
    min-height: 50vh;
    padding: 3rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .game-content {
    padding: 1.25rem;
  }
  
  .games-controls {
    padding: 1.25rem;
  }
  
  .filter-tag {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}
