/* QR Business Card - Clean Minimalist Design */
.qr-business-card-section {
    margin: 40px 0;
}

.qr-business-card-minimal {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qr-business-card-minimal:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
}

.card-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.card-subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.qr-generator {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-generate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
}

.btn-generate:hover {
    background: #2563eb;
}

.btn-generate:active {
    transform: translateY(1px);
}

.btn-generate svg {
    width: 16px;
    height: 16px;
}

.contact-preview {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.contact-item strong {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.contact-item span {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

.contact-note {
    margin-top: 12px;
}

.contact-note small {
    font-size: 12px;
    color: #9ca3af;
    font-style: normal;
    display: block;
    text-align: center;
}

/* QR Code Display Styles */
#qr-code-display {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#qr-code-display canvas,
#qr-code-display img {
    max-width: 280px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 16px 0;
    background: white;
    padding: 8px;
    transition: all 0.2s ease;
}

#qr-code-display canvas:hover,
#qr-code-display img:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#qr-code-display.generated {
    text-align: center;
}

#qr-code-display.generated .btn-generate {
    background: #10b981;
    color: white;
    pointer-events: none;
    margin-bottom: 16px;
}

#qr-code-display.generated .btn-generate:hover {
    background: #10b981;
}

/* When QR is generated, change layout */
.qr-business-card-minimal.generated .card-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-business-card-minimal.generated .contact-preview {
    order: 2;
    margin-top: 16px;
    background: #f9fafb;
}

.qr-business-card-minimal.generated .qr-generator {
    order: 1;
}

/* Download buttons that appear after QR generation */
.qr-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    order: 3;
}

.download-qr-btn, 
.share-qr-btn, 
.download-vcard-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.download-qr-btn:hover, 
.share-qr-btn:hover, 
.download-vcard-btn:hover {
    background: #e5e7eb;
    color: #111827;
    text-decoration: none;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .qr-business-card-minimal {
        padding: 20px;
        margin: 16px 0;
        border-radius: 8px;
    }
    
    .card-header h3 {
        font-size: 20px;
    }
    
    .card-subtitle {
        font-size: 13px;
    }
    
    .card-body {
        gap: 16px;
    }
    
    .contact-preview {
        padding: 12px;
    }
    
    .btn-generate {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        min-width: auto;
    }
    
    #qr-code-display canvas,
    #qr-code-display img {
        max-width: 240px;
        padding: 6px;
        border-radius: 6px;
    }
    
    .qr-actions {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }
    
    .download-qr-btn, 
    .share-qr-btn, 
    .download-vcard-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .contacts-notice {
        margin-top: 12px;
        padding: 10px;
    }
    
    .tip-text {
        font-size: 11px;
    }
}

/* Integration with site theme */
@media (max-width: 768px) {
    .card-header h3 {
        font-size: 18px;
    }
    
    .card-subtitle {
        font-size: 13px;
    }
}

/* Loading state */
.btn-generate.loading {
    opacity: 0.8;
    pointer-events: none;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.btn-generate.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success state after QR generation */
.btn-generate.success {
    background: #10b981;
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
}

.btn-generate.success::before {
    content: '✓';
    font-weight: bold;
    margin-right: 6px;
    font-size: 16px;
}

/* Error state */
.qr-error {
    color: #dc2626;
    font-size: 13px;
    text-align: center;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    margin: 16px 0;
}

/* Logo CSS */
.qr-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20%;
    height: 20%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-logo-container.loaded {
    opacity: 1;
}

.qr-company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qr-business-card-minimal.generated .logo-preview {
    margin-top: 16px;
    text-align: center;
}

.logo-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 20px;
    color: #10b981;
    background: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.contacts-notice, .contacts-help {
    margin-top: 16px;
    text-align: center;
    background: #f9fafb;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #e5e7eb;
}

.tip-text {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}


