/**
 * WhatsApp QR Widget Styles
 * Responsive QR code display with mobile-friendly interaction
 */

.whatsapp-qr-widget {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.whatsapp-qr-widget .contact-widget-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.whatsapp-qr-widget .contact-widget-title,
.whatsapp-qr-widget .contact-widget-subtitle {
    color: white;
}

.whatsapp-qr-widget .contact-widget-subtitle {
    opacity: 0.9;
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem;
}

/* QR Code Container */
.qr-code-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.qr-code-link {
    position: relative;
    display: block;
    max-width: 200px;
    width: 100%;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-code-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.qr-code-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Mobile Overlay - Hidden on Desktop */
.qr-mobile-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 211, 102, 0.95);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.qr-mobile-overlay i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Hints */
.qr-code-hint {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 1rem;
    opacity: 0.9;
}

.qr-code-hint i {
    margin-right: 0.25rem;
}

.desktop-hint {
    display: inline;
}

.mobile-hint {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Show mobile overlay on hover/active */
    .qr-code-link:hover .qr-mobile-overlay,
    .qr-code-link:active .qr-mobile-overlay {
        display: flex;
    }

    /* Always show overlay on mobile - make it clear it's clickable */
    .qr-mobile-overlay {
        display: flex;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .qr-code-link:hover .qr-mobile-overlay,
    .qr-code-link:active .qr-mobile-overlay,
    .qr-code-link:focus .qr-mobile-overlay {
        opacity: 1;
    }

    /* Swap hints */
    .desktop-hint {
        display: none;
    }

    .mobile-hint {
        display: inline;
    }

    /* Make QR slightly larger on mobile for easier tap */
    .qr-code-link {
        max-width: 220px;
    }
}

/* Smaller Mobile */
@media (max-width: 480px) {
    .qr-code-link {
        max-width: 180px;
    }

    .qr-mobile-overlay {
        font-size: 1rem;
    }

    .qr-mobile-overlay i {
        font-size: 2.5rem;
    }
}
