/* Klic.in + SQMTRS Share Widget Glassmorphism Styles */

.klic-share-widget-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 245, 250, 0.9));
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(106, 44, 121, 0.15);
    border-radius: 18px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 10px 30px -5px rgba(106, 44, 121, 0.08);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    transition: all 0.3s ease;
}

.klic-share-widget-card:hover {
    box-shadow: 0 15px 35px -5px rgba(106, 44, 121, 0.15);
    border-color: rgba(106, 44, 121, 0.3);
}

.klic-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.klic-widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #6a2c79;
}

.klic-icon {
    color: #6a2c79;
}

.klic-badge {
    background: rgba(106, 44, 121, 0.1);
    color: #6a2c79;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.klic-url-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.klic-url-input {
    flex: 1;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    outline: none;
    transition: border-color 0.2s;
}

.klic-url-input:focus {
    border-color: #6a2c79;
}

.klic-btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #6a2c79;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.15s, background-color 0.2s;
}

.klic-btn-copy:hover {
    background: #481e52;
    transform: translateY(-1px);
}

.klic-btn-copy:active {
    transform: translateY(0);
}

.klic-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.klic-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.klic-btn-wa {
    background: #25D366;
    color: #ffffff !important;
    border: none;
}

.klic-btn-wa:hover {
    background: #1da851;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.klic-btn-qr {
    background: #ffffff;
    color: #4a5568;
    border: 1.5px solid #e2e8f0;
}

.klic-btn-qr:hover {
    border-color: #6a2c79;
    color: #6a2c79;
    transform: translateY(-1px);
}

.klic-widget-footer {
    text-align: center;
    font-size: 0.78rem;
    color: #718096;
    border-top: 1px dashed rgba(106, 44, 121, 0.12);
    padding-top: 10px;
    margin-top: 6px;
}

.klic-brand-link {
    color: #6a2c79;
    font-weight: 700;
    text-decoration: none;
}

.klic-brand-link:hover {
    text-decoration: underline;
}

/* Modal Overlay & Dialog */
.klic-qr-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.klic-qr-modal-overlay.active {
    display: flex;
}

.klic-qr-modal-body {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: klicModalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes klicModalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.klic-qr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.klic-qr-modal-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #6a2c79;
}

.klic-qr-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #a0aec0;
    cursor: pointer;
}

.klic-qr-close:hover { color: #2d3748; }

.klic-qr-preview {
    padding: 15px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.klic-qr-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 8px;
}

.klic-qr-subtext {
    font-size: 0.8rem;
    color: #718096;
    margin: 10px 0 0 0;
}

.klic-qr-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.klic-btn-download-format {
    flex: 1;
    background: linear-gradient(135deg, #6a2c79 0%, #481e52 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.2s;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(106, 44, 121, 0.2);
}

.klic-btn-download-format:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    box-shadow: 0 6px 12px -2px rgba(106, 44, 121, 0.3);
}

.klic-btn-download-format:active {
    transform: translateY(0);
}
