/*
 * Styles pour les boutons de partage social
 * Design moderne et professionnel - Junkiro Theme
 */

.junkiro-social-sharing {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-sharing-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e0e0e0;
}

.social-sharing-title i {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
}

.social-sharing-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.social-sharing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 48px;
  height: 48px;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(115, 115, 115, 0.5);
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.social-sharing-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--social-color, #666);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.social-sharing-button i {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.social-sharing-button .social-sharing-label {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
}

.social-sharing-button:hover,
.social-sharing-button:focus {
  border-color: rgba(140, 140, 140, 0.7);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.social-sharing-button:hover::before,
.social-sharing-button:focus::before {
  opacity: 1;
}

.social-sharing-button:hover i,
.social-sharing-button:focus i {
  color: #ffffff;
  transform: scale(1.15) rotate(5deg);
}

.social-sharing-button:hover .social-sharing-label,
.social-sharing-button:focus .social-sharing-label {
  color: #ffffff;
  text-decoration: none;
}

.social-sharing-button:active {
  transform: translateY(-1px) scale(1.02);
  transition: transform 0.1s ease;
}

/* Bouton "More" pour afficher plus de réseaux */
.social-sharing-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(115, 115, 115, 0.5);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-sharing-more-btn i {
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-sharing-more-btn:hover,
.social-sharing-more-btn:focus {
  border-color: rgba(140, 140, 140, 0.7);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.social-sharing-more-btn:hover i,
.social-sharing-more-btn:focus i {
  transform: rotate(90deg) scale(1.15);
  color: #ffffff;
}

.social-sharing-more-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.social-sharing-more-btn.active i {
  transform: rotate(45deg);
}

/* Réseaux secondaires */
.social-sharing-buttons-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Styles spécifiques pour chaque réseau */
.social-sharing-facebook {
  --social-color: #1877f2;
}

.social-sharing-instagram {
  --social-color: #e4405f;
}

.social-sharing-youtube {
  --social-color: #ff0000;
}

.social-sharing-twitter {
  --social-color: #000000;
}

.social-sharing-threads {
  --social-color: #000000;
}

.social-sharing-linkedin {
  --social-color: #0077b5;
}

.social-sharing-whatsapp {
  --social-color: #25d366;
}

.social-sharing-pinterest {
  --social-color: #bd081c;
}

.social-sharing-reddit {
  --social-color: #ff4500;
}

.social-sharing-discord {
  --social-color: #5865f2;
}

.social-sharing-telegram {
  --social-color: #0088cc;
}

.social-sharing-email {
  --social-color: #ea4335;
}

.social-sharing-messenger {
  --social-color: #0084ff;
}

.social-sharing-tumblr {
  --social-color: #36465d;
}

.social-sharing-pocket {
  --social-color: #ef3f56;
}

.social-sharing-flipboard {
  --social-color: #e12828;
}

.social-sharing-vk {
  --social-color: #4680c2;
}

.social-sharing-xing {
  --social-color: #006567;
}

.social-sharing-mix {
  --social-color: #ff8226;
}

.social-sharing-buffer {
  --social-color: #000000;
}

.social-sharing-digg {
  --social-color: #005be2;
}

.social-sharing-line {
  --social-color: #00c300;
}

.social-sharing-weibo {
  --social-color: #e6162d;
}

.social-sharing-qq {
  --social-color: #12b7f5;
}

.social-sharing-odnoklassniki {
  --social-color: #ee8208;
}

.social-sharing-evernote {
  --social-color: #00a82d;
}

.social-sharing-instapaper {
  --social-color: #1f1f1f;
}

.social-sharing-viber {
  --social-color: #665cac;
}

.social-sharing-sms {
  --social-color: #34b73a;
}

.social-sharing-print {
  --social-color: #666;
}

.social-sharing-copy {
  --social-color: #888;
}

/* Message de confirmation pour la copie du lien */
.social-sharing-button.copied {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.social-sharing-button.copied i {
  color: #25d366;
  animation: pulse 0.6s ease;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .junkiro-social-sharing {
    margin: 2rem 0;
    padding: 1.5rem;
  }

  .social-sharing-title {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .social-sharing-buttons,
  .social-sharing-buttons-secondary {
    gap: 0.6rem;
    justify-content: flex-start;
  }

  .social-sharing-button {
    min-width: auto;
    height: 44px;
    padding: 0.65rem 1rem;
    gap: 0.5rem;
    flex: 0 0 auto;
  }

  .social-sharing-button .social-sharing-label {
    font-size: 0.85rem;
  }

  .social-sharing-more-btn {
    min-width: auto;
    height: 44px;
    padding: 0.65rem 1rem;
    flex-shrink: 0;
  }

  .social-sharing-button i,
  .social-sharing-more-btn i {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .junkiro-social-sharing {
    padding: 1rem;
    margin: 1.5rem 0;
  }

  .social-sharing-title {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
  }

  .social-sharing-title i {
    font-size: 1rem;
  }

  .social-sharing-buttons,
  .social-sharing-buttons-secondary {
    gap: 0.4rem;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .social-sharing-button {
    min-width: auto;
    height: 38px;
    padding: 0.5rem 0.75rem;
    gap: 0.4rem;
    flex: 0 0 auto;
    border-radius: 10px;
  }

  .social-sharing-button .social-sharing-label {
    font-size: 0.75rem;
  }

  .social-sharing-more-btn {
    min-width: auto;
    height: 38px;
    padding: 0.5rem 0.75rem;
    flex-shrink: 0;
    border-radius: 10px;
  }

  .social-sharing-button i,
  .social-sharing-more-btn i {
    font-size: 1rem;
  }

  .social-sharing-buttons-secondary {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }
}
