/**
 * Profile Hub Button Styles
 * Matches agencies.html implementation - floating login button in bottom-right corner
 */

/* Profile Hub Container - Positioned Above Support Container */
.profile-hub-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  z-index: 9999;
}

/* Profile Icon with Yellow Glow */
.profile-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #ffee00 0%, #ffd700 100%);
  border: 3px solid #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(255, 238, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: profileGlow 3s ease-in-out infinite;
}

.profile-icon i {
  font-size: 24px;
  color: #000000;
  transition: all 0.3s ease;
}

.profile-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(255, 238, 0, 0.9), 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffd700 0%, #ffee00 100%);
}

.profile-icon:hover i {
  color: #333333;
}

/* Login Status Button - Positioned Beside Profile Icon */
/* Profile Hub Button - Shows Login or Username with Logout */
.profile-hub-btn {
  background: #000000;
  color: #ffee00;
  border: 2px solid #ffee00;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  font-family: 'Arial', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  box-shadow: 0 4px 12px rgba(255, 238, 0, 0.2);
  letter-spacing: 1px;
  white-space: nowrap;
}

.profile-hub-btn:hover {
  background: #ffee00;
  color: #000000;
  border-color: #28a745;
  box-shadow: 0 6px 20px rgba(255, 238, 0, 0.5);
  transform: scale(1.05);
}

/* Logged-in state - green accent */
.profile-hub-btn.logged-in {
  border-color: #28a745;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.profile-hub-btn.logged-in:hover {
  background: #28a745;
  color: #ffffff;
  border-color: #ffee00;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

/* Username and Logout text styling */
.profile-username {
  font-weight: bold;
  margin-right: 6px;
}

.profile-logout {
  font-size: 10px;
  font-weight: normal;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* Glow animation for profile icon */
@keyframes profileGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 238, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 35px rgba(255, 238, 0, 0.9), 0 6px 16px rgba(0, 0, 0, 0.3);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .profile-hub-container {
    bottom: 75px;
    right: 15px;
    gap: 12px;
  }

  .profile-icon {
    width: 45px;
    height: 45px;
  }

  .profile-icon i {
    font-size: 18px;
  }

  .profile-hub-btn {
    padding: 10px 16px;
    font-size: 11px;
  }

  .profile-username {
    font-size: 11px;
  }

  .profile-logout {
    font-size: 9px;
  }
}

/* Ensure proper z-index stacking */
.profile-hub-container {
  z-index: 9999;
}

/* Modal should be above profile hub */
.modal {
  z-index: 10000 !important;
}
