/**
 * Modal de partage - Style GoFundMe
 */

/* ==================== MODAL DE PARTAGE ==================== */

.ifa-share-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 540px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    z-index: 10001;
    animation: ifaModalSlideIn 0.3s ease-out;
}

@keyframes ifaModalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.ifa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    animation: ifaFadeIn 0.3s ease-out;
}

@keyframes ifaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ifa-share-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e4e4e4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #7E3281 0%, #5D2461 100%);
    color: white;
}

.ifa-share-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.ifa-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: white;
}

.ifa-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.ifa-modal-close svg {
    width: 20px;
    height: 20px;
}

.ifa-share-modal-body {
    padding: 28px 24px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.ifa-share-description {
    margin: 0 0 24px 0;
    color: #5f5f5f;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.ifa-share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.ifa-share-btn-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    border: 2px solid #e4e4e4;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #2d2d2d;
}

.ifa-share-btn-modal:hover {
    border-color: #7E3281;
    background: rgba(126, 50, 129, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ifa-share-btn-modal svg {
    width: 24px;
    height: 24px;
}

.ifa-share-facebook {
    color: #1877F2;
}

.ifa-share-facebook:hover {
    border-color: #1877F2;
    background: rgba(24, 119, 242, 0.1);
}

.ifa-share-whatsapp {
    color: #25D366;
}

.ifa-share-whatsapp:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.ifa-share-twitter {
    color: #1DA1F2;
}

.ifa-share-twitter:hover {
    border-color: #1DA1F2;
    background: rgba(29, 161, 242, 0.1);
}

.ifa-share-email {
    color: #EA4335;
}

.ifa-share-email:hover {
    border-color: #EA4335;
    background: rgba(234, 67, 53, 0.1);
}

.ifa-share-linkedin {
    color: #0A66C2;
}

.ifa-share-linkedin:hover {
    border-color: #0A66C2;
    background: rgba(10, 102, 194, 0.1);
}

.ifa-share-copy {
    color: #7E3281;
}

.ifa-share-copy:hover {
    border-color: #7E3281;
    background: rgba(126, 50, 129, 0.1);
}

.ifa-share-url-box {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e4e4e4;
}

.ifa-share-url-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #5f5f5f;
    outline: none;
}

.ifa-copy-url-btn {
    background: #7E3281;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-center: center;
    transition: all 0.2s ease;
}

.ifa-copy-url-btn:hover {
    background: #5D2461;
    transform: scale(1.05);
}

.ifa-copy-url-btn svg {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 600px) {
    .ifa-share-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ifa-share-modal-content {
        width: 95%;
    }

    .ifa-share-modal-header h3 {
        font-size: 18px;
    }
}
