/*
 * user-interface.css
 * 
 * Styles for the Trinkaspace user authentication system
 * Includes login/registration forms, user profile menu, and modals
 */

/* User Display Area */
.trinkaspace-user-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5em 1em;
  border-radius: 8px;
  min-height: 40px;
  font-family: 'Noto Sans', sans-serif;
}

/* User display when logged in */
.user-info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.avatar-frame {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-frame::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  /* Use existing SVG (PNG missing) */
  background-image: url('../../../assets/images/user-graphics/profile-frames/profile-frame.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
  pointer-events: none;
  /* Fallback ring if SVG fails */
  box-shadow: 0 0 0 2px rgba(42,255,247,.35), 0 0 6px -1px rgba(42,255,247,.6);
}

.user-avatar img {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  object-fit: cover;
  background-color: #252535;
  z-index: 1;
  position: relative;
}

.user-name {
  color: #2AFFF7;
  font-weight: 600;
  text-shadow: 0 0 2px rgba(42, 255, 247, 0.7);
}

.user-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  padding: 4px;
  color: #ACABBB;
  transition: transform 0.2s ease;
}

.user-menu-toggle:hover {
  transform: scale(1.1);
}

.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #252535;
  border: 1px solid #2AFFF7;
  border-radius: 8px;
  width: 150px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
  z-index: calc(var(--z-a1-foreground, 1050) + 1);
}

.user-menu a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #ACABBB;
  border-bottom: 1px solid #333344;
  transition: background-color 0.2s ease;
}

.user-menu a:last-child {
  border-bottom: none;
}

.user-menu a:hover {
  background: #333344;
  color: #2AFFF7;
}

/* User identification button */
.register-btn {
  background: #7A8399; /* Pale blue-gray color */
  color: #F0F0F4; /* Lighter text for better contrast */
  border: none;
  border-radius: 6px;
  padding: 8px 15px;
  margin-left: 10px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.2s ease;
}

.register-btn:hover {
  background: #8D98B2; /* Slightly lighter on hover */
  transform: scale(1.05);
}
