/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow: auto;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s ease-in-out;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
    font-size: 1.5rem;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.share-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.share-option i {
    margin-right: 10px;
    font-size: 18px;
}

.share-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.share-option.facebook {
    background-color: #3b5998;
}

.share-option.twitter {
    background-color: #1da1f2;
}

.share-option.linkedin {
    background-color: #0077b5;
}

.share-option.whatsapp {
    background-color: #25d366;
}

.share-option.email {
    background-color: #ea4335;
}

.copy-link {
    display: flex;
    margin-top: 20px;
}

.copy-link input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
    color: #555;
    background-color: #f8f9fa;
}

.copy-link button {
    padding: 12px 20px;
    border: none;
    border-radius: 0 5px 5px 0;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.copy-link button:hover {
    background-color: #2d8fd9;
}

/* Responsive styles for modal */
@media (max-width: 767.98px) {
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 20px;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
    
    .copy-link {
        flex-direction: column;
    }
    
    .copy-link input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .copy-link button {
        border-radius: 5px;
        width: 100%;
    }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}