/* ========================================
   DRAGON WHEEL THEME - SOCIAL ICONS FLOATING
   ======================================== */

/* ===== SOCIAL ICONS CONTAINER ===== */
.social-icons-floating {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: socialFloatBounce 4s ease-in-out infinite;
}

@keyframes socialFloatBounce {
    0%, 100% { 
        transform: translateY(0px) translateX(0px); 
    }
    15% { 
        transform: translateY(-15px) translateX(5px); 
    }
    30% { 
        transform: translateY(-8px) translateX(-3px); 
    }
    45% { 
        transform: translateY(-18px) translateX(2px); 
    }
    60% { 
        transform: translateY(-5px) translateX(-2px); 
    }
    75% { 
        transform: translateY(-12px) translateX(4px); 
    }
    90% { 
        transform: translateY(-3px) translateX(-1px); 
    }
}

/* ===== INDIVIDUAL SOCIAL ICON ===== */
.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #FFD700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    border: 3px solid #FFD700;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(255, 215, 0, 0.2);
    animation: iconPulseRotate 3s ease-in-out infinite alternate, iconWiggle 2s ease-in-out infinite;
    background: transparent;
}

@keyframes iconWiggle {
    0%, 100% { 
        transform: rotate(0deg) scale(1); 
    }
    10% { 
        transform: rotate(-3deg) scale(1.05); 
    }
    20% { 
        transform: rotate(3deg) scale(1.05); 
    }
    30% { 
        transform: rotate(-2deg) scale(1.03); 
    }
    40% { 
        transform: rotate(2deg) scale(1.03); 
    }
    50% { 
        transform: rotate(0deg) scale(1); 
    }
}

.social-icon:hover {
    animation: iconPulseRotate 3s ease-in-out infinite alternate, iconBounceHover 0.6s ease;
}

@keyframes iconBounceHover {
    0%, 100% { 
        transform: scale(1.3) translateY(-8px) rotate(0deg); 
    }
    25% { 
        transform: scale(1.35) translateY(-12px) rotate(5deg); 
    }
    50% { 
        transform: scale(1.3) translateY(-10px) rotate(-5deg); 
    }
    75% { 
        transform: scale(1.32) translateY(-11px) rotate(3deg); 
    }
}

/* ===== IMAGE INSIDE SOCIAL ICON ===== */
.social-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-icon:hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

@keyframes iconPulseRotate {
    0% { 
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.3),
            inset 0 2px 5px rgba(255, 215, 0, 0.2),
            0 0 15px rgba(255, 215, 0, 0.3);
        filter: brightness(1);
    }
    100% { 
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.4),
            inset 0 2px 5px rgba(255, 215, 0, 0.4),
            0 0 30px rgba(255, 215, 0, 0.6);
        filter: brightness(1.15);
    }
}

/* ===== SOCIAL ICON BACKGROUNDS ===== */

/* WhatsApp */
.social-icon.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 50%, #075E54 100%);
    border-color: #25D366;
    animation-delay: 0s;
}

.social-icon.whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 50%, #40E0D0 100%);
    transform: scale(1.2) translateY(-5px);
    box-shadow: 
        0 12px 30px rgba(37, 211, 102, 0.4),
        inset 0 3px 8px rgba(255, 255, 255, 0.3),
        0 0 35px rgba(37, 211, 102, 0.6);
}

/* Telegram */
.social-icon.telegram {
    background: linear-gradient(135deg, #0088CC 0%, #006A9E 50%, #004D7A 100%);
    border-color: #0088CC;
    animation-delay: 0.3s;
}

.social-icon.telegram:hover {
    background: linear-gradient(135deg, #006A9E 0%, #0088CC 50%, #00BFFF 100%);
    transform: scale(1.2) translateY(-5px);
    box-shadow: 
        0 12px 30px rgba(0, 136, 204, 0.4),
        inset 0 3px 8px rgba(255, 255, 255, 0.3),
        0 0 35px rgba(0, 136, 204, 0.6);
}

/* Instagram */
.social-icon.instagram {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 25%, #833AB4 50%, #5851DB 75%, #405DE6 100%);
    border-color: #E4405F;
    animation-delay: 0.6s;
}

.social-icon.instagram:hover {
    background: linear-gradient(135deg, #405DE6 0%, #5851DB 25%, #833AB4 50%, #C13584 75%, #E4405F 100%);
    transform: scale(1.2) translateY(-5px);
    box-shadow: 
        0 12px 30px rgba(228, 64, 95, 0.4),
        inset 0 3px 8px rgba(255, 255, 255, 0.3),
        0 0 35px rgba(228, 64, 95, 0.6);
}

/* YouTube */
.social-icon.youtube {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 50%, #990000 100%);
    border-color: #FF0000;
    animation-delay: 0.9s;
}

.social-icon.youtube:hover {
    background: linear-gradient(135deg, #CC0000 0%, #FF0000 50%, #FF4444 100%);
    transform: scale(1.2) translateY(-5px);
    box-shadow: 
        0 12px 30px rgba(255, 0, 0, 0.4),
        inset 0 3px 8px rgba(255, 255, 255, 0.3),
        0 0 35px rgba(255, 0, 0, 0.6);
}

/* Facebook */
.social-icon.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #166FE5 50%, #0F5BBD 100%);
    border-color: #1877F2;
    animation-delay: 1.2s;
}

.social-icon.facebook:hover {
    background: linear-gradient(135deg, #0F5BBD 0%, #1877F2 50%, #4285F4 100%);
    transform: scale(1.2) translateY(-5px);
    box-shadow: 
        0 12px 30px rgba(24, 119, 242, 0.4),
        inset 0 3px 8px rgba(255, 255, 255, 0.3),
        0 0 35px rgba(24, 119, 242, 0.6);
}

/* TikTok */
.social-icon.tiktok {
    background: linear-gradient(135deg, #000 0%, #FF0050 50%, #00F2EA 100%);
    border-color: #FF0050;
    animation-delay: 1.5s;
}

.social-icon.tiktok:hover {
    background: linear-gradient(135deg, #FF0050 0%, #00F2EA 50%, #FFFFFF 100%);
    transform: scale(1.2) translateY(-5px);
    color: #000;
    box-shadow: 
        0 12px 30px rgba(255, 0, 80, 0.4),
        inset 0 3px 8px rgba(255, 255, 255, 0.3),
        0 0 35px rgba(255, 0, 80, 0.6);
}

/* ===== ICON GLOW EFFECT ===== */
.social-icon:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    transition: all 0.8s;
    opacity: 0;
}

.social-icon:hover:before {
    opacity: 1;
    animation: iconShimmer 0.8s ease-out;
}

@keyframes iconShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== TOOLTIP FOR SOCIAL ICONS ===== */
.social-icon:after {
    content: attr(data-tooltip);
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #2C1810 0%, #1C1C1C 100%);
    color: #FFD700;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Lilita One', cursive;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 2px solid #FFD700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.social-icon:hover:after {
    opacity: 1;
    visibility: visible;
    left: 75px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .social-icons-floating {
        left: 15px;
        bottom: 15px;
        gap: 12px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .social-icon:after {
        left: 65px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .social-icon:hover:after {
        left: 60px;
    }
}

@media (max-width: 480px) {
    .social-icons-floating {
        left: 10px;
        bottom: 10px;
        gap: 10px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        border-width: 2px;
    }
    
    .social-icon:after {
        display: none; /* Hide tooltips on very small screens */
    }
}

/* ===== ENTRANCE ANIMATION ===== */
.social-icons-floating.animate-in {
    animation: socialEntranceAnimation 1s ease-out;
}

@keyframes socialEntranceAnimation {
    0% {
        transform: translateX(-100%) scale(0);
        opacity: 0;
    }
    60% {
        transform: translateX(10px) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Individual icon entrance delays */
.social-icon:nth-child(1) { animation-delay: 0.1s; }
.social-icon:nth-child(2) { animation-delay: 0.2s; }
.social-icon:nth-child(3) { animation-delay: 0.3s; }
.social-icon:nth-child(4) { animation-delay: 0.4s; }
.social-icon:nth-child(5) { animation-delay: 0.5s; }
.social-icon:nth-child(6) { animation-delay: 0.6s; }

/* ===== HIDE ON SCROLL FEATURE ===== */
.social-icons-floating.hide-on-scroll {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

/* ===== ACCESSIBILITY ===== */
.social-icon:focus {
    outline: 3px solid #FFD700;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .social-icon,
    .social-icons-floating,
    .social-icons-floating:before {
        animation: none;
    }
    
    .social-icon:hover {
        transform: scale(1.1);
    }
}