/* =====================================================================
   FOREXHANE · oturum açmış müşteri için profil menüsü
   .nav-cta / .legal-top sağ grubunda, .fhp-grup'un (Giriş yap/Kayıt ol) yerini
   alır — ikisi aynı anda görünmez, hangisinin göründüğünü assets/js/profil-menu.js
   belirler (oturum durumu yalnız bu cihazda localStorage'da tutulur, sunucuya
   hiçbir şey gönderilmez). Açılır panel .dil-secici ile aynı aileden: <details>
   tabanlı, aç/kapa + dışarı tıklama + Escape davranışı assets/js/i18n.js'te
   ortak (bkz. _dil/i18n_sablon.js, "details.dil-secici, details.profil-secici").
   ===================================================================== */
.profil-secici { position: relative; flex: none; }

.profil-dugme {
  list-style: none; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border-radius: 999px;
  border: 1px solid var(--line-soft); background: rgba(138, 147, 166, .16);
  cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: border-color .25s, background .25s;
}
.profil-dugme::-webkit-details-marker { display: none; }
.profil-dugme::marker { content: ""; }
.profil-dugme:hover, .profil-secici[open] > .profil-dugme { border-color: rgba(47, 181, 119, .45); }
.profil-dugme:focus-visible { outline: 2px solid var(--emerald-l); outline-offset: 3px; }

.profil-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%; background: var(--gold-grad);
  color: #1a1206; font-family: var(--f-display); font-weight: 800; font-size: 10.5px; letter-spacing: .02em;
}
.profil-avatar.lg { width: 40px; height: 40px; font-size: 15px; }

.profil-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 31; min-width: 224px;
  max-width: calc(100vw - 16px); margin: 0; padding: 6px; border-radius: 10px;
  background: var(--night); border: 1px solid var(--line-soft);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .3), 0 4px 6px -4px rgba(0, 0, 0, .3);
}
.profil-ust { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; min-width: 0; }
.profil-isim { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--text); }
.profil-ayrac { height: 1px; margin: 4px 6px; background: var(--line-soft); }

.profil-satir {
  display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0;
  min-height: 40px; padding: 8px 10px; border: 0; border-radius: 6px; background: none;
  color: var(--text); font-family: var(--f-body); font-size: 14px; font-weight: 500; line-height: 1.3;
  text-align: left; text-decoration: none; cursor: pointer; transition: background .18s, color .18s;
}
.profil-satir:hover, .profil-satir:focus-visible { background: rgba(255, 255, 255, .08); }
.profil-satir:focus-visible { outline: 2px solid var(--emerald-l); outline-offset: -2px; }
.profil-satir .profil-ik { width: 17px; height: 17px; flex: none; color: var(--emerald-l); }
.profil-cikis { color: var(--neg); }
.profil-cikis .profil-ik { color: var(--neg); }
.profil-cikis:hover, .profil-cikis:focus-visible { background: rgba(232, 112, 95, .12); }

[data-theme="light"] .profil-panel { background: #ffffff; border-color: rgba(0, 0, 0, .1); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .35); }
[data-theme="light"] .profil-satir:hover, [data-theme="light"] .profil-satir:focus-visible { background: rgba(0, 0, 0, .05); }
[data-theme="light"] .profil-cikis:hover, [data-theme="light"] .profil-cikis:focus-visible { background: rgba(220, 38, 38, .08); }

@media (max-width: 1100px) {
  .profil-dugme { width: 44px; height: 44px; border-radius: 12px; border-color: var(--line); background: rgba(18, 23, 34, .7); }
  [data-theme="light"] .profil-dugme { background: var(--surface-2, rgba(255, 255, 255, .88)); }
  .profil-satir { min-height: 44px; }
}
@media (max-width: 600px) {
  .legal-top .profil-dugme { height: 38px; width: 38px; }
}
@media (prefers-reduced-motion: reduce) { .profil-dugme, .profil-satir { transition: none; } }
