/* ============================================
   Header User Menu - Example Styles
   ============================================
   Sprite URL (left-menu gibi): CSS'te tek yerde, script ile enjekte edilir.
   <use href="#icon-cuzdan"> şeklinde kullanılır.
   ============================================ */

:root {
  /* Header user menu sprite SVG (CDN) - inject script bu URL'i kullanır */
  --header-user-menu-sprite-url: "https://vendor-provider.fra1.cdn.digitaloceanspaces.com/ebetlab/q4Zg23T8HtKTm07QbTDF3dFpBpLniqTG/statics/riKVI2DK6WHyELKDOB6vxeSE2eiifNqDdvKQs0sB.svg";
  /* İkon rengi: left-menu ile aynı altın gradient script içinde uygulanır (--content-tabs-gold-*) */
  --header-user-menu-bg: #070e2a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f1115;
  color: #e4e6eb;
}

/* Örnek header - menüyü sayfada konumlandırmak için */
.example-header {
  padding: 0.75rem 1.5rem;
  background: #161a21;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.example-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.example-header__logo {
  font-weight: 700;
  font-size: 1.25rem;
}

.example-trigger {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: #e4e6eb;
  cursor: pointer;
  font-size: 0.875rem;
}

.example-main {
  padding: 2rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  color: #9ca3af;
}

/* Wrapper: tetikleyici ile aynı hizada, menü buna göre konumlanır */
.header__user-menu-wrapper {
  position: relative;
  display: inline-block;
}

/* Dropdown menu container */
.dropdown-menu.header__user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  margin: 0;
  margin-top: 4px;
  min-width: 220px;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--header-user-menu-bg, #070e2a);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1050;
}

.dropdown-menu-end.header__user-menu {
  right: 0;
  left: auto;
  transform: none;
}

/* Menu items */
.header__user-menu li {
  margin: 0;
  padding: 0;
  border: none;
}

.header__user-menu li a,
.header__user-menu li button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--header-user-menu-color, #e4e6eb);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.header__user-menu li a:hover,
.header__user-menu li button:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Icons */
.header__user-menu .svg-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}

.header__user-menu .mini-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

/* Chat item - optional highlight */
.header__user-menu .lowbar__btn--chat a {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.25rem;
  padding-top: 0.75rem;
}

/* Logout - optional danger style */
.header__user-menu li:last-child button {
  color: #f87171;
}

.header__user-menu li:last-child button:hover {
  background-color: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}

/* Show state */
.header__user-menu.show {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .dropdown-menu.header__user-menu {
    min-width: 200px;
  }

  .header__user-menu li a,
  .header__user-menu li button {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }
}
