/* Profile Icons Fix - Ensure Proper Colored Display */

/* Research profile buttons - ensure icons maintain their colors */
.research-profile-link img,
.btn img {
  /* Prevent icons from inheriting text color */
  color: initial !important;
  fill: initial !important;
  
  /* Ensure icons are not filtered/inverted */
  filter: none !important;
  
  /* Maintain original colors */
  -webkit-filter: none !important;
  
  /* Ensure proper display */
  display: inline-block !important;
  
  /* Keep size and spacing */
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  
  /* Ensure no opacity issues */
  opacity: 1 !important;
}

/* Footer Academic Icons - Maintain Original Colors */
.footer-academic-icon {
  /* Prevent icons from inheriting any color overrides */
  color: initial !important;
  fill: initial !important;
  
  /* Remove any filters that might change colors */
  filter: none !important;
  -webkit-filter: none !important;
  
  /* Ensure proper display */
  display: inline-block !important;
  
  /* Maintain size and opacity */
  width: 22px !important;
  height: 22px !important;
  opacity: 1 !important;
  
  /* Add subtle hover effect */
  transition: transform 0.2s ease;
}

.footer-academic-icon:hover {
  transform: translateY(-1px);
}

/* Specific fixes for ORCID icon size */
.research-profile-link img[src*="orcid"],
.btn img[src*="orcid"] {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

/* Ensure research profile buttons maintain proper styling */
.research-profile-link {
  color: white !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.research-profile-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white !important;
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
  .research-profile-link img,
  .btn img,
  .footer-academic-icon {
    /* Ensure icons stay colored in dark mode */
    filter: none !important;
    -webkit-filter: none !important;
  }
}

[data-color-scheme="dark"] .research-profile-link img,
[data-color-scheme="dark"] .btn img,
[data-color-scheme="dark"] .footer-academic-icon {
  /* Ensure icons stay colored in manual dark mode */
  filter: none !important;
  -webkit-filter: none !important;
}