/* WhatsApp Widget Pro - CSS Styles */

/* Ana Container */
.wwp-widget-container {
    position: fixed;
    z-index: 9999;
    transition: all 0.3s ease;
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Pozisyon Ayarları */
.wwp-widget-container.bottom-right {
    bottom: 20px;
    right: 20px;
}

.wwp-widget-container.bottom-left {
    bottom: 20px;
    left: 20px;
}

.wwp-widget-container.top-right {
    top: 20px;
    right: 20px;
}

.wwp-widget-container.top-left {
    top: 20px;
    left: 20px;
}

/* WhatsApp Butonu */
.wwp-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #25D366, #00ff88, #25D366);
    background-size: 200% 200%;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 20px rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 9999;
    visibility: visible;
    opacity: 1;
    animation: constant-glow 2s ease-in-out infinite alternate, background-shift 3s ease-in-out infinite;
}

@keyframes constant-glow {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 20px rgba(0, 255, 136, 0.3);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.6), 0 0 30px rgba(0, 255, 136, 0.5);
    }
}

@keyframes background-shift {
    0% {
        background: linear-gradient(45deg, #ff0000, #ffff00, #ff69b4);
        background-size: 200% 200%;
    }
    25% {
        background: linear-gradient(45deg, #00ff00, #0000ff, #ffa500);
        background-size: 200% 200%;
    }
    50% {
        background: linear-gradient(45deg, #800080, #4b0082, #c0c0c0);
        background-size: 200% 200%;
    }
    75% {
        background: linear-gradient(45deg, #808080, #696969, #800000);
        background-size: 200% 200%;
    }
    100% {
        background: linear-gradient(45deg, #ff0000, #ffff00, #ff69b4);
        background-size: 200% 200%;
    }
}

.wwp-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.8), 0 0 40px rgba(0, 255, 136, 0.7);
    animation: hover-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes hover-pulse {
    0% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.8), 0 0 40px rgba(0, 255, 136, 0.7);
    }
    100% {
        transform: scale(1.15);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 1), 0 0 50px rgba(0, 255, 136, 0.9);
    }
}

/* Neon Efekt */
.wwp-whatsapp-btn::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #00ff88, #25D366, #00ff88, #25D366);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: neon-rotate 3s linear infinite;
}

.wwp-whatsapp-btn:hover::before {
    opacity: 1;
    animation: neon-glow 1.5s infinite, neon-rotate 2s linear infinite;
}

@keyframes neon-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes neon-glow {
    0%, 100% {
        box-shadow: 0 0 5px #00ff88, 0 0 10px #00ff88, 0 0 15px #00ff88, 0 0 20px #00ff88;
    }
    25% {
        box-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88, 0 0 30px #00ff88, 0 0 40px #00ff88;
    }
    50% {
        box-shadow: 0 0 15px #00ff88, 0 0 25px #00ff88, 0 0 35px #00ff88, 0 0 45px #00ff88;
    }
    75% {
        box-shadow: 0 0 20px #00ff88, 0 0 30px #00ff88, 0 0 40px #00ff88, 0 0 50px #00ff88;
    }
}

/* WhatsApp İkonu */
.wwp-whatsapp-icon {
    width: 30px;
    height: 30px;
    fill: url(#neon-gradient);
    transition: all 0.3s ease;
}

/* SVG Gradient Tanımı */
.wwp-whatsapp-btn svg {
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6)) 
            drop-shadow(0 0 12px rgba(255, 255, 0, 0.4)) 
            drop-shadow(0 0 16px rgba(255, 105, 180, 0.3));
    animation: rainbow-glow 2s ease-in-out infinite alternate;
}

.wwp-whatsapp-btn:hover .wwp-whatsapp-icon {
    transform: rotate(15deg) scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.8)) 
            drop-shadow(0 0 20px rgba(255, 255, 0, 0.6)) 
            drop-shadow(0 0 25px rgba(255, 105, 180, 0.5))
            drop-shadow(0 0 30px rgba(0, 255, 0, 0.4));
    animation: rainbow-glow 0.5s ease-in-out infinite alternate;
}

@keyframes rainbow-glow {
    0% {
        filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6)) 
                drop-shadow(0 0 12px rgba(255, 255, 0, 0.4)) 
                drop-shadow(0 0 16px rgba(255, 105, 180, 0.3));
    }
    25% {
        filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.6)) 
                drop-shadow(0 0 12px rgba(0, 0, 255, 0.4)) 
                drop-shadow(0 0 16px rgba(255, 165, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(128, 0, 128, 0.6)) 
                drop-shadow(0 0 12px rgba(75, 0, 130, 0.4)) 
                drop-shadow(0 0 16px rgba(192, 192, 192, 0.3));
    }
    75% {
        filter: drop-shadow(0 0 8px rgba(128, 128, 128, 0.6)) 
                drop-shadow(0 0 12px rgba(105, 105, 105, 0.4)) 
                drop-shadow(0 0 16px rgba(128, 0, 0, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6)) 
                drop-shadow(0 0 12px rgba(255, 255, 0, 0.4)) 
                drop-shadow(0 0 16px rgba(255, 105, 180, 0.3));
    }
}

/* Tooltip */
.wwp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.wwp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

.wwp-whatsapp-btn:hover .wwp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Animasyonlar */
.wwp-widget-container[data-animation="pulse"] .wwp-whatsapp-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.wwp-widget-container[data-animation="bounce"] .wwp-whatsapp-btn {
    animation: bounce 2s infinite;
}

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

.wwp-widget-container[data-animation="shake"] .wwp-whatsapp-btn {
    animation: shake 2s infinite;
}

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

.wwp-widget-container[data-animation="glow"] .wwp-whatsapp-btn {
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8), 0 0 30px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .wwp-widget-container {
        bottom: 15px !important;
        right: 15px !important;
        left: auto !important;
        top: auto !important;
    }
    
    .wwp-whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    
    .wwp-whatsapp-icon {
        width: 25px;
        height: 25px;
    }
    
    .wwp-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .wwp-whatsapp-btn {
        width: 45px;
        height: 45px;
    }
    
    .wwp-whatsapp-icon {
        width: 22px;
        height: 22px;
    }
}

/* Shortcode Stilleri */
.wwp-shortcode {
    display: inline-block;
    margin: 10px 0;
}

.wwp-shortcode-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.wwp-shortcode-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.wwp-shortcode .wwp-whatsapp-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Boyut Varyasyonları */
.wwp-small .wwp-shortcode-btn {
    padding: 8px 16px;
    font-size: 14px;
}

.wwp-large .wwp-shortcode-btn {
    padding: 16px 24px;
    font-size: 18px;
}

.wwp-large .wwp-whatsapp-icon {
    width: 24px;
    height: 24px;
}

/* Özel Renkler */
.wwp-widget-container[data-icon-color] .wwp-whatsapp-btn {
    background: var(--icon-color, #25D366);
}

.wwp-widget-container[data-neon-color] .wwp-whatsapp-btn::before {
    background: linear-gradient(45deg, var(--neon-color, #00ff88), var(--icon-color, #25D366), var(--neon-color, #00ff88));
}

/* Gizleme Animasyonu - Kaldırıldı */
/* .wwp-widget-container.hide {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
} */

/* Yükleme Animasyonu */
.wwp-widget-container.loading .wwp-whatsapp-btn {
    animation: loading 1s infinite;
}

@keyframes loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Dark Mode Desteği */
@media (prefers-color-scheme: dark) {
    .wwp-tooltip {
        background: rgba(255, 255, 255, 0.9);
        color: #333;
    }
    
    .wwp-tooltip::after {
        border-left-color: rgba(255, 255, 255, 0.9);
    }
}

/* Yüksek Kontrast Desteği */
@media (prefers-contrast: high) {
    .wwp-whatsapp-btn {
        border: 2px solid #000;
    }
    
    .wwp-shortcode-btn {
        border: 2px solid #000;
    }
}

/* Animasyon Tercihi */
@media (prefers-reduced-motion: reduce) {
    .wwp-widget-container[data-animation] .wwp-whatsapp-btn {
        animation: none;
    }
    
    .wwp-whatsapp-btn {
        transition: none;
    }
}
