/**
 * Auth — Sign-in button + signed-in avatar styles
 *
 * Positioned at top-right of the sport selector screen.
 * Minimal footprint: one button when signed out, avatar + name when signed in.
 */

/* Container: absolute top-right of sport selector */
.auth-container {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

/* Sign-in button: compact pill with Google icon */
.auth-signin-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface-bright);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.auth-signin-btn:hover {
  background: var(--surface);
  border-color: var(--accent);
}

.auth-signin-btn:active {
  background: var(--tap-glow);
}

.auth-google-icon {
  flex-shrink: 0;
}

/* Signed-in state: avatar + name + sign-out X */
.auth-signed-in {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  background: var(--surface-bright);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.auth-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  font-size: 14px;
}

.auth-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-signout-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.auth-signout-btn:hover {
  opacity: 1;
  color: var(--red);
}

/* Make sure the sport-selector has relative positioning for the absolute auth container */
.sport-selector {
  position: relative;
}
