/* HTC Club Games — ortak site stili. Bütün sayfalar bu dosyayı kullanır.
   Renkler :root altında; uygulama bölümleri kendi vurgu rengini --accent ile verir. */

:root {
  --bg: #080c18;
  --bg-2: #0d1326;
  --surface: #121a31;
  --surface-2: #18223f;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eef2fb;
  --muted: #a3adc4;
  --faint: #6f7a94;
  --brand-1: #4f7dff;
  --brand-2: #46e3c4;
  --gold: #f6b84a;
  --accent: var(--brand-1);
  --accent-soft: rgba(79, 125, 255, .14);
  --radius: 22px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --wrap: 1160px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }

/* Dil: <html lang> neyse diğer dilin öğeleri gizlenir. */
html[lang="en"] [data-lang="tr"],
html:not([lang="en"]) [data-lang="en"] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Üst çubuk ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 12, 24, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }
.logo img { width: 34px; height: 34px; border-radius: 10px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.lang button {
  font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); background: none; border: 0; padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
html:not([lang="en"]) .lang [data-set-lang="tr"],
html[lang="en"] .lang [data-set-lang="en"] { background: var(--text); color: var(--bg); }
@media (max-width: 720px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
}

/* ---------- Giriş (hero) ---------- */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 22% 30%, rgba(79, 125, 255, .30), transparent 70%),
    radial-gradient(35% 45% at 80% 25%, rgba(70, 227, 196, .20), transparent 70%),
    radial-gradient(30% 40% at 60% 80%, rgba(246, 184, 74, .10), transparent 70%);
  filter: blur(10px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2);
  background: rgba(70, 227, 196, .08); border: 1px solid rgba(70, 227, 196, .25);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 10px var(--brand-2); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 850; max-width: 15ch; }
.grad {
  background: linear-gradient(100deg, var(--brand-1), var(--brand-2) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 58ch; margin: 22px 0 32px; }
.hero-apps { display: flex; flex-wrap: wrap; gap: 12px; }
.app-chip {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px 18px 10px 10px;
  transition: transform .2s, border-color .2s, background .2s;
}
.app-chip:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--surface-2); }
.app-chip img { width: 44px; height: 44px; border-radius: 12px; }
.app-chip b { display: block; font-size: 1rem; }
.app-chip small { color: var(--muted); font-size: .85rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.hero-art { position: relative; height: 520px; }
.art { position: absolute; width: 232px; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.art > img { width: 100%; height: 100%; object-fit: cover; }
.art.shot { position: absolute; cursor: default; }
.art.shot:hover { transform: rotate(7deg); }
.art-a { left: 0; top: 10px; transform: rotate(-6deg); z-index: 1; }
.art-b { right: 0; top: 90px; transform: rotate(6deg); z-index: 2; }
.art.shot:hover { transform: rotate(6deg); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
}
.stats { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Bölüm başlıkları ---------- */
.section { padding: 64px 0; }
.section-head { margin-bottom: 32px; max-width: 680px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--muted); margin: 12px 0 0; font-size: 1.08rem; }
.kicker { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block; }

/* ---------- Uygulama paneli ---------- */
.app {
  --accent: var(--brand-1);
  --accent-soft: rgba(79, 125, 255, .14);
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 32px;
  background:
    radial-gradient(60% 80% at 0% 0%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  padding: clamp(24px, 4vw, 48px);
  margin-bottom: 32px;
  scroll-margin-top: 84px;
}
.app.namaz { --accent: #46e3c4; --accent-soft: rgba(70, 227, 196, .12); }
.app.sudoku { --accent: #6f97ff; --accent-soft: rgba(79, 125, 255, .18); }
.app-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .app-grid { grid-template-columns: minmax(0, 1fr); } }

.app-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-icon { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8), 0 0 0 1px var(--line); flex: none; }
.app-title h2, .app-title h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; }
.app-title .sub { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.badge {
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted);
}
.badge.hot { color: #1a1206; background: var(--gold); border-color: transparent; }
.badge.ok { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }
.app-desc { color: var(--muted); font-size: 1.04rem; }

.features { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.features li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.features .ic {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.features .ic svg { width: 18px; height: 18px; }
.features b { display: block; font-size: .98rem; }
.features span { color: var(--muted); font-size: .92rem; line-height: 1.45; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.play {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .28); border-radius: 14px;
  padding: 9px 20px 9px 14px; min-height: 58px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.play:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .5); box-shadow: 0 12px 30px -10px var(--accent); }
.play svg { width: 30px; height: 30px; flex: none; }
.play small { display: block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; line-height: 1.1; }
.play b { display: block; font-size: 1.25rem; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; font-size: .95rem; padding: 12px 18px; border-radius: 14px;
  border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03);
  transition: background .2s, border-color .2s;
}
.btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.btn svg { width: 16px; height: 16px; }
.textlinks { margin-top: 16px; font-size: .9rem; color: var(--faint); }
.textlinks a { color: var(--muted); text-underline-offset: 3px; }
.textlinks a:hover { color: var(--text); }

/* ---------- Ekran görüntüsü kartları ---------- */
.gallery { position: relative; min-width: 0; }
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 240px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 6px 4px 22px; margin: 0 -4px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
.shot {
  scroll-snap-align: start; position: relative;
  aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow); cursor: zoom-in; padding: 0; font: inherit; color: inherit; text-align: center;
  transition: transform .25s, border-color .25s;
}
.shot:hover { transform: translateY(-4px); border-color: var(--line-2); }
.shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shot > img { width: 100%; height: 100%; object-fit: cover; }

/* Ham ekran görüntüsünü başlıklı, telefon çerçeveli bir karta çevirir (Namaz Vakti). */
.shot.framed {
  display: flex; flex-direction: column; align-items: center;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(70, 227, 196, .22), transparent 70%),
    linear-gradient(180deg, #13213a, #0b1222);
  padding-top: 22px;
}
.shot.framed .t { display: block; font-size: 1.15rem; font-weight: 800; padding: 0 12px; }
.shot.framed .cap {
  display: inline-block; margin: 6px 0 14px; padding: 2px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; color: #06231d; background: var(--brand-2);
}
.shot.framed .phone {
  width: 78%; flex: 1; border-radius: 22px 22px 0 0; overflow: hidden;
  border: 6px solid #05070d; border-bottom: 0; background: #111827;
  box-shadow: 0 -10px 40px -10px rgba(70, 227, 196, .35);
}
.shot.framed .phone img { width: 100%; height: auto; }

.gal-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: -6px; }
.gal-nav button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center;
}
.gal-nav button:hover { background: var(--surface-2); }
.gal-nav svg { width: 18px; height: 18px; }
.gal-hint { color: var(--faint); font-size: .85rem; margin-right: auto; align-self: center; }

/* ---------- Değerler / kartlar ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(79, 125, 255, .14); color: var(--brand-1); }
.card:nth-child(2) .ic { background: rgba(70, 227, 196, .12); color: var(--brand-2); }
.card:nth-child(3) .ic { background: rgba(246, 184, 74, .13); color: var(--gold); }
.card:nth-child(4) .ic { background: rgba(255, 120, 150, .12); color: #ff8aa5; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- İletişim ---------- */
.contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  border-radius: 28px; padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(120deg, rgba(79, 125, 255, .22), rgba(70, 227, 196, .14));
  border: 1px solid var(--line-2);
}
.contact h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.contact p { color: var(--muted); margin: 8px 0 0; }
.contact .btn { background: var(--text); color: var(--bg); border-color: transparent; }
.contact .btn:hover { background: #fff; }

/* ---------- SSS ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* ---------- Uygulama sayfası üst görseli ---------- */
.cover { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: 8px; }
.cover img { width: 100%; height: auto; }
.crumbs { font-size: .9rem; color: var(--faint); margin: 28px 0 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* ---------- Yasal metin sayfaları ---------- */
.legal { max-width: 800px; padding-top: 32px; padding-bottom: 64px; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 1.2rem; margin: 2.2rem 0 .6rem; }
.legal .meta { color: var(--muted); font-size: .95rem; }
.legal p, .legal li { color: #d4dbea; }
.legal a { color: var(--brand-2); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal .langnav { display: flex; gap: 12px; margin-bottom: 24px; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.legal code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.legal .table { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--line-2); padding: 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface); }

/* ---------- Alt bilgi ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 32px; padding: 36px 0 48px; color: var(--faint); font-size: .9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- Büyük görsel penceresi ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgba(3, 5, 12, .9); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-height: 88vh; max-width: 92vw; width: auto; border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.lightbox .lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(18, 26, 49, .85); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.lightbox .lb-btn svg { width: 20px; height: 20px; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 20px; transform: none; }
  .lightbox .lb-prev { left: calc(50% - 60px); }
  .lightbox .lb-next { right: calc(50% - 60px); }
  .lightbox img { max-height: 78vh; }
}

/* Görünür olunca hafifçe beliren öğeler (JS yoksa hep görünür). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
