/**
 * Pflugtopia vCard Styles
 */

.pflugtopia-contact-card {
    text-align: center;
    padding: 20px;
}

/* Main Button - consistent with site style */
.pflugtopia-vcard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: #CCB8BE;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
}

.pflugtopia-vcard-btn:hover {
    background: #b8a3a9;
    transform: translateY(-2px);
}

.pflugtopia-vcard-btn:active {
    transform: translateY(0);
}

.pflugtopia-vcard-btn svg {
    width: 20px;
    height: 20px;
}

/* QR Popup - Hidden by default */
.pflugtopia-vcard-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.pflugtopia-vcard-popup.is-open {
    display: flex;
}

.pflugtopia-vcard-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pflugtopia-vcard-popup-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: pflugtopia-popup-in 0.3s ease;
}

@keyframes pflugtopia-popup-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pflugtopia-vcard-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.pflugtopia-vcard-popup-close:hover {
    background: #e0e0e0;
}

.pflugtopia-vcard-popup-close svg {
    width: 18px;
    height: 18px;
    color: #666;
}

/* QR Code wrapper */
.pflugtopia-vcard-qr-wrapper {
    display: inline-block;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
}

/* QR code canvas styling */
#pflugtopia-vcard-qr img,
#pflugtopia-vcard-qr canvas {
    width: 180px !important;
    height: 180px !important;
    display: block;
}

.pflugtopia-vcard-instruction {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 15px;
    color: #666;
}

/* Mobile/Tablet - no popup needed, direct download */
@media (max-width: 1024px) {
    .pflugtopia-vcard-popup {
        display: none !important;
    }
}
