:root {
  --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"]) {
    --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"] {
  --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); }

/* Üst çubuk */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; text-decoration: none; }
.logo span { color: var(--acc); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.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; }

/* Selamlama + saat */
.hello { text-align: center; margin-top: 28px; }
.hello .clock { font-size: clamp(3rem, 10vw, 5rem); font-weight: 250; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.hello .greet { color: var(--ink-2); margin-top: 8px; }

/* Arama */
.search { max-width: 680px; margin: 28px auto 36px; position: relative; }
.search-tabs { display: flex; gap: 4px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }
.search-tabs button {
  border: 0; background: transparent; color: var(--ink-3); padding: 6px 12px; 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; }
.search-box {
  display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px; box-shadow: var(--shadow);
}
.search-box:focus-within { border-color: var(--acc); }
.search-box .ico { padding-inline: 14px 4px; color: var(--ink-3); }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 1.08rem; padding: 12px 8px; min-width: 0; }
.search-box button { border: 0; background: var(--acc); color: var(--acc-ink); border-radius: 999px; padding: 11px 22px; font-weight: 600; cursor: pointer; }
.suggest {
  position: absolute; inset-inline: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 6px; z-index: 20; display: none;
}
.suggest.open { display: block; }
.suggest a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; text-decoration: none; }
.suggest a:hover, .suggest a.active { background: var(--surface-2); }
.suggest .sp-tag { margin-inline-start: auto; font-size: .7rem; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.suggest .sp-url { color: var(--ink-3); font-size: .82rem; }

/* 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; }

/* Ekosistem */
.eco { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 36px; }
.eco a {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  text-decoration: none; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.eco a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.eco a::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--c); }
.eco .ic { font-size: 1.5rem; }
.eco b { display: block; margin-top: 6px; }
.eco p { margin: 2px 0 0; font-size: .82rem; color: var(--ink-2); }
.eco .badges { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.badge { font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.eco a.soon { opacity: .65; }

/* 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: 560px) {
  .topbar { padding: 12px 16px; }
  .top-actions .hide-sm { display: none; }
  .search-box button { padding: 11px 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; }
.suggest .sp-row img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.eco a[aria-disabled="true"] { cursor: default; }
.eco a[aria-disabled="true"]:hover { transform: none; box-shadow: none; }
