/* NinjaView Auth Styles */

/* ========== NAV AUTH CONTAINER ========== */
#nv-auth-container {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

/* ========== USER MENU ========== */
.nv-user-menu {
  position: relative;
}

.nv-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--nv-border, #1e1e2a);
  border-radius: 24px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  color: var(--nv-text, #e4e4e7);
  font-size: 0.8125rem;
  font-family: var(--nv-font, 'Inter', sans-serif);
  transition: background 0.2s, border-color 0.2s;
}

.nv-user-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--nv-accent, #6366f1);
}

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

.nv-user-name {
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== USER DROPDOWN ========== */
.nv-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--nv-bg-card, #111118);
  border: 1px solid var(--nv-border, #1e1e2a);
  border-radius: var(--nv-radius, 12px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 9990;
  overflow: hidden;
}

.nv-user-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nv-user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--nv-border, #1e1e2a);
}

.nv-dd-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nv-dd-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nv-text, #e4e4e7);
  line-height: 1.3;
}

.nv-dd-email {
  font-size: 0.75rem;
  color: var(--nv-text-dim, #52526a);
  line-height: 1.3;
  word-break: break-all;
}

.nv-dd-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--nv-text-muted, #a1a1aa);
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--nv-font, 'Inter', sans-serif);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nv-dd-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--nv-text, #e4e4e7);
}

.nv-sign-out-btn {
  border-top: 1px solid var(--nv-border, #1e1e2a);
  color: #ef4444;
}

.nv-sign-out-btn:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
}

/* ========== MOBILE AUTH ========== */
#nv-auth-mobile {
  padding: 12px 24px;
  border-top: 1px solid var(--nv-border, #1e1e2a);
}

.nv-mobile-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--nv-text, #e4e4e7);
  font-size: 0.875rem;
}

.nv-mobile-user .nv-user-avatar {
  width: 32px;
  height: 32px;
}

.nv-mobile-signout {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: #ef4444;
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: var(--nv-font, 'Inter', sans-serif);
  text-align: center;
  transition: background 0.15s;
}

.nv-mobile-signout:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ========== GOOGLE BUTTON CONTAINER ========== */
#nv-google-btn, #nv-google-btn-mobile {
  display: flex;
  align-items: center;
}

#nv-google-btn-mobile {
  padding: 4px 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  #nv-auth-container {
    display: none;
  }
  .nv-user-name {
    display: none;
  }
}
