/* ═══════════════════════════════════════════════════════════════════
   VEGA STAR — skin sayfasi tema uyumu
   vegacs2.com/stil.css ile ayni token'lar ve ayni tasarim dili.
   Bu dosya paket CSS'inden SONRA yuklenir.

   15 Eki 2026 (tema 2): ana site tamamen koyuya gecti; ust bar ve acilir
   paneller de koyu cam oldu. Eski acik bar notlari asagida tarihce olarak
   duruyor. KAYNAK: D:\cs2\site\php\public_html\skin\ (canlidaki tek kopya
   buraya alindi). Degistirince index.html'deki ?v= etiketini de yenile —
   CSS 7 gun onbellekte, Cloudflare da ayni adresi kenarda tutuyor.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --gece: #0A111A;
  --gece-2: #0E1621;
  --gece-3: #1A283B;
  --soluk: #8090A6;
  --murekkep: #E8EEF5;
  --murekkep-2: #A9B7C9;
  --cizgi: #24364C;
  --cizgi-2: #31476A;
  --yuzey: #142030;
  --altin: #F0B23E;
  --altin-2: #FFD480;
  --altin-koyu: #F0B23E;
  --ct: #5E93DC;
  --kes: 14px;
  --kes-s: 8px;
  --d: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  --g: "Barlow", ui-sans-serif, system-ui, sans-serif;
  --m: "JetBrains Mono", ui-monospace, monospace;
}

/* ── GOVDE: uygulamanin kendi koyu zemini (kaplamalar koyu zemine gore cizilmis) */
body { background: #0b1118; color: #e8eef4; font-family: var(--g); }

/* ── UST BAR: ana sitenin .top kurallariyla ayni koyu cam ── */
.app-topbar {
  background: rgba(10, 17, 26, .94);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--cizgi);
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 60;
}

.app-topbar__inner {
  max-width: 1400px;          /* sitede 1240 ama burada fazladan denetim var:
                                 dar birakinca sol grup sag grubun ustune bindi */
  padding: 0 24px;
  min-height: 68px;           /* SABIT degil: sagdaki menuler sigmazsa bar
                                 buyusun, disari TASMASIN (sahada tasti) */
  gap: 22px;
  flex-wrap: nowrap;
}

/* Sag taraf sarmamali: orijinal CSS'te flex-wrap:wrap vardi ve sabit
   yukseklikle birlesince "Setler" ile kullanici menusu barin ustune tasti. */
.app-topbar__right { flex-wrap: nowrap; flex: 0 0 auto; }

/* Sol grup daralabilmeli, yoksa tasip sag grubun USTUNE biner (sahada oldu). */
/* overflow:hidden BILEREK YOK: takim secici ve dil menusu position:absolute
   ile aciliyor, kirpilinca "tikliyorum hicbir sey acilmiyor" oluyordu. */
.app-topbar__left { flex: 1 1 auto; min-width: 0; }
.app-topbar__left > * { flex-shrink: 0; }

/* marka: logo + yazi, tek baglanti */
.app-topbar__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}

.app-topbar__emblem {
  height: 34px;
  width: auto;
  display: block;
}

.app-topbar__brand {
  font-family: var(--d);
  font-weight: 700;
  font-size: 18px;            /* sitedeki .mark b */
  letter-spacing: .06em;
  color: var(--murekkep);
  white-space: nowrap;
}

/* ── ana site menusu (sitedeki .top nav ile ayni) ── */
.vega-nav { display: flex; gap: 4px; margin-left: 18px; }

.vega-nav a {
  position: relative;
  font-family: var(--g);
  font-weight: 600;
  font-size: 15px;
  color: var(--murekkep-2);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 4px;
  transition: color .15s, background-color .15s;
  white-space: nowrap;
}
.vega-nav a:hover { color: var(--murekkep); background: rgba(255, 255, 255, .05); }
/* Bulundugun sayfa: altin alt cizgi, sitedeki .top nav a.secili gibi */
.vega-nav a.secili { color: var(--murekkep); }
.vega-nav a.secili::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--altin);
}

/* Dar ekran: menu GIZLENMEZ (15 Eki 2026'ya kadar 1280px altinda display:none'di ve
   kullanici "skinler sayfasinda navbar yok" dedi). Sol grup sarar, menu logonun altina
   ikinci satir olarak iner ve sigmazsa yana kayar — sagdaki denetimlerin ustune binmez. */
@media (max-width: 1280px) {
  .app-topbar__inner { align-items: flex-start; padding-top: 10px; padding-bottom: 4px; }
  .app-topbar__right { align-self: flex-start; min-height: 48px; }
  .app-topbar__left { flex-wrap: wrap; row-gap: 4px; }
  .app-topbar__left > .vega-nav {
    flex: 1 0 100%; flex-shrink: 1; min-width: 0; margin-left: -12px;
    overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
  }
  .vega-nav::-webkit-scrollbar { display: none; }
  .vega-nav a { padding: 9px 12px; font-size: 14.5px; }
  .vega-nav a.secili::after { left: 12px; right: 12px; }
}
@media (max-width: 520px) {
  .app-topbar__inner { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .app-topbar__brand { font-size: 15px; }
}

/* ust bardaki menuler koyu zemine gore ── */
.app-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.app-topbar .wp-menu-trigger,
.app-topbar .wp-team-trigger,
.app-topbar .wp-loadouts__trigger {
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--cizgi-2);
  color: var(--murekkep);
}
.app-topbar .wp-menu-trigger:hover,
.app-topbar .wp-team-trigger:hover,
.app-topbar .wp-loadouts__trigger:hover { background: rgba(255, 255, 255, .11); }

.app-topbar .wp-user-logout {
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--cizgi-2);
  color: var(--murekkep);
}
.app-topbar .wp-user-logout:hover { background: rgba(255, 255, 255, .11); }

/* ── kose kesikleri: sitenin imza detayi ── */
.wp-menu-trigger,
.wp-team-trigger,
.wp-user-logout,
.wp-loadouts__trigger,
button.wp-btn,
.app-topbar__right button {
  clip-path: polygon(0 0, calc(100% - var(--kes-s)) 0, 100% var(--kes-s),
                     100% 100%, var(--kes-s) 100%, 0 calc(100% - var(--kes-s)));
  border-radius: 0;
}

/* ── dugme tipografisi ── */
.wp-menu-trigger,
.wp-team-trigger,
.wp-user-logout,
.wp-loadouts__trigger {
  font-family: var(--d);
  font-weight: 600;
  letter-spacing: .03em;
  font-size: 13.5px;
}

/* ── acilir paneller: ust bar koyu, paneller de koyu ── */
.app-topbar .wp-menu-panel,
.app-topbar .wp-team-panel,
.app-topbar .wp-sheet__panel,
.app-topbar .wp-loadouts__panel,
.wp-menu-panel,
.wp-team-panel,
.wp-sheet__panel,
.wp-loadouts__panel {
  background: var(--yuzey);
  color: var(--murekkep);
  border: 1px solid var(--cizgi-2);
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.wp-menu-panel, .wp-team-panel, .wp-sheet__panel, .wp-loadouts__panel,
.wp-menu-panel *, .wp-team-panel *, .wp-sheet__panel *, .wp-loadouts__panel * {
  color: var(--murekkep);
}
.wp-loadouts__panel input,
.wp-loadouts__panel select {
  background: var(--gece);
  color: var(--murekkep);
  border: 1px solid var(--cizgi-2);
}
.wp-loadouts__panel .wp-loadouts__hint,
.wp-loadouts__panel .wp-loadouts__empty,
.wp-menu-panel .wp-menu-item__code { color: var(--murekkep-2); }

/* Panel icindeki birincil dugme: sitedeki altin buton */
.wp-loadouts__panel button.is-primary,
.wp-loadouts__panel .wp-loadouts__save {
  background: var(--altin);
  color: #1A1204;
  font-family: var(--d);
  font-weight: 700;
  letter-spacing: .04em;
}

.wp-menu-item:hover,
.wp-team-option:hover { background: rgba(240, 178, 62, .14); }

.wp-menu-item.is-active { background: rgba(240, 178, 62, .22); font-weight: 600; }

/* ── basliklar ── */
h1, h2, h3, .app-weapons__title, .wp-section__title {
  font-family: var(--d);
  letter-spacing: .02em;
}

/* ── sayilar tabular ── */
.wp-user-meta dd, .wp-stat, .wp-count { font-family: var(--m); font-variant-numeric: tabular-nums; }

/* ── alt bilgi: sitedeki alt bilgi tonu ── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--cizgi);
  background: var(--gece);
}
.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--g);
  font-size: 13px;
  color: var(--soluk);
}
.site-footer__home { color: var(--altin); text-decoration: none; font-weight: 700; }
.site-footer__home:hover { color: var(--altin-2); }
.site-footer__sep { color: var(--cizgi-2); }
.site-footer__note { font-family: var(--g); }

/* ── secim halkasi ── */
:focus-visible { outline: 2px solid #94BBF2; outline-offset: 2px; }

/* Giris dugmesindeki simge: dugmenin metin rengini alir. */
.login-btn__icon { flex: 0 0 auto; }

/* ── SITENIN UST BARI (15 Eki 2026) ──
   skin/index.php sayfanin basina sitenin GERCEK ust barini (.top) koyuyor.
   Uygulamanin kendi barindaki logo + site menusu artik tekrar: gizlenir.
   Girisli kullanicinin takim / setler / cikis dugmeleri (__right) ince bir
   arac seridi olarak kalir; giris yokken (__right yok) serit hic gorunmez. */
.vega-skin .app-topbar {
  position: relative; top: auto; z-index: 50;
  background: rgba(14, 22, 33, .9); border-bottom: 1px solid var(--cizgi);
}
.vega-skin .app-topbar__left { display: none; }
.vega-skin .app-topbar__inner { min-height: 52px; padding-top: 6px; padding-bottom: 6px; justify-content: flex-end; }
.vega-skin .app-topbar__right { margin-left: auto; }
.vega-skin .app-topbar:not(:has(.app-topbar__right)) { display: none; }

/* ── PERFORMANS ──
   Skin listesi yuzlerce kart iceriyor; hepsini her karede boyamak takilmaya
   yol aciyordu. content-visibility ile tarayici ekran disindaki kartlari
   cizmiyor, contain-intrinsic-size ise kaydirma cubugunun ziplamasini onluyor. */
.skin-list > *,
.weapons-grid > *,
.addon-modal__grid > * {
  content-visibility: auto;
  contain-intrinsic-size: 150px;
}

img { content-visibility: auto; }

/* ── kaydirma cubugu ── */
* { scrollbar-color: var(--gece-3) var(--gece); }
