/* ============================================
   WooCommerce WhatsApp Tracker - Frontend CSS
   ============================================ */

/* WhatsApp Butonu */
.wwt-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    background: #25D366;
    color: #fff !important;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    margin-top: 12px;
    transition: all .25s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(37, 211, 102, 0.35);
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.wwt-whatsapp-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
    opacity: 0;
    transition: opacity .2s;
}

.wwt-whatsapp-btn:hover::before {
    opacity: 1;
}

.wwt-whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    color: #fff !important;
}

.wwt-whatsapp-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

/* İkon */
.wwt-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    animation: wwt-pulse 2s ease infinite;
}

@keyframes wwt-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Loop (ürün listesi) versiyonu */
.wwt-btn-loop {
    padding: 9px 16px;
    font-size: 13px;
    max-width: 100%;
    margin-top: 8px;
}

.wwt-btn-loop .wwt-icon {
    width: 16px;
    height: 16px;
}

/* Tıklama animasyonu */
.wwt-whatsapp-btn.wwt-clicked {
    animation: wwt-click-anim .3s ease;
}

@keyframes wwt-click-anim {
    0%   { transform: scale(1); }
    50%  { transform: scale(.96); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 480px) {
    .wwt-whatsapp-btn {
        padding: 12px 18px;
        font-size: 14px;
    }
}
