/* WP Contact Buttons - Frontend Style */

/* WhatsApp Button */
.btn-whatsapp-pulse {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
}

.btn-whatsapp-pulse i {
    font-size: 32px;
    color: white;
}

.btn-whatsapp-pulse:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-pulse:active {
    transform: scale(0.95);
}

/* Telefon Button */
.btn-tel-pulse {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
}

.btn-tel-pulse i {
    font-size: 28px;
    color: white;
}

.btn-tel-pulse:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(32, 50, 96, 0.4);
}

.btn-tel-pulse:active {
    transform: scale(0.95);
}

/* Pulse Animation */
.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Position Classes */
.wcb-position-bottom-right {
    bottom: 50px;
    right: 20px;
}

.wcb-position-bottom-left {
    bottom: 50px;
    left: 20px;
}

.wcb-position-top-right {
    top: 50px;
    right: 20px;
}

.wcb-position-top-left {
    top: 50px;
    left: 20px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .btn-whatsapp-pulse,
    .btn-tel-pulse {
        width: 60px;
        height: 60px;
    }
    
    .btn-whatsapp-pulse i {
        font-size: 26px;
    }
    
    .btn-tel-pulse i {
        font-size: 22px;
    }
    
    .wcb-position-bottom-right,
    .wcb-position-bottom-left {
        bottom: 20px;
    }
    
    .wcb-position-bottom-right {
        right: 15px;
    }
    
    .wcb-position-bottom-left {
        left: 15px;
    }
    
    .wcb-position-top-right,
    .wcb-position-top-left {
        top: 20px;
    }
    
    .wcb-position-top-right {
        right: 15px;
    }
    
    .wcb-position-top-left {
        left: 15px;
    }
}

/* Accessibility */
.btn-whatsapp-pulse:focus,
.btn-tel-pulse:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Smooth Entry Animation */
.btn-whatsapp-pulse,
.btn-tel-pulse {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* Tooltip */
.wcb-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #111827;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-weight: 500;
}

.wcb-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid #111827;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.btn-whatsapp-pulse:hover .wcb-tooltip,
.btn-tel-pulse:hover .wcb-tooltip {
    opacity: 1;
    right: 75px;
}

/* Tooltip sol pozisyon için */
.wcb-position-bottom-left .wcb-tooltip,
.wcb-position-top-left .wcb-tooltip {
    right: auto;
    left: 70px;
}

.wcb-position-bottom-left .wcb-tooltip::after,
.wcb-position-top-left .wcb-tooltip::after {
    right: auto;
    left: -6px;
    border-left: none;
    border-right: 6px solid #111827;
}

.wcb-position-bottom-left:hover .wcb-tooltip,
.wcb-position-top-left:hover .wcb-tooltip {
    left: 75px;
    right: auto;
}

/* Animasyonlar */

/* Pulse (varsayılan) */
.wcb-animation-pulse {
    animation: wcb-pulse 2s infinite;
}

@keyframes wcb-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Shake */
.wcb-animation-shake {
    animation: wcb-shake 3s infinite;
}

@keyframes wcb-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Bounce */
.wcb-animation-bounce {
    animation: wcb-bounce 2s infinite;
}

@keyframes wcb-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Glow */
.wcb-animation-glow {
    animation: wcb-glow 2s infinite;
}

@keyframes wcb-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6);
    }
}

/* No Animation */
.wcb-animation-none {
    animation: none !important;
}

/* Responsive Tooltip */
@media screen and (max-width: 768px) {
    .wcb-tooltip {
        display: none;
    }
}

/* Animasyon hover durumunda dursun */
.btn-whatsapp-pulse:hover,
.btn-tel-pulse:hover {
    animation-play-state: paused;
}