/*
 * WhatsApp CTA Button Styles
 * Bu CSS dosyası appointment linklerinin WhatsApp widget açma butonlarına dönüştürülmesi için gerekli stilleri içerir
 */

/* WhatsApp CTA Button - Ana stil */
.whatsapp-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white !important;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.whatsapp-cta-button:before {
    content: "\f232"; /* WhatsApp ikonu (Font Awesome) */
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome";
    margin-right: 8px;
    font-size: 16px;
}

.whatsapp-cta-button:hover {
    background: linear-gradient(135deg, #20ba5a 0%, #0f7a6b 100%);
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
}

/* WhatsApp Widget Link - İçerik içindeki linkler için */
.whatsapp-widget-link {
    color: #25d366 !important;
    text-decoration: underline !important;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.whatsapp-widget-link:hover {
    color: #20ba5a !important;
    text-decoration: none !important;
}

.whatsapp-widget-link:before {
    content: "\f232"; /* WhatsApp ikonu */
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome";
    margin-right: 4px;
    font-size: 12px;
    color: #25d366;
}

/* Kompakt WhatsApp butonu - küçük alanlar için */
.whatsapp-cta-button.compact {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 20px;
}

.whatsapp-cta-button.compact:before {
    font-size: 14px;
    margin-right: 6px;
}

/* Dark mode uyumluluğu */
@media (prefers-color-scheme: dark) {
    .whatsapp-widget-link {
        color: #2adb70 !important;
    }
    
    .whatsapp-widget-link:hover {
        color: #4ee582 !important;
    }
}

/* Mobil uyumluluğu */
@media (max-width: 768px) {
    .whatsapp-cta-button {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    .whatsapp-cta-button:before {
        font-size: 14px;
        margin-right: 6px;
    }
    
    /* Touch friendly hover effects */
    .whatsapp-cta-button:hover {
        transform: none;
    }
    
    .whatsapp-cta-button:active {
        transform: scale(0.98);
    }
}

/* Animasyon efektleri */
@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    }
}

.whatsapp-cta-button.pulse {
    animation: whatsappPulse 2s infinite;
}

/* Accessibility iyileştirmeleri */
.whatsapp-cta-button[aria-pressed="true"],
.whatsapp-cta-button:focus-visible {
    outline: 2px solid #25d366;
    outline-offset: 2px;
}

/* Print media - WhatsApp butonlarını gizle */
@media print {
    .whatsapp-cta-button,
    .whatsapp-widget-link {
        display: none !important;
    }
}

/* High contrast mode desteği */
@media (prefers-contrast: high) {
    .whatsapp-cta-button {
        background: #25d366;
        border: 2px solid #000;
    }
    
    .whatsapp-cta-button:hover {
        background: #20ba5a;
        border-color: #fff;
    }
}

/* Reduced motion desteği */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-cta-button,
    .whatsapp-widget-link {
        transition: none;
    }
    
    .whatsapp-cta-button.pulse {
        animation: none;
    }
    
    .whatsapp-cta-button:hover {
        transform: none;
    }
}