/* 
   Copyright (c) 2025 BrandViewer. All rights reserved. 
   Share Modal Styling - Premium Colorful Version
*/

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px) saturate(180%);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.share-modal.visible {
    display: flex;
}

.share-modal-content {
    background: linear-gradient(135deg, rgba(25, 25, 35, 0.95) 0%, rgba(15, 15, 20, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 212, 255, 0.15);
    overflow: hidden;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Background decorative glow */
.share-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(136, 0, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.share-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.share-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: rotate(90deg);
}

.share-modal-content h3 {
    margin: 0 0 12px 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 40%, #8e2de2 70%, #ff0055 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

#share-modal-message {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 32px;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.share-qr-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 32px;
    display: inline-block;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.share-qr-container:hover {
    transform: scale(1.02);
}

.share-qr-container img {
    display: block;
    width: 180px;
    height: 180px;
    border-radius: 8px;
}

.share-url-container {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-url-container input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-family: 'Inter', monospace;
    outline: none;
    width: 100%;
}

.share-url-btn {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    color: white;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.share-url-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5);
    background: linear-gradient(135deg, #33dcff 0%, #4b8de8 100%);
}

.share-url-btn:active {
    transform: translateY(0);
}

.share-url-btn.copied {
    background: linear-gradient(135deg, #00f260 0%, #0575e6 100%);
    box-shadow: 0 8px 25px rgba(0, 242, 96, 0.4);
}