/* ============================================================================
   SOCIAL SIDEBAR v2.0
   Sidebar lateral izquierdo con redes sociales al hacer hover
   Sistema completamente renovado con temas consistentes
   ============================================================================ */

/* === SIDEBAR DE REDES SOCIALES PC === */
#social-slide {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 9997;
  width: 15px;
  height: 130px;
  background: transparent;
}

.social-trigger {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-burgundy), var(--accent-gold));
  cursor: pointer;
  border-radius: 0 10px 10px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 5px 0 20px rgba(0,0,0,0.2);
  z-index: 9998;
}

.social-trigger::before {
  content: '⇥';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1); 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.1); 
  }
}

.social-content {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 1.2rem;
  transform: translateX(-100%) translateY(-50%);
  transition: transform 0.5s cubic-bezier(0.68,-0.55,0.265,1.55);
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: 0 20px 20px 0;
  border: 2px solid var(--border-color);
  border-left: none;
  box-shadow: var(--shadow-xl);
  min-width: 240px;
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 9997;
  pointer-events: all;
}

#social-slide:hover .social-content {
  transform: translateX(0) translateY(-50%);
}

.social-content:hover {
  transform: translateX(0) translateY(-50%) !important;
}

/* Texto "Sígueme en redes" con gradiente */
.social-intro {
  font-size: 0.75rem !important;
  opacity: 1 !important;
  margin-bottom: 0.4rem !important;
  padding-left: 0.5rem;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, var(--accent-burgundy), var(--accent-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-sans);
}

/* BOTONES CON ANIMACIONES */
.follow-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  color: white;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  font-weight: 600;
  animation: socialButtonFloat 3s ease-in-out infinite;
}

/* Animación de flotación suave para cada botón */
@keyframes socialButtonFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
  }
}

/* Diferentes delays para cada red social - efecto escalonado */
.fb-follow-box {
  background: linear-gradient(135deg, #1877f2, #0d5fd9);
  animation-delay: 0s;
}

.ig-follow-box {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
  animation-delay: 0.3s;
}

.follow-x {
  background: linear-gradient(135deg, #000, #333);
  animation-delay: 0.6s;
}

.follow-threads {
  background: linear-gradient(135deg, #000, #444);
  animation-delay: 0.9s;
}

.follow-tumblr {
  background: linear-gradient(135deg, #36465d, #2c3e50);
  animation-delay: 1.2s;
}

.follow-bluesky {
  background: linear-gradient(135deg, #0285ff, #0266c8);
  animation-delay: 1.5s;
}

.follow-twitch {
  background: linear-gradient(135deg, #9146ff, #772ce8);
  animation-delay: 1.8s;
}

.follow-kick {
  background: linear-gradient(135deg, #00e701, #00c400);
  color: #000;
  animation-delay: 2.1s;
}

.follow-kick .follow-text strong,
.follow-kick .follow-text span {
  color: #000;
}

/* Efecto hover mejorado */
.follow-box:hover {
  animation: none;
  transform: translateX(8px) scale(1.04) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Partículas flotantes en los botones */
.follow-box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: particleFloat 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -100%) scale(1);
    opacity: 1;
  }
}

/* Efecto de brillo animado */
.follow-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 60%
  );
  animation: shimmer 4s linear infinite;
  pointer-events: none;
  z-index: 1;
}


  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Asegurar que el texto esté sobre los efectos */
.follow-text,
.follow-btn {
  position: relative;
  z-index: 2;
}

.follow-text {
  flex: 1;
}

.follow-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 1px;
}

/* Animación de palpitación para el número de seguidores */
.follow-text span {
  font-size: 0.75rem;
  opacity: 0.8;
  animation: followersPulse 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes followersPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  }
}

.follow-box:hover .follow-text span {
  animation: followersPulseHover 0.8s ease-in-out infinite;
}

@keyframes followersPulseHover {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* Botón "Seguir" */
.follow-btn {
  background: white;
  padding: 0.4rem 1rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
  white-space: nowrap;
  color: #000;
}

.follow-btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* Ocultar en móviles */
@media (max-width: 768px) {
  #social-slide {
    display: none !important;
  }
}

/* Responsive para tablets */
@media (max-width: 1024px) {
  #social-slide {
    width: 12px;
    height: 140px;
  }
  
  .social-content {
    min-width: 240px;
    padding: 1.2rem;
    gap: 0.8rem;
  }
  
  .follow-box {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
  
  .follow-text strong {
    font-size: 1rem;
  }
  
  .follow-text span {
    font-size: 0.75rem;
  }
  
  .follow-btn {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
  }
  
  .social-intro {
    font-size: 0.8rem !important;
  }
}

/* Accesibilidad - reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .follow-box,
  .follow-text span {
    animation: none !important;
  }
  
  .follow-box::before,
  .follow-box::after {
    animation: none !important;
  }
}