/*
 * trial-share.css — modal de compartir ensayos clínicos
 *
 * Modal CENTRADO en pantalla con backdrop oscuro semitransparente.
 * Aparece sobre el modal de Bootstrap del detalle del ensayo.
 * Brand colors auténticos de cada red social.
 */

/* Backdrop oscuro que cubre toda la pantalla */
.trial-share-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1080; /* por encima del modal de Bootstrap (1055) */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    padding: 16px;
}

.trial-share-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Modal centrado */
.trial-share-popover {
    background: white;
    border-radius: 16px;
    padding: 20px 18px 16px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.2s;
}

.trial-share-backdrop.is-open .trial-share-popover {
    transform: scale(1);
}

.trial-share-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 4px 14px;
    text-align: center;
}

.trial-share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.trial-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 6px;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: center;
}

.trial-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    color: white;
    text-decoration: none;
}

.trial-share-btn i,
.trial-share-btn svg {
    font-size: 1.45rem;
    line-height: 1;
}

/* Brand colors auténticos */
.trial-share-btn--whatsapp { background: #25D366; }
.trial-share-btn--telegram { background: #0088cc; }
.trial-share-btn--email    { background: #475569; }
.trial-share-btn--twitter  { background: #000000; }
.trial-share-btn--facebook { background: #1877F2; }
.trial-share-btn--linkedin { background: #0A66C2; }

/* Sección "Copiar enlace" */
.trial-share-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 6px -2px 8px;
}

.trial-share-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 10px;
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.trial-share-copy:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
}

.trial-share-copy i {
    font-size: 1.1rem;
}

/* Responsive: en móvil un poco más compacto */
@media (max-width: 380px) {
    .trial-share-popover {
        padding: 16px 14px;
    }
    .trial-share-grid {
        gap: 8px;
    }
    .trial-share-btn {
        padding: 12px 4px;
        font-size: 0.68rem;
    }
}
