/**
 * FeedCurato® - Share Modal Styles
 * Archivo: /themes/common/share-modal.css
 * 
 * CSS compartido para el modal de compartir artículos.
 * Se carga desde article.php de cada theme.
 */

/* Modal Compartir */
.share-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.share-modal-overlay.show {
    display: flex;
}

.share-modal {
    background: #1a1a23;
    border: 1px solid #2e2e3a;
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #2e2e3a;
}

.share-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.share-modal-title svg {
    width: 20px;
    height: 20px;
    color: #3b82f6;
}

.share-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 8px;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.share-modal-close:hover {
    background: #252532;
    color: #fff;
}

.share-modal-body {
    padding: 24px;
}

.share-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #252532;
    border: 1px solid #2e2e3a;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.share-button:hover {
    background: #2e2e3a;
    border-color: #3e3e4a;
}

.share-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
}

.share-icon svg {
    width: 16px;
    height: 16px;
}

.share-icon.twitter {
    background: #000;
    color: #fff;
}

.share-icon.facebook {
    background: #1877f2;
    color: #fff;
}

.share-icon.whatsapp {
    background: #25d366;
    color: #fff;
}

.share-icon.linkedin {
    background: #0a66c2;
    color: #fff;
}

.share-icon.telegram {
    background: #0088cc;
    color: #fff;
}

.share-icon.email {
    background: #6366f1;
    color: #fff;
}

.share-label {
    color: #fff;
}

.share-copy-link {
    display: flex;
    gap: 10px;
}

.share-copy-link input {
    flex: 1;
    padding: 12px 14px;
    background: #252532;
    border: 1px solid #2e2e3a;
    border-radius: 8px;
    color: #9ca3af;
    font-size: 13px;
}

.share-copy-link button {
    padding: 12px 20px;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.share-copy-link button:hover {
    background: #2563eb;
}

/* Responsive */
@media (max-width: 500px) {
    .share-buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .share-modal {
        margin: 10px;
    }
}