:root {
  color-scheme: light;
  --bg: #f3f6fb; --bg-grad: #dfe9fb; --surface: #ffffff; --surface-2: #f6f8fc;
  --ink: #141b2d; --ink-2: #4a5570; --ink-3: #7a849c; --line: #e1e6f0;
  --acc: #2f5bea; --acc-ink: #ffffff; --acc-soft: #e8eeff;
  --shadow: 0 10px 30px rgba(20, 40, 90, .10);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d111b; --bg-grad: #141b2e; --surface: #161c2b; --surface-2: #1c2335;
    --ink: #e9edf7; --ink-2: #b2bad0; --ink-3: #848ea8; --line: #283149;
    --acc: #6d8cff; --acc-ink: #0b1020; --acc-soft: #1f2a4d; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d111b; --bg-grad: #141b2e; --surface: #161c2b; --surface-2: #1c2335;
  --ink: #e9edf7; --ink-2: #b2bad0; --ink-3: #848ea8; --line: #283149;
  --acc: #6d8cff; --acc-ink: #0b1020; --acc-soft: #1f2a4d; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: linear-gradient(180deg, var(--bg-grad) 0, var(--bg) 460px);
  background-color: var(--bg);
  color: var(--ink); min-height: 100vh; line-height: 1.5;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none;
  font-size: .9rem; cursor: pointer;
}
.chip-btn:hover { color: var(--ink); }
.chip-btn.primary { background: var(--acc); color: var(--acc-ink); border-color: transparent; font-weight: 600; }
select.chip-btn { padding-inline-end: 8px; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px 64px; }

/* Arama (öneri kutusu: searchbox.css) */
.search { max-width: 680px; margin: 34px auto 40px; text-align: center; }
.brand-mark { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; text-decoration: none; color: var(--ink); }
.brand-mark img { width: clamp(40px, 9vw, 52px); height: auto; border-radius: 14px; box-shadow: var(--shadow); }
.brand-mark span { font-size: clamp(2rem, 7vw, 2.9rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.search-box {
  display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); position: relative;
  border-radius: 999px; padding: 6px; box-shadow: var(--shadow); text-align: start;
}
.search-box:focus-within { border-color: var(--acc); box-shadow: var(--shadow), 0 0 0 4px var(--acc-soft); }
.search-box .ico { padding-inline: 12px 2px; color: var(--ink-3); display: flex; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 1.08rem; padding: 12px 8px; min-width: 0; }
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
.search-box button[type="submit"] { border: 0; background: var(--acc); color: var(--acc-ink); border-radius: 999px; padding: 11px 22px; font-weight: 600; cursor: pointer; flex: none; }
.search-tabs { display: flex; gap: 4px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.search-tabs button {
  border: 0; background: transparent; color: var(--ink-3); padding: 6px 14px; border-radius: 99px; cursor: pointer; font-size: .9rem;
}
.search-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.06); font-weight: 600; }

/* Bölüm başlığı */
.sec-h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.sec-h h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0; font-weight: 700; }

.sec-h-lg { align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.sec-h-lg h2 { font-size: 1.35rem; text-transform: none; letter-spacing: -.02em; color: var(--ink); font-weight: 800; }
.sec-sub { margin: 4px 0 0; color: var(--ink-2); font-size: .95rem; }
.sec-h .more { color: var(--acc); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }

/* Zenitab'da neler var: ürün kartları */
.prod { margin-bottom: 40px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.prod-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.prod-card:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.prod-art {
  height: 108px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c) 34%, transparent), transparent 60%),
              linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, var(--surface)), color-mix(in srgb, var(--c) 5%, var(--surface)));
}
.prod-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-ic { font-size: 2.6rem; filter: drop-shadow(0 6px 12px color-mix(in srgb, var(--c) 40%, transparent)); transition: transform .2s; }
.prod-card:hover .prod-ic { transform: scale(1.08) rotate(-4deg); }
.prod-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.prod-badges { display: flex; gap: 5px; flex-wrap: wrap; min-height: 0; }
.prod-badges:empty { display: none; }
.pb { font-size: .66rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.pb.new { background: var(--c); color: #fff; border-color: transparent; }
.pb.soon { background: var(--acc-soft); color: var(--acc); border-color: transparent; }
.prod-name { font-size: 1.08rem; letter-spacing: -.01em; }
.prod-tag { color: var(--c); font-weight: 600; font-size: .86rem; }
.prod-desc { color: var(--ink-2); font-size: .86rem; line-height: 1.45; }
.prod-cta { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: .88rem; color: var(--c); }
.prod-cta .arr { display: inline-block; transition: transform .18s; }
.prod-card:hover .arr { transform: translateX(4px); }
[dir="rtl"] .prod-cta .arr { transform: scaleX(-1); }
[dir="rtl"] .prod-card:hover .arr { transform: scaleX(-1) translateX(4px); }
.prod-card.wide { grid-column: span 2; flex-direction: row; }
.prod-card.wide .prod-art { height: auto; width: 42%; min-height: 190px; flex: none; }
.prod-card.wide .prod-ic { font-size: 3.6rem; }
.prod-card.wide .prod-name { font-size: 1.35rem; }
.prod-card.wide .prod-desc { font-size: .93rem; }
.prod-card.soon { opacity: .72; cursor: default; }
.prod-card.soon:hover { transform: none; box-shadow: none; }

/* Oyunlar */
.games { margin-bottom: 40px; }
.genre-chips { display: flex; gap: 6px; margin: -4px 0 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.genre-chips::-webkit-scrollbar { display: none; }
.genre-chips button {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); padding: 6px 14px; border-radius: 99px;
  font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.genre-chips button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.game-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.game-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.game-card[hidden] { display: none; }
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gm-art { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #1b1240)); }
.gm-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.game-card:hover .gm-art img { transform: scale(1.05); }
.gm-ic { font-size: 3rem; }
.gm-new { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; background: #ffd23f; color: #3b2a00; font-size: .7rem;
  font-weight: 800; padding: 3px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.gm-play { position: absolute; inset-block-end: 10px; inset-inline-end: 10px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.94); color: #1b1240; font-weight: 800; font-size: .8rem; padding: 6px 12px 6px 9px; border-radius: 99px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; }
[dir="rtl"] .gm-play svg { transform: scaleX(-1); }
.game-card:hover .gm-play, .game-card:focus-visible .gm-play { opacity: 1; transform: none; }
@media (hover: none) { .gm-play { opacity: 1; transform: none; } }
.gm-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.gm-body b { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-body small { color: var(--ink-3); font-size: .78rem; }
.gm-desc { color: var(--ink-2); font-size: .8rem; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Kısayollar */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; margin-bottom: 36px; }
.tile {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 8px 12px; text-align: center; text-decoration: none; font-size: .85rem; cursor: pointer;
  transition: transform .15s;
}
.tile:hover { transform: translateY(-2px); }
.tile .av {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto 8px;
  font-weight: 700; color: #fff; background: var(--c, var(--acc)); font-size: 1.2rem;
}
.tile .nm { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.sp { border-style: dashed; }
.tile .sp-tag { position: absolute; inset-block-start: 5px; inset-inline-end: 7px; font-size: .6rem; color: var(--ink-3); }
.tile .rm {
  position: absolute; inset-block-start: 4px; inset-inline-end: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: var(--surface-2); color: var(--ink-3); cursor: pointer; display: none; line-height: 1;
}
.tile:hover .rm { display: block; }
.tile.add { border-style: dashed; color: var(--ink-3); background: transparent; }

/* Bileşenler */
.widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.w { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.w h3 { margin: 0 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.weather { display: flex; align-items: center; gap: 14px; }
.weather .deg { font-size: 2.6rem; font-weight: 300; }
.weather small { color: var(--ink-2); }
.w.game { background: linear-gradient(135deg, #e5487a, #6d5bff); color: #fff; border: 0; }
.w.game h3 { color: rgba(255,255,255,.8); }
.w.game b { font-size: 1.15rem; display: block; }
.w.game p { margin: 6px 0 12px; font-size: .9rem; opacity: .92; }
.w.game a { display: inline-block; background: #fff; color: #5b21b6; padding: 7px 14px; border-radius: 9px; text-decoration: none; font-weight: 700; font-size: .88rem; }
.trend a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .92rem; }
.trend a:last-child { border: 0; }
.trend a:hover { color: var(--acc); }
.w.ad { position: relative; }
.ad-unit { display: flex; gap: 12px; text-decoration: none; align-items: center; }
.ad-unit .art { width: 64px; height: 64px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 1.8rem; background: var(--c); }
.ad-unit b { display: block; line-height: 1.3; }
.ad-unit small { color: var(--ink-2); display: block; margin-top: 2px; }
.ad-unit .url { color: var(--ink-3); font-size: .78rem; }
.ad-cta { display: inline-block; margin-top: 12px; padding: 7px 12px; border-radius: 9px; background: var(--acc-soft); color: var(--acc); font-weight: 600; font-size: .85rem; text-decoration: none; }
.why { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: .75rem; text-decoration: underline; }

.foot { max-width: 980px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; color: var(--ink-3); font-size: .85rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Ayarlar paneli */
.drawer-bg { position: fixed; inset: 0; background: rgba(5, 10, 25, .4); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; width: min(360px, 92vw); background: var(--surface);
  border-inline-start: 1px solid var(--line); padding: 22px; z-index: 41; transform: translateX(105%); transition: transform .25s;
  overflow-y: auto;
}
[dir="rtl"] .drawer { transform: translateX(-105%); }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-bg { opacity: 1; pointer-events: auto; }
.drawer h2 { margin: 0 0 18px; font-size: 1.15rem; }
.field { margin-bottom: 18px; }
.field > label, .field > .lbl { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field select { width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.seg { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { flex: 1; border: 0; background: none; padding: 7px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-size: .88rem; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: .92rem; }
.toggle input { width: 18px; height: 18px; accent-color: var(--acc); }

/* Çerez onayı */
.consent {
  position: fixed; inset-inline: 16px; inset-block-end: 16px; max-width: 760px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap; z-index: 30; font-size: .88rem; color: var(--ink-2);
}
.consent p { margin: 0; flex: 1 1 320px; }
.consent .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.consent[hidden] { display: none; }

dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); max-width: 420px; padding: 20px; }
dialog::backdrop { background: rgba(5, 10, 25, .4); }


@media (max-width: 760px) {
  .prod-card.wide { grid-column: auto; flex-direction: column; }
  .prod-card.wide .prod-art { width: auto; min-height: 0; height: 128px; }
}
@media (max-width: 560px) {
  /* Ürünler ve oyunlar telefonda yana kaydırılır. */
  .prod-grid, .game-row { display: grid; grid-template-columns: none; grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 2px 16px 10px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .prod-grid::-webkit-scrollbar, .game-row::-webkit-scrollbar { display: none; }
  .prod-grid { grid-auto-columns: 78%; }
  .game-row { grid-auto-columns: 46%; gap: 10px; }
  .prod-card, .game-card { scroll-snap-align: start; }
  .sec-h-lg h2 { font-size: 1.18rem; }
  .sec-sub { font-size: .88rem; }
  .search { margin-top: 22px; }
  .search-box { padding: 4px; }
  .search-box input { font-size: 1rem; padding: 11px 6px; }
  .search-box button[type="submit"] { padding: 10px 14px; }
}

/* ---- additions for the production page ---- */
.linkish { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.muted { color: var(--ink-3); }
.pad { padding: 10px 12px; }
.field input, dialog input { width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.row-btns { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 8px; flex-wrap: wrap; }
.city-pick { position: relative; }
.city-list { position: absolute; inset-inline: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 5; display: none; max-height: 240px; overflow-y: auto; }
.city-list.open { display: block; }
.city-list button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; border: 0; background: none; padding: 8px 12px; cursor: pointer; text-align: start; }
.city-list button:hover { background: var(--surface-2); }
.city-list .muted { font-size: .78rem; }
.dlg-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; }
dialog h3 { margin: 0 0 14px; }
.wx-ic { font-size: 2.4rem; }
.av.ghost { background: var(--surface-2) !important; color: var(--ink-3); }
.tile .av img, .ad-unit .art img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.tile .av { overflow: hidden; }
.ad-unit .art { overflow: hidden; }
