/* Sticky Social Media Buttons */
.sticky-social {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Chatbot pozisyonu için yer bırak */
.sticky-social.has-chatbot {
    bottom: 100px;
    top: auto;
    transform: none;
}

.sticky-social-button {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: visible;
}

.sticky-social-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.sticky-social-button i {
    font-size: 24px;
    color: white;
    transition: transform 0.3s ease;
}

.sticky-social-button:hover i {
    transform: scale(1.1);
}

/* Tooltip */
.sticky-social-tooltip {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    max-width: 200px;
    text-align: center;
    font-weight: 500;
}

.sticky-social-tooltip::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid #1f2937;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.sticky-social-button:hover .sticky-social-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-8px);
}

/* Pulse Animation */
.sticky-social-pulse {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Social Platform Colors */
.sticky-social-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #20b954 100%);
}

.sticky-social-whatsapp:hover {
    background: linear-gradient(135deg, #20b954 0%, #1a9e48 100%);
}

.sticky-social-viber {
    background: linear-gradient(135deg, #7360f2 0%, #6654d4 100%);
}

.sticky-social-viber:hover {
    background: linear-gradient(135deg, #6654d4 0%, #5948b7 100%);
}

.sticky-social-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #0077b3 100%);
}

.sticky-social-telegram:hover {
    background: linear-gradient(135deg, #0077b3 0%, #006699 100%);
}

.sticky-social-messenger {
    background: linear-gradient(135deg, #0084ff 0%, #0073e6 100%);
}

.sticky-social-messenger:hover {
    background: linear-gradient(135deg, #0073e6 0%, #0062cc 100%);
}

.sticky-social-instagram {
    background: linear-gradient(135deg, #e4405f 0%, #c13584 50%, #833ab4 100%);
}

.sticky-social-instagram:hover {
    background: linear-gradient(135deg, #c13584 0%, #a02d6f 50%, #6b2f91 100%);
}

.sticky-social-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
}

.sticky-social-facebook:hover {
    background: linear-gradient(135deg, #166fe5 0%, #1567d8 100%);
}

.sticky-social-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #1a91da 100%);
}

.sticky-social-twitter:hover {
    background: linear-gradient(135deg, #1a91da 0%, #1781c2 100%);
}

.sticky-social-linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #006699 100%);
}

.sticky-social-linkedin:hover {
    background: linear-gradient(135deg, #006699 0%, #005588 100%);
}

.sticky-social-youtube {
    background: linear-gradient(135deg, #ff0000 0%, #e60000 100%);
}

.sticky-social-youtube:hover {
    background: linear-gradient(135deg, #e60000 0%, #cc0000 100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sticky-social {
        right: 16px;
        top: auto;
        bottom: 80px;
        transform: none;
        flex-direction: row;
        gap: 8px;
    }

    .sticky-social-button {
        width: 48px;
        height: 48px;
    }

    .sticky-social-button i {
        font-size: 20px;
    }

    .sticky-social-tooltip {
        display: none;
    }

    .sticky-social-pulse {
        width: 10px;
        height: 10px;
        top: -3px;
        right: -3px;
    }
}

@media (max-width: 480px) {
    .sticky-social {
        right: 12px;
        bottom: 70px;
        gap: 6px;
    }

    .sticky-social-button {
        width: 44px;
        height: 44px;
    }

    .sticky-social-button i {
        font-size: 18px;
    }

    .sticky-social-pulse {
        width: 8px;
        height: 8px;
        top: -2px;
        right: -2px;
    }
}

/* Hide/Show Animation */
.sticky-social-button.hidden {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

.sticky-social-button.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0) translateX(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* Staggered animation for multiple buttons */
.sticky-social .sticky-social-button:nth-child(1) {
    animation-delay: 0.1s;
}

.sticky-social .sticky-social-button:nth-child(2) {
    animation-delay: 0.2s;
}

.sticky-social .sticky-social-button:nth-child(3) {
    animation-delay: 0.3s;
}

.sticky-social .sticky-social-button:nth-child(4) {
    animation-delay: 0.4s;
}

.sticky-social .sticky-social-button:nth-child(5) {
    animation-delay: 0.5s;
}

/* RTL Support */
[dir="rtl"] .sticky-social {
    right: auto;
    left: 24px;
}

[dir="rtl"] .sticky-social-tooltip {
    right: auto;
    left: 64px;
}

[dir="rtl"] .sticky-social-tooltip::after {
    right: auto;
    left: -4px;
    border-left: none;
    border-right: 4px solid #1f2937;
}

[dir="rtl"] .sticky-social-button:hover .sticky-social-tooltip {
    transform: translateY(-50%) translateX(8px);
}

@media (max-width: 768px) {
    [dir="rtl"] .sticky-social {
        right: auto;
        left: 16px;
    }
}

@media (max-width: 480px) {
    [dir="rtl"] .sticky-social {
        right: auto;
        left: 12px;
    }
}
