﻿/* QR Modal Styles - Modüler */

.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

    .qr-modal.show {
        display: flex;
    }

.qr-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.qr-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1;
}

    .qr-modal-close:hover {
        background: #e2e8f0;
        color: #0f172a;
        transform: rotate(90deg);
    }

#qrCodeContainer {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    min-height: 200px;
    align-items: center;
}

#qrLoading {
    display: none;
    flex-direction: column;
    align-items: center;
    color: #64748b;
}

    #qrLoading i {
        font-size: 24px;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#qrCodeImage {
    display: none;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#qrError {
    display: none;
    flex-direction: column;
    align-items: center;
    color: #ef4444;
    text-align: center;
}

    #qrError i {
        font-size: 24px;
        margin-bottom: 8px;
    }

.btn-share-whatsapp,
.btn-copy-link,
.btn-share-page {
    width: 100%;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-share-whatsapp {
    background: #25D366;
    color: white;
}

    .btn-share-whatsapp:hover {
        background: #20ba5a;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    }

.btn-copy-link {
    background: #f1f5f9;
    color: #1e293b;
}

    .btn-copy-link:hover {
        background: #e2e8f0;
        transform: translateY(-1px);
    }

.btn-share-page {
    background: #3b82f6;
    color: white;
}

    .btn-share-page:hover {
        background: #2563eb;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

#copySuccessMessage {
    display: none;
    margin-top: 12px;
    padding: 8px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* QR Buton Stili */
.btn-qr-olustur {
    background: #10b981 !important;
    color: white !important;
}

    .btn-qr-olustur:hover {
        background: #059669 !important;
        transform: translateY(-1px);
    }

/* Responsive */
@media (max-width: 480px) {
    .qr-modal-content {
        padding: 20px;
        max-width: 95%;
    }

    #qrCodeContainer {
        min-height: 180px;
        padding: 12px;
    }

    .btn-share-whatsapp,
    .btn-copy-link,
    .btn-share-page {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}
