/* =========================================================
   VORLYTHE STUDIOS - ortak stil dosyasi (tum sayfalar)
   Renkler ve yazi tipleri en ustteki degiskenlerde.
   Oyun sayfalari kendi renklerini assets/css/games/ icinde ezer.
   ========================================================= */

:root {
  --bg: #05070b;
  --bg-2: #090d13;
  --surface: #0d131b;
  --surface-2: #121a24;
  --line: rgba(150, 200, 230, 0.14);
  --text: #e8eef4;
  --text-muted: #98a6b4;
  --accent: #2ee3ff;
  --accent-2: #00b4e0;
  --accent-glow: rgba(46, 227, 255, 0.45);
  --fire: #ff7a2f;
  --fire-2: #ff3d14;
  --gold: #ffc46b;
  --radius: 16px;
  --max: 1180px;
  --header-h: 76px;
  --font-display: "Oxanium", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: #001018; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Ust menu ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(5, 7, 11, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a {
  display: inline-block; padding: 10px 14px; border-radius: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; color: var(--text-muted);
  transition: color .2s ease, background-color .2s ease;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* Menudeki oyun baglantisi: oyunun ates renkleriyle one cikar */
.site-nav a.nav-game {
  margin-left: 8px; color: #fff3e6;
  background: linear-gradient(135deg, rgba(255, 61, 20, .9), rgba(255, 140, 50, .9));
  box-shadow: 0 0 0 1px rgba(255, 180, 110, .35) inset, 0 6px 24px rgba(255, 80, 20, .35);
}
.site-nav a.nav-game:hover { color: #fff; background: linear-gradient(135deg, #ff4a1f, #ff9a45); box-shadow: 0 0 0 1px rgba(255, 210, 150, .5) inset, 0 8px 32px rgba(255, 90, 30, .55); }
.site-nav a[aria-current="page"] { color: var(--text); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); color: var(--text); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle-bar { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(5, 7, 11, 0.97); border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
    display: none;
  }
  .site-header.is-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a { display: block; padding: 14px 16px; }
  .site-nav a.nav-game { margin: 8px 0 0; text-align: center; }
  .brand img { height: 34px; }
}

/* ---------- Dil kutusu (sag ust) ---------- */
.brand { order: 0; }
.site-nav { order: 1; margin-inline-start: auto; }
.lang-switch { order: 2; position: relative; display: none; }
.nav-toggle { order: 3; }
.js .lang-switch { display: block; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.04);
  color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .06em;
  cursor: pointer; transition: border-color .2s ease, background-color .2s ease;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--accent); background: rgba(255, 255, 255, 0.07); }
.lang-btn svg { width: 14px; height: 14px; opacity: .7; transition: transform .2s ease; }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.lang-flag { width: 24px !important; height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); flex-shrink: 0; background-size: cover; }

.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60;
  width: 250px; max-height: min(70vh, 520px); overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: rgba(10, 13, 19, 0.98); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.lang-menu [role="option"] {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--text-muted); cursor: pointer; font-size: .95rem; text-align: start; outline: none;
}
.lang-menu [role="option"]:hover, .lang-menu [role="option"]:focus { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.lang-menu [role="option"][aria-selected="true"] { color: var(--text); background: rgba(46, 227, 255, .1); }
.theme-hellveil .lang-menu { background: rgba(14, 8, 7, 0.98); }
.theme-hellveil .lang-menu [role="option"][aria-selected="true"] { background: rgba(255, 120, 50, .14); }
.theme-hellveil .lang-btn:hover, .theme-hellveil .lang-btn[aria-expanded="true"] { border-color: var(--gold); }

@media (max-width: 860px) {
  .lang-switch { margin-inline-start: auto; }
  .lang-btn { height: 46px; padding: 0 10px; }
}

/* ---------- Sagdan sola diller (Arapca) ---------- */
[dir="rtl"] .featured-cta svg { transform: scaleX(-1); }
[dir="rtl"] .featured-game:hover .featured-cta svg { transform: scaleX(-1) translateX(5px); }
@media (min-width: 861px) { [dir="rtl"] .site-nav a.nav-game { margin-left: 0; margin-right: 8px; } }
[dir="rtl"] .skip-link { left: auto; right: 16px; }
[dir="rtl"] .badge { align-self: flex-start; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #001620; box-shadow: 0 8px 30px var(--accent-glow); }
.btn--primary:hover { box-shadow: 0 10px 40px var(--accent-glow); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn--ghost:hover { border-color: var(--accent); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Bolumler ---------- */
.section { padding: clamp(72px, 11vw, 130px) 0; position: relative; }
.section-head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent);
}
.section-lead { color: var(--text-muted); font-size: 1.1rem; }

/* ---------- Ana sayfa: giris (hero) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 24px) 0 64px;
  overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::before { /* okunabilirlik icin koyu katman */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(5, 7, 11, .15), rgba(5, 7, 11, .7) 70%),
    linear-gradient(180deg, rgba(5, 7, 11, .55) 0%, rgba(5, 7, 11, 0) 25%, rgba(5, 7, 11, 0) 70%, var(--bg) 100%);
}
.hero-particles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(14px, 2.4vh, 26px); }
.hero-logo { margin: 0; width: min(420px, 70vw, 40vh * 1.29); }
.hero-logo img { width: 100%; filter: drop-shadow(0 0 40px rgba(46, 227, 255, .25)); }
.hero-tagline {
  margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1rem, 2.2vw, 1.3rem);
  letter-spacing: .3em; text-transform: uppercase; color: #c9d6e2;
}

/* Ekranin ortasindaki oyun baglantisi */
.featured-game {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: min(480px, 100%); margin-top: clamp(4px, 1.5vh, 16px);
  padding: 22px 26px 20px; border-radius: 20px; text-decoration: none;
  background: linear-gradient(180deg, rgba(30, 10, 6, .78), rgba(12, 5, 4, .85));
  border: 1px solid rgba(255, 120, 50, .35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 20px 60px rgba(0, 0, 0, .55), 0 0 50px rgba(255, 80, 20, .18);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.featured-game::before { /* alttan gelen kor isigi */
  content: ""; position: absolute; inset: auto 10% -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--fire), var(--gold), var(--fire), transparent);
  opacity: .8;
}
.featured-game:hover, .featured-game:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 160, 90, .7);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 26px 70px rgba(0, 0, 0, .6), 0 0 80px rgba(255, 90, 30, .38);
}
.featured-label {
  font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.featured-logo { width: min(380px, 100%); }
.featured-logo img { width: 100%; }
.featured-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffd9b8;
}
.featured-cta svg { width: 18px; height: 18px; transition: transform .25s ease; }
.featured-game:hover .featured-cta svg { transform: translateX(5px); }

.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(232, 238, 244, .35); border-radius: 14px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--accent); animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-height: 700px) { .scroll-hint { display: none; } }

/* ---------- Oyun kartlari ---------- */
.games-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
@media (max-width: 860px) { .games-grid { grid-template-columns: 1fr; } }

.game-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.game-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.game-card-media { display: grid; place-items: center; aspect-ratio: 16 / 8; padding: 28px; position: relative; overflow: hidden; }
.game-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-card-body h3 { margin: 4px 0 0; }
.game-card-body p { color: var(--text-muted); margin: 0; }
.card-cta { margin-top: auto; padding-top: 12px; font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; }

.game-card--hellveil .game-card-media {
  background:
    radial-gradient(ellipse 70% 60% at 50% 60%, rgba(255, 80, 20, .28), transparent 70%),
    linear-gradient(180deg, #1a0a07, #0b0504);
}
.game-card--hellveil .game-card-media img { width: min(460px, 100%); transition: transform .5s ease; }
.game-card--hellveil .card-cta { color: var(--fire); }
.game-card--hellveil:hover { transform: translateY(-4px); border-color: rgba(255, 120, 50, .45); box-shadow: 0 20px 60px rgba(255, 70, 20, .16); }
.game-card--hellveil:hover .game-card-media img { transform: scale(1.04); }

.game-card--soon .game-card-media {
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(46, 227, 255, .12), transparent 70%), var(--bg-2);
}
.game-card--soon .game-card-media img { width: 110px; opacity: .35; filter: grayscale(.4); }

.badge {
  align-self: flex-start; padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-display); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #ffd2ad; background: rgba(255, 110, 40, .14); border: 1px solid rgba(255, 110, 40, .35);
}
.badge--muted { color: var(--accent); background: rgba(46, 227, 255, .08); border-color: rgba(46, 227, 255, .3); }

/* ---------- Hakkimizda ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(46, 227, 255, .08); }
.about-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.about-text p { color: var(--text-muted); }
.pillars { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.pillars li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.pillar-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(46, 227, 255, .1); color: var(--accent); }
.pillar-icon svg { width: 22px; height: 22px; }
.pillars strong { display: block; font-family: var(--font-display); letter-spacing: .04em; }
.pillars span { color: var(--text-muted); font-size: .95rem; }

/* ---------- Iletisim ---------- */
.contact-card {
  text-align: center; padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 60px); border-radius: 24px;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(46, 227, 255, .12), transparent 70%), var(--surface);
  border: 1px solid var(--line);
}
.contact-card p { color: var(--text-muted); max-width: 520px; margin-inline: auto; }
.contact-actions { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 24px; }

.contact-email { margin-top: -10px; color: var(--text-muted); text-decoration: none; font-size: 1.05rem; letter-spacing: .02em; }
.contact-email:hover { color: var(--accent); }

.socials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.socials a {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text-muted);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; }

/* ---------- Alt bilgi ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-2); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--text); }
.copyright { margin: 0; color: var(--text-muted); font-size: .88rem; width: 100%; }

/* ---------- Kaydirinca belirme ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-hint::after { animation: none; }
}
