/* ============================================
   BEVELLA MACRAME - WHATSAPP COMPONENT
   WhatsApp floating button - Pill style
   ============================================ */

/* === FLOATING BUTTON (Pill Style) === */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: var(--z-whatsapp);
}

/* Ana buton - Pill şeklinde */
.whatsapp-float__btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    border: none;
    outline: none;
}

.whatsapp-float__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* WhatsApp icon */
.whatsapp-float__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-float__icon svg {
    width: 32px;
    height: 32px;
    fill: var(--color-white);
}

/* Metin bölümü */
.whatsapp-float__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.whatsapp-float__title {
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--color-white);
    line-height: 1.2;
}

.whatsapp-float__subtitle {
    font-family: var(--font-primary);
    font-size: var(--fs-xs);
    font-weight: var(--fw-regular);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

/* Pulse animasyonu */
.whatsapp-float__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: var(--radius-full);
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* === RESPONSİVE === */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: var(--space-md);
        right: var(--space-md);
    }

    .whatsapp-float__btn {
        padding: var(--space-sm) var(--space-lg);
        gap: var(--space-sm);
    }

    .whatsapp-float__icon {
        width: 30px;
        height: 30px;
    }

    .whatsapp-float__icon svg {
        width: 26px;
        height: 26px;
    }

    .whatsapp-float__title {
        font-size: var(--fs-xs);
    }

    .whatsapp-float__subtitle {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-float__btn {
        padding: var(--space-sm) var(--space-md);
    }

    .whatsapp-float__text {
        display: none;
    }

    .whatsapp-float__icon {
        width: 36px;
        height: 36px;
    }

    .whatsapp-float__icon svg {
        width: 28px;
        height: 28px;
    }
}
