/**
 * WhatsApp Button Styles
 * Professional WhatsApp appointment button for Dr. Hamza Gemici website
 */

/* Navigation WhatsApp Button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366 0%, #1DA851 100%);
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
    margin-right: 15px;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #1DA851 0%, #128C43 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

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

.whatsapp-icon {
    font-size: 16px;
    line-height: 1;
}

.whatsapp-text {
    white-space: nowrap;
}

/* Floating WhatsApp Button */
.whatsapp-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25D366 0%, #1DA851 100%);
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-floating:hover {
    background: linear-gradient(135deg, #1DA851 0%, #128C43 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    color: white;
    text-decoration: none;
    animation: none;
}

.whatsapp-floating .whatsapp-icon {
    font-size: 20px;
    line-height: 1;
}

.whatsapp-floating .whatsapp-text {
    white-space: nowrap;
    font-size: 14px;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-btn .whatsapp-text {
        display: none;
    }

    .whatsapp-btn {
        padding: 10px 12px;
        margin-right: 10px;
    }

    .whatsapp-floating {
        bottom: 15px;
        right: 15px;
        padding: 12px 16px;
    }

    .whatsapp-floating .whatsapp-text {
        display: none;
    }

    .whatsapp-floating .whatsapp-icon {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .whatsapp-floating {
        bottom: 10px;
        right: 10px;
        padding: 10px 12px;
    }
}

/* Accessibility */
.whatsapp-btn:focus,
.whatsapp-floating:focus {
    outline: 2px solid #25D366;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .whatsapp-btn,
    .whatsapp-floating {
        border: 2px solid #25D366;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-btn,
    .whatsapp-floating {
        transition: none;
        animation: none;
    }

    .whatsapp-floating {
        animation: none;
    }
}