/* Modern Social Icons - Consistent with Portfolio Design */

/* Base Social Icons Container */
.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
  padding: 0;
}

/* Individual Icon Items */
.social-icons li {
  position: relative;
  list-style: none;
}

/* Social Icon Links - Modern Minimal Design */
.social-icons li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(69, 67, 96, 0.1);
  color: #454360;
  font-size: 20px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
              border-color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
              box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              background 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

/* Light theme adjustments */
.social-icons.light li a {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(69, 67, 96, 0.12);
  color: #454360;
}

/* Hover Effects - Elegant & Consistent */
.social-icons li a:hover {
  transform: translateY(-3px);
  border-color: transparent;
  color: white !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Icon animation */
.social-icons li a i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, filter 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.social-icons li a:hover i {
  transform: none;
  filter: brightness(1.2);
}

/* Gradient background effect on hover - removed to use platform colors */
.social-icons li a::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  border-radius: 16px;
}

/* Platform-specific subtle accents - removed */
.social-icons li a::after {
  display: none;
}

/* Platform-specific hover backgrounds */
.social-icons li a[href*="youtube"]:hover {
  background: #FF0000;
  border-color: #FF0000;
}
.social-icons li a[href*="youtube"]:hover::before {
  background: linear-gradient(135deg, #FF0000, #CC0000);
  opacity: 1;
}

.social-icons li a[href*="github"]:hover {
  background: #24292e;
  border-color: #24292e;
}
.social-icons li a[href*="github"]:hover::before {
  background: linear-gradient(135deg, #24292e, #181717);
  opacity: 1;
}

.social-icons li a[href*="linkedin"]:hover {
  background: #0077B5;
  border-color: #0077B5;
}
.social-icons li a[href*="linkedin"]:hover::before {
  background: linear-gradient(135deg, #0077B5, #005885);
  opacity: 1;
}

.social-icons li a[href*="arxiv"]:hover {
  background: #B31B1B;
  border-color: #B31B1B;
}
.social-icons li a[href*="arxiv"]:hover::before {
  background: linear-gradient(135deg, #B31B1B, #8B1515);
  opacity: 1;
}

.social-icons li a[href*="blog"]:hover {
  background: #FF4C60;
  border-color: #FF4C60;
}
.social-icons li a[href*="blog"]:hover::before {
  background: linear-gradient(135deg, #FF4C60, #FF2B45);
  opacity: 1;
}

.social-icons li a[href*="instagram"]:hover {
  background: #E4405F;
  border-color: #E4405F;
}
.social-icons li a[href*="instagram"]:hover::before {
  background: linear-gradient(135deg, #E4405F, #C13584);
  opacity: 1;
}

/* Remove bottom accent bar on hover since we're using full backgrounds */
.social-icons li a:hover::after {
  display: none;
}

/* Smooth entrance animation */
@keyframes socialFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.social-icons li {
  animation: socialFadeIn 0.5s ease forwards;
  opacity: 0;
}

.social-icons li:nth-child(1) { animation-delay: 0.1s; }
.social-icons li:nth-child(2) { animation-delay: 0.2s; }
.social-icons li:nth-child(3) { animation-delay: 0.3s; }
.social-icons li:nth-child(4) { animation-delay: 0.4s; }
.social-icons li:nth-child(5) { animation-delay: 0.5s; }
.social-icons li:nth-child(6) { animation-delay: 0.6s; }

/* Clean focus state */
.social-icons li a:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 76, 97, 0.2);
  border-color: var(--color-primary, #FF4C61);
}

/* Active state */
.social-icons li a:active {
  transform: scale(0.95);
  transition: all 0.1s ease;
}

/* Tooltip styling - removed */
.social-icons li a[data-tooltip]::before {
  display: none;
}

.social-icons li a[data-tooltip]:hover::before {
  display: none;
}

/* Dark mode support */
body.dark .social-icons li a {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

body.dark .social-icons li a:hover {
  border-color: transparent;
  color: white !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .social-icons li a {
    width: 45px;
    height: 45px;
    font-size: 18px;
    border-radius: 14px;
  }
  
  .social-icons {
    gap: 1rem;
  }
  
  .social-icons li a:hover {
    transform: translateY(-3px) scale(1.05);
  }
  
  /* Tooltips already disabled */
}

/* Extra small screens */
@media (max-width: 480px) {
  .social-icons li a {
    width: 42px;
    height: 42px;
    font-size: 16px;
    border-radius: 12px;
  }
  
  .social-icons {
    gap: 0.8rem;
  }
}