/* public/assets/css/account-menu.css
   The ONE account menu (main-site, Bagsy, Gold Picker). Markup: partials/layout/_accountMenu.ejs.
   Needs tokens.css. Anchored on the menu ids so a game site's scoped reset cannot restyle it. */

/* --- Desktop toggle --- */
#user-profile-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  background: transparent;
  border: none;
  color: var(--ff-white);
}

#user-profile-toggle .user-profile-avatar {
  display: block;
  width: 40px;
  height: 40px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  border: 2px solid var(--ff-white);
}

#user-profile-toggle .user-profile-name {
  color: var(--ff-white);
  font-family: var(--ff-font-body);
  font-size: 15px;
  font-weight: 400;
  text-transform: none;
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#user-profile-toggle .dropdown-arrow {
  margin-left: 8px;
  font-size: 12px;
  color: var(--ff-white);
  transition: transform 0.2s ease-in-out;
}

#user-profile-toggle.active .dropdown-arrow { transform: rotate(180deg); }

/* --- Desktop dropdown --- */
#user-dropdown {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background-color: var(--ff-black);
  min-width: 200px;
  box-shadow: var(--ff-shadow-menu);
  z-index: 6000;
  border-radius: 4px;
  padding: 10px 0;
  border: 1px solid var(--ff-white-a10);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#user-dropdown.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

#user-dropdown a {
  color: var(--ff-white);
  padding: 11px 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--ff-font-body);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#user-dropdown a:hover {
  background-color: var(--ff-white-a10);
  color: var(--ff-white);
}

#user-dropdown .dropdown-divider,
#drawer-section-profile .dropdown-divider {
  height: 1px;
  margin: 8px 0;
  overflow: hidden;
  background-color: var(--ff-white-a20);
}

#user-dropdown .dropdown-notif-count,
#drawer-section-profile .dropdown-notif-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--ff-white);
  color: var(--ff-black);
  font-family: var(--ff-font-body);
  font-size: 11px;
  font-weight: 800;
  padding: 0 6px;
}

/* --- Mobile avatar toggle --- */
#mobile-profile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#mobile-profile-toggle:hover { background: var(--ff-white-a10); }
#mobile-profile-toggle:active { transform: translateY(1px); }

#mobile-profile-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ff-white-a20);
}

#mobile-profile-toggle .mobile-profile-avatar {
  display: block;
  width: 34px;
  height: 34px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ff-white);
}

/* --- Mobile drawer, profile mode --- */
#mobile-drawer[data-mode="profile"] {
  background: var(--ff-black);
  border-top: 1px solid var(--ff-white-a10);
}

#mobile-drawer[data-mode="profile"] .mobile-drawer-header {
  border-bottom-color: var(--ff-white-a10);
}

#mobile-drawer[data-mode="profile"] .mobile-drawer-title {
  font-family: var(--ff-font-display);
  font-size: 1.35rem;
  font-weight: normal;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ff-white);
  line-height: 1;
}

#drawer-section-profile .mobile-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 14px;
  border-bottom: 1px solid var(--ff-white-a10);
  margin-bottom: 8px;
}

#drawer-section-profile .mobile-profile-head-avatar {
  display: block;
  width: 44px;
  height: 44px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ff-white);
}

#drawer-section-profile .mobile-profile-head-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#drawer-section-profile .mobile-profile-head-welcome {
  font-family: var(--ff-font-body);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ff-white-a85);
}

#drawer-section-profile .mobile-profile-head-name {
  font-family: var(--ff-font-body);
  font-size: 16px;
  font-weight: 800;
  color: var(--ff-white);
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#drawer-section-profile .mobile-profile-links {
  padding: 6px 0 0;
}

#drawer-section-profile .mobile-profile-links a {
  color: var(--ff-gray-2);
  text-decoration: none;
  font-family: var(--ff-font-body);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#drawer-section-profile .mobile-profile-links a:hover {
  background-color: var(--ff-white-a10);
  color: var(--ff-white);
}
