/* İÇERİK KAPISI — Tasarım Token'ları (Faz 1, yumuşak tema revizyonu 14 Eki 2026)
   Kaynak: web/index.html içindeki mevcut marka (koyu zemin + turuncu/cyan vurgu korunur,
   ama neon sertliği yumuşatılmıştır).
   Kural: Bütün yeni sayfalar renk/font için SADECE bu değişkenleri kullanır.
   Not: --bg-surface / --btn-gradient gibi değişkenler gradient değer taşır;
   `background:` içinde kullanılır, `background-color:` içinde KULLANILMAZ. */

:root {
  /* Zemin & yüzey (yumuşak lacivert-siyah, düz siyah değil) */
  --bg-base: #0c1120;
  --bg-surface: linear-gradient(180deg, #151d33 0%, #111829 100%);
  --bg-surface-elevated: #1b2542;
  --bg-header: #0d1322;

  /* Çizgi & vurgu (keskin değil, hafif ışıklı) */
  --border-subtle: #26334f;
  --border-soft: #33436a;
  --border-accent: #3b82f6;

  /* Marka renkleri (yumuşatılmış) */
  --color-orange: #f97316;
  --color-orange-soft: #fb923c;
  --color-orange-glow: rgba(249, 115, 22, 0.28);
  --color-cyan: #38bdf8;
  --color-cyan-glow: rgba(56, 189, 248, 0.22);
  --color-green: #34d399;
  --color-purple: #a855f7;

  /* Hazır gradientler */
  --btn-gradient: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  --head-gradient: linear-gradient(180deg, rgba(56, 189, 248, 0.09), rgba(56, 189, 248, 0) 90%);
  --line-fade: linear-gradient(90deg, var(--color-orange), rgba(249, 115, 22, 0));

  /* Metin (göz yormayan tonlar) */
  --text-primary: #eef2f8;
  --text-secondary: #a9b4c9;
  --text-muted: #7e8ca3;

  /* Fontlar */
  --font-ui: 'Inter', sans-serif;
  --font-heading: 'Chakra Petch', sans-serif;
  --font-brand: 'Rajdhani', sans-serif;

  /* Ölçüler */
  --content-max: 1280px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  /* Gölgeler (yumuşak derinlik) */
  --shadow-panel: 0 14px 34px rgba(2, 6, 18, 0.5);
  --shadow-soft: 0 6px 18px rgba(2, 6, 18, 0.35);
  --shadow-btn: 0 6px 16px rgba(234, 88, 12, 0.35);
}

/* Arka plan görseli: mor oyun evreni (hafif SVG, ek resim indirmez gibi davranır —
   siteyle birlikte yayınlanır, tarayıcıda önbelleğe alınır). Aurara ışıkları + dalgalar + doku. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("../img/forum-bg.svg");
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
}

/* Ortak yuvarlak avatar (IKF.avatarHtml çıktısı): fotoğraf varsa kaplar,
   yüklenemezse alttaki harf görünür. Boyut satır-içi style ile verilir. */
.av {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #3c1f6e, #0e7490);
  color: #fff;
  font-weight: 800;
  flex: none;
  overflow: hidden;
}
.av img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.av span { position: relative; }

/* Çerez onayı (ByNoGame tarzı, mor cam kart): ilk ziyarette altta belirir. */
#ik-cookie { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 900; width: min(560px, calc(100vw - 32px)); }
#ik-cookie .ck-card { background: rgba(24, 16, 46, .96); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 30px rgba(124,58,237,.25); padding: 22px 24px 20px; text-align: center; backdrop-filter: blur(8px); }
#ik-cookie .ck-logo { height: 44px; width: auto; margin-bottom: 10px; }
#ik-cookie .ck-title { color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 8px; }
#ik-cookie .ck-text { color: rgba(233, 213, 255, .82); font-size: 12.5px; line-height: 1.65; margin: 0 0 14px; }
#ik-cookie .ck-text a { color: var(--color-cyan); font-weight: 700; }
#ik-cookie .ck-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
#ik-cookie .ck-ghost { flex: 1 1 160px; padding: 11px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; font-family: var(--font-ui); }
#ik-cookie .ck-ghost:hover { border-color: var(--color-orange-soft); }
#ik-cookie .ck-ok { flex: 1 1 160px; padding: 11px 18px; border: none; border-radius: 14px; background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 6px 18px rgba(234,88,12,.5); color: #fff; font-weight: 800; font-size: 13px; cursor: pointer; font-family: var(--font-ui); }
#ik-cookie .ck-ok:hover { filter: brightness(1.1); }

/* Bildirim zili: sol üstte sabit; kart tıklayınca açılır. */
#ik-bell { position: fixed; top: 14px; left: 14px; z-index: 950; }
#ik-bell .bell-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(24,16,46,.92); box-shadow: 0 8px 22px rgba(0,0,0,.5); font-size: 19px; cursor: pointer; }
#ik-bell .bell-btn:hover { border-color: var(--color-orange-soft); }
#ik-bell .bell-dot { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 12px; background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(239,68,68,.6); }
#ik-bell .bell-card { position: absolute; top: 50px; left: 0; width: min(330px, calc(100vw - 28px)); max-height: min(420px, 70vh); overflow-y: auto; background: rgba(24,16,46,.97); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.6); backdrop-filter: blur(8px); }
#ik-bell .bell-head { padding: 12px 14px 6px; border-bottom: none; color: #fff; font-weight: 800; font-size: 13px; position: sticky; top: 0; background: rgba(24,16,46,.97); }
#ik-bell .bell-push { display: block; width: calc(100% - 28px); margin: 0 14px 10px; padding: 9px 12px; border: none; border-radius: 12px; background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 4px 14px rgba(234,88,12,.45); color: #fff; font-weight: 800; font-size: 12px; cursor: pointer; font-family: var(--font-ui); }
#ik-bell .bell-push:hover { filter: brightness(1.1); }
#ik-bell .bell-push.on { background: rgba(100,116,139,.25); border: 1px solid rgba(255,255,255,.2); box-shadow: none; }
#ik-bell .bell-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.06); color: inherit; }
#ik-bell a.bell-row:hover { background: rgba(251,146,60,.08); text-decoration: none; }
#ik-bell .bell-row.hot { background: rgba(239,68,68,.1); border-left: 3px solid #ef4444; }
#ik-bell .bell-ic { font-size: 16px; flex: none; margin-top: 1px; }
#ik-bell .bell-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#ik-bell .bell-tx b { color: #fff; font-size: 12px; line-height: 1.4; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ik-bell .bell-tx small { color: rgba(233,213,255,.7); font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ik-bell .bell-tx time { color: var(--text-muted); font-size: 10px; }
#ik-bell .bell-empty { padding: 18px 14px; text-align: center; color: var(--text-muted); font-size: 12px; }

/* Tarayıcı bildirimi izin kartı (ByNoGame mantığı, bize özel mor cam tasarım):
   sol üstte; logo + örnek bildirimler + İzin Ver / Şimdi değil. */
#ik-push { position: fixed; top: 64px; left: 14px; z-index: 940; width: min(340px, calc(100vw - 28px)); }
#ik-push.solo { top: 14px; }
#ik-push .push-card { background: rgba(24, 16, 46, .97); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.6), 0 0 26px rgba(124,58,237,.22); padding: 18px 18px 14px; backdrop-filter: blur(8px); }
#ik-push .push-logo { height: 34px; width: auto; margin-bottom: 8px; }
#ik-push .push-title { color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 4px; }
#ik-push .push-sub { color: rgba(233, 213, 255, .75); font-size: 11.5px; line-height: 1.55; margin: 0 0 12px; }
#ik-push .push-sample { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03); margin-bottom: 7px; }
#ik-push .push-ic { width: 30px; height: 30px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 15px; border-radius: 9px; border-left: 3px solid var(--color-orange); background: rgba(249, 115, 22, .12); }
#ik-push .push-tx { min-width: 0; flex: 1; }
#ik-push .push-tx b { display: block; color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ik-push .push-tx small { display: block; color: rgba(233, 213, 255, .65); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ik-push .push-when { color: var(--text-muted); font-size: 10px; white-space: nowrap; }
#ik-push .push-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, .8); }
#ik-push .push-ok { width: 100%; margin-top: 5px; padding: 11px 18px; border: none; border-radius: 13px; background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 6px 18px rgba(234, 88, 12, .5); color: #fff; font-weight: 800; font-size: 13px; cursor: pointer; font-family: var(--font-ui); }
#ik-push .push-ok:hover { filter: brightness(1.1); }
#ik-push .push-later { width: 100%; padding: 8px; border: none; background: none; color: var(--text-secondary); font-size: 12px; cursor: pointer; font-family: var(--font-ui); }
#ik-push .push-later:hover { color: #fff; }
