/**
 * Estilos de Engajamento Premium, Likes e Embed — Elo do Bem
 */

/* Barra de Ações Secundárias na Campanha */
.elo-hero-secondary-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 12px;
    width: 100%;
}

/* Botão Indicar Esta Causa — Liquid Glass Ultra Premium */
.elo-btn-hero-share {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: var(--elo-radius-md, 14px);
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.elo-btn-hero-share::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.elo-btn-hero-share:hover {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 1));
    border-color: var(--elo-gold, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.elo-btn-hero-share:hover::before { opacity: 1; }

.elo-btn-hero-share:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.elo-share-icon-wrap {
    display: inline-flex;
    align-items: center;
    color: var(--elo-gold, #f59e0b);
    transition: transform 0.2s ease;
}

.elo-share-icon-wrap svg {
    width: 18px;
    height: 18px;
}

.elo-btn-hero-share:hover .elo-share-icon-wrap {
    transform: scale(1.15) rotate(-8deg);
}

.elo-share-badge-sparkle {
    font-size: 0.9rem;
    animation: eloSparkle 2s infinite ease-in-out;
}

@keyframes eloSparkle {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 1; }
}

/* Botão de Like / Curtir — Liquid Glass Dark com Texto Branco */
.elo-btn-like,
.elo-btn-hero-like,
button.elo-btn-hero-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95)) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    border-radius: var(--elo-radius-md, 14px) !important;
    color: #ffffff !important;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.elo-btn-like *,
.elo-btn-hero-like *,
.elo-btn-hero-like span {
    color: #ffffff !important;
}

.elo-btn-like:hover,
.elo-btn-hero-like:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(30, 41, 59, 0.95)) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

.elo-btn-like:active,
.elo-btn-hero-like:active {
    transform: scale(0.95);
}

.elo-btn-like.liked,
.elo-btn-hero-like.liked {
    background: rgba(239, 68, 68, 0.3) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

.elo-like-heart-icon {
    font-size: 1.15rem;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.elo-btn-like:hover .elo-like-heart-icon,
.elo-btn-hero-like:hover .elo-like-heart-icon {
    transform: scale(1.3);
}

.elo-btn-like.liked .elo-like-heart-icon,
.elo-btn-hero-like.liked .elo-like-heart-icon {
    animation: eloHeartBeat 0.45s ease-in-out;
}

@keyframes eloHeartBeat {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.elo-like-badge, 
.elo-like-count,
#eloHeroLikeCount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 900 !important;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    min-width: 22px;
    line-height: 1.2;
}

/* Ações no card da listagem */
.elo-card-action-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.elo-card-btn-bl {
    width: 100%;
}

/* Card Otimizado para Embed Universal */
.elo-embed-card {
    max-width: 480px;
    margin: 0 auto;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #f8fafc;
}

.elo-embed-cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1e293b;
}

.elo-embed-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.elo-embed-card:hover .elo-embed-cover {
    transform: scale(1.03);
}

.elo-embed-church-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #e2e8f0;
}

.elo-embed-church-badge img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.elo-embed-body {
    padding: 18px 20px;
}

.elo-embed-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 14px 0;
}

.elo-embed-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.elo-embed-title a:hover {
    color: var(--elo-emerald, #10b981);
}

.elo-embed-financials {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.elo-embed-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.elo-embed-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.elo-embed-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
}

.elo-val-green {
    color: #10b981;
}

.elo-embed-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.elo-embed-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #f59e0b);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.elo-embed-progress-open { background: rgba(16, 185, 129, 0.10); box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.18); }
.elo-embed-progress-open .elo-embed-progress-fill { position: relative; overflow: hidden; background: linear-gradient(90deg, #059669, #10b981 45%, #34d399 80%, #6ee7b7); box-shadow: 0 0 10px rgba(52, 211, 153, 0.4); }
.elo-embed-progress-open .elo-embed-progress-fill::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.5), rgba(255,255,255,0)); animation: eloEmbedBarShine 2.6s ease-in-out infinite; }
@keyframes eloEmbedBarShine { 0% { left: -40%; } 60%, 100% { left: 110%; } }
.elo-embed-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 5px;
    margin-bottom: 16px;
}

.elo-embed-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
.elo-embed-btn-donate {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 18px; border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669); color: #ffffff;
    font-weight: 700; text-decoration: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.elo-embed-btn-donate:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45); }

/* Responsividade Mobile */
@media (max-width: 480px) {
    .elo-hero-secondary-actions { grid-template-columns: 1fr; }
}
