/* colEGE kabuk: üst çubuğun ortak parçaları (EGE tasarım sistemi; static/ege_tasarim/SOZLESME.md).
   tema.css'ten sonra, sayfa CSS'lerinden önce yüklenir. Renkler yalnız belirteçlerden. */

/* ── Tema düğmesi: tek düğme, Açık → Koyu → Sistem (static/js/kabuk.js) ─────────────────────
   Düğme ŞU ANKİ tercihi gösterir; ikon <html data-theme-pref> ile seçilir (ilk boyamada doğru). */
.tema-dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 32px; height: 32px; padding: 0; flex-shrink: 0;
  background: var(--hover-bg); color: var(--text-h);
  border: 0; border-radius: var(--radius-md);
  font: inherit; cursor: pointer;
  transition: background .15s, color .15s;
}
.tema-dugme:hover { background: var(--s2); color: var(--accent); }
.tema-dugme .ege-ikon { width: 15px; height: 15px; display: none; }
html[data-theme-pref="light"] .tema-dugme .tema-ikon-light,
html[data-theme-pref="dark"] .tema-dugme .tema-ikon-dark,
html[data-theme-pref="system"] .tema-dugme .tema-ikon-system,
html:not([data-theme-pref]) .tema-dugme .tema-ikon-system { display: inline-block; }

/* ── Lucide sprite ikonları (static/js/kabuk.js::ikon / ikonEl) ──────────────────────────────
   Varsayılan 16 px, renk currentColor (ege-tema.css .ege-ikon). Boyut sınıfları: */
.ege-ikon.ikon-12 { width: 12px; height: 12px; }
.ege-ikon.ikon-14 { width: 14px; height: 14px; }
.ege-ikon.ikon-16 { width: 16px; height: 16px; }
.ege-ikon.ikon-18 { width: 18px; height: 18px; }
.ege-ikon.ikon-24 { width: 24px; height: 24px; }
.ege-ikon.renk-ok { color: var(--ok); }
.ege-ikon.renk-err { color: var(--err); }
/* Satır içi metin yanında hafif aşağı otursun */
.badge .ege-ikon, .skor .ege-ikon, .bakim-chip .ege-ikon { vertical-align: -2px; }
/* Eski emoji/glif kutuları: ikon boyutu kabın yazı boyutundan değil buradan */
.sk-icon { display: inline-flex; color: var(--accent); }
.sk-icon .ege-ikon { width: 15px; height: 15px; }
.d-service-icon .ege-ikon { width: 22px; height: 22px; }
.detail-bos-icon .ege-ikon { width: 48px; height: 48px; stroke-width: 1.5; }
.kilit-ikon .ege-ikon { width: 40px; height: 40px; stroke-width: 1.5; }
.ov-icon { color: var(--accent); }
.sz-isaret .ege-ikon { width: 34px; height: 34px; }
.modal-kapat, .param-sil { display: inline-flex; align-items: center; justify-content: center; }

/* ── Üst çubuk (tüm başlıklı şablonlar; mapEGE ile aynı ölçek: 56 px) ─────────────────────────
   Sol: logo + "colEGE" (Outfit 700, --brand-grad) · gezinme. Sağ: [Ayarlar] [Dil (3. aşama)]
   [Hakkında] [Tema] | [Profil menüsü]. Dar ekran düzeni: static/css/mobil.css. */
header {
  background: var(--s1);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 100;
}
.logo-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-wrap img { height: 44px; width: auto; display: block; }
.marka {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  /* line-height 1 değil: gradyan yalnız kutuyu boyar, kuyruklu harfler (g, p) taşmasın */
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.sep { width: 1px; height: 22px; background: var(--border); flex-shrink: 0; }
.spacer { flex: 1; }

/* Gezinme */
.nav { display: flex; gap: 2px; }
header > .nav { flex-wrap: wrap; flex: 0 1 auto; min-width: 0; row-gap: 2px; }
.nav-btn {
  padding: 6px 10px; border-radius: var(--radius-md); border: 1px solid transparent;
  font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.2;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  color: var(--text); background: transparent; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.nav-btn:hover { background: var(--hover-bg); color: var(--text-h); }
.nav-btn.aktif { background: var(--accent-soft); color: var(--accent); }

/* Sistem durumu çipi */
.status-chip {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: rgba(var(--ok-rgb), .08); border: 1px solid rgba(var(--ok-rgb), .2);
  border-radius: 20px; padding: 3px 10px; font-size: 11px; color: var(--ok); white-space: nowrap;
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 8px var(--ok); animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

/* Sağ küme: ikon düğmeleri (Hakkında) — 32 px, tema düğmesiyle aynı ölçü */
.ust-ikon-dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 32px; height: 32px; padding: 0; flex-shrink: 0;
  background: transparent; color: var(--text-dim); border: 0; border-radius: var(--radius-md);
  font: inherit; cursor: pointer; transition: background .15s, color .15s;
}
.ust-ikon-dugme:hover { background: var(--hover-bg); color: var(--text-h); }
.ust-ad { display: none; }
.ust-ayirici { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }

/* Dil seçici (SOZLESME.md "Dil"): lucide languages + <select> "Türkçe"/"English" (sisEGE .ege-dil-secici
   ile aynı görünüm; kenar belirteçle — açık temada da görünür). Etiket metni (.ust-ad) yalnız dar
   ekran menü panelinde görünür. */
.dil-secici {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  color: var(--text-dim);
}
.dil-secici select {
  height: 32px; padding: 0 8px;
  background: var(--s0); color: var(--text-h);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  font: inherit; font-size: 13px; cursor: pointer;
}
.dil-secici select:hover { border-color: var(--accent); }
.dil-secici select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* Profil menüsü (Şifremi değiştir, Giriş geçmişim, Çıkış) */
.profil-menu { position: relative; flex-shrink: 0; }
.profil-dugme {
  display: flex; align-items: center; gap: 8px; padding: 4px 8px;
  background: transparent; border: 0; border-radius: var(--radius-md);
  font: inherit; color: var(--text-h); cursor: pointer; text-align: left;
  transition: background .15s;
}
.profil-dugme:hover, .profil-dugme[aria-expanded="true"] { background: var(--hover-bg); }
.profil-bas-harf {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700;
}
.profil-kimlik { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.profil-kimlik .oturum-ad {
  font-size: 12px; font-weight: 600; line-height: 1.1; color: var(--text-h);
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profil-kimlik .rol-rozet, .profil-kimlik .rol-rozet.operator {
  font-size: 10px; font-weight: 400; line-height: 1.1; color: var(--text);
  background: none; border: 0; padding: 0; text-transform: none; letter-spacing: 0;
}
.profil-ok { color: var(--text-dim); transition: transform .15s; }
.profil-dugme[aria-expanded="true"] .profil-ok { transform: rotate(180deg); }
.profil-menu-liste {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 200; min-width: 190px;
  display: flex; flex-direction: column; padding: 4px;
  background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.profil-menu-liste[hidden] { display: none; }
.profil-menu-oge {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-h); text-decoration: none; white-space: nowrap;
}
.profil-menu-oge .ege-ikon { color: var(--text-dim); }
.profil-menu-oge:hover, .profil-menu-oge:focus-visible { background: var(--hover-bg); }
.profil-menu-oge.cikis, .profil-menu-oge.cikis .ege-ikon { color: var(--err); }
.profil-menu-oge.cikis:hover { background: var(--err-soft); }
.profil-menu-ayirici { height: 1px; margin: 4px 8px; background: var(--border); }

/* Geniş olmayan masaüstünde (≤1500 px) yer kazanmak için durum çipi gizlenir */
@media (max-width: 1500px) { header > .status-chip { display: none; } }

/* ── Hakkında penceresi (static/js/kabuk.js) ─────────────────────────────────────────────── */
.kabuk-perde {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: var(--overlay); backdrop-filter: blur(4px); padding: 16px;
}
.kabuk-perde[hidden] { display: none; }
.kabuk-pencere {
  width: 100%; max-width: 340px; padding: 20px 22px; border-radius: var(--radius-lg);
  background: var(--s1); border: 1px solid var(--border); box-shadow: var(--shadow-lg); color: var(--text);
}
.kabuk-pencere-bas { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kabuk-pencere-bas h2 { font-size: 14px; font-weight: 600; color: var(--text-h); }
.kabuk-kapat {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  background: transparent; border: 0; border-radius: var(--radius-md); color: var(--text-dim); cursor: pointer;
}
.kabuk-kapat:hover { background: var(--hover-bg); color: var(--text-h); }
.hakkinda-urun { font-size: 18px; font-weight: 700; }
.hakkinda-urun .marka { font-size: 20px; }
.hakkinda-aciklama { font-size: 12.5px; margin-top: 4px; }
.hakkinda-ayirici { height: 1px; margin: 12px 0; background: var(--border); }
.hakkinda-satir { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 3px 0; }
.hakkinda-satir > span:first-child { color: var(--text-dim); }
.hakkinda-satir > span:last-child { color: var(--text-h); font-weight: 500; text-align: right; overflow-wrap: anywhere; }

/* ── Parola göster/gizle (static/js/parola_goster.js; Bigventus ortak ikon seti) ─────────────
   Her <input type="password"> span.parola-sarmal içine alınır; düğme sağda, 44×44 tıklama alanı.
   Girdinin genişlik sınırı (max-width vb.) sarmala taşınır; girdi sarmalı doldurur. */
.parola-sarmal { position: relative; display: block; width: 100%; min-width: 0; }
.parola-sarmal > input.parola-girdi { width: 100%; max-width: none; min-width: 0; padding-right: 48px; box-sizing: border-box; }
.parola-goster {
  position: absolute; top: 50%; right: 2px; transform: translateY(-50%);
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; margin: 0;
  display: inline-grid; place-items: center;
  background: transparent; border: 0; border-radius: 8px;
  color: var(--muted); cursor: pointer; transition: color .15s;
}
.parola-goster:hover { color: var(--text-h); }
.parola-goster:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; color: var(--text-h); }
.parola-goster:disabled { cursor: default; opacity: .5; }
/* Ortak ikon dolgulu çizimdir: .ege-ikon'un lucide çizgi (stroke) ayarı uygulanmaz. */
.ege-ikon.parola-ikon { width: 24px; height: 24px; display: block; flex: none; stroke: none; pointer-events: none; }
.parola-goster.satir-ici { position: static; transform: none; display: inline-grid; vertical-align: middle; }

/* ── Geçici destek hesabı uyarı şeridi (kabuk.js; her sayfanın en üstünde, kalıcı) ── */
.destek-seridi {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 20px; font-size: 12.5px; font-weight: 600;
  background: rgba(var(--red-rgb), .14); color: var(--red);
  border-bottom: 1px solid rgba(var(--red-rgb), .3);
  position: relative; z-index: 950;
}
.destek-seridi-metin { flex: 1 1 auto; min-width: 0; }
.destek-seridi-kapat {
  min-height: 32px; padding: 4px 14px; border-radius: 8px; cursor: pointer; font: inherit;
  background: rgba(var(--red-rgb), .1); color: var(--red); border: 1px solid rgba(var(--red-rgb), .3);
}
.destek-seridi-kapat:disabled { opacity: .6; cursor: default; }
.destek-seridi-kapat:focus-visible { outline: 2px solid var(--text-h); outline-offset: 2px; }

/* ── Destek penceresi (static/js/destek.js) ── */
.destek-bolum { padding: 4px 0 14px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.destek-bolum:last-child { border-bottom: none; margin-bottom: 0; }
.destek-bolum h4 { margin: 0 0 6px; font-size: 13.5px; }
.destek-etiket { display: block; margin: 10px 0 4px; font-size: 12px; color: var(--muted); }
.destek-bolum .input { width: 100%; box-sizing: border-box; }
.destek-aciklama, .destek-ozet-metni { resize: vertical; font-family: inherit; }
.destek-ozet-metni { margin-top: 10px; font-family: var(--mono, monospace); font-size: 12px; }
.destek-dugmeler { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.destek-not { font-size: 12px; color: var(--muted); margin: 6px 0; }
.destek-uyari { font-size: 12.5px; color: var(--yellow); margin: 8px 0; font-weight: 600; }
.destek-hata { font-size: 12.5px; color: var(--red); margin: 8px 0; }
.destek-onay { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin: 6px 0; min-height: 32px; }
.destek-satir { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 12.5px;
  border-bottom: 1px solid var(--border); }
.destek-satir span:first-child { color: var(--muted); }
.destek-parola { padding: 10px; border: 1px solid var(--b2); border-radius: 8px; margin-bottom: 12px; }
.destek-gecmis { margin-top: 12px; font-size: 12px; }
.destek-gecmis summary { cursor: pointer; color: var(--muted); }
@media (max-width: 640px) {
  .destek-seridi { padding: 8px 12px; }
  .destek-seridi-kapat { min-height: 44px; }
}
