/* GradGuru User Profile Dropdown & Navbar Auth Styling */

.gg-user-profile-widget {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.gg-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  color: #ffffff;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (min-width: 640px) {
  .gg-profile-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.1);
  }
}

.gg-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(250, 204, 21, 0.6);
}

.gg-avatar-wrap.lg {
  width: 44px;
  height: 44px;
}

.gg-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gg-avatar-initials {
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  user-select: none;
}

.gg-avatar-wrap.lg .gg-avatar-initials {
  font-size: 1rem;
}

.gg-profile-trigger-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gg-profile-trigger-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f8fafc;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gg-profile-chevron {
  font-size: 0.65rem;
  color: #94a3b8;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dropdown Menu Box */
.gg-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: #1E1F25;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 12px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gg-profile-dropdown.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* User Info Card inside Dropdown */
.gg-dropdown-header {
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gg-dropdown-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.gg-dropdown-user-details {
  min-width: 0;
  flex: 1;
}

.gg-dropdown-fullname {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gg-dropdown-username {
  font-size: 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  padding: 1px 7px;
  border-radius: 9999px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.gg-dropdown-email {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 2px;
}

/* Action Items */
.gg-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px 0;
}

.gg-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
}

@media (min-width: 640px) {
  .gg-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateX(2px);
  }
}

.gg-dropdown-footer {
  padding-top: 8px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gg-dropdown-signout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

@media (min-width: 640px) {
  .gg-dropdown-signout-btn:hover {
    background: rgba(248, 113, 113, 0.2);
    color: #fca5a5;
  }
}

/* Mobile Drawer User Card */
.gg-mobile-user-card {
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-top: 8px;
}

.gg-mobile-signout-btn {
  width: 100%;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
}

@media (min-width: 640px) {
  .gg-mobile-signout-btn:hover {
    background: rgba(248, 113, 113, 0.2);
  }
}
