/**
 * Estilos do Resultado do Diagnóstico - Design Premium Animado
 */

.diagnostico-resultado-wrapper {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease;
}

/* ===========================
   CABEÇALHO DO RESULTADO
   =========================== */

.resultado-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f3f4f6;
    position: relative;
}

.resultado-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--diag-cor-primaria), var(--diag-cor-secundaria));
    border-radius: 2px;
}

.resultado-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    animation: scaleIn 0.5s var(--diag-bounce) 0.2s backwards;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.resultado-badge .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    animation: bounce 1s ease infinite;
}

/* Badge de Casal */
.resultado-badge.casal-badge {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #9d174d;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    margin-left: 10px;
}

.resultado-badge.casal-badge .dashicons {
    color: #ec4899;
}

/* Badges de Tipo (Titular/Cônjuge) */
.resultado-tipo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin: 10px 5px 20px;
    animation: fadeInUp 0.5s ease 0.3s backwards;
}

.resultado-tipo-badge.titular-badge {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.resultado-tipo-badge.conjuge-badge {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #9d174d;
}

.resultado-tipo-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.resultado-titulo {
    font-size: 36px;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, var(--diag-cor-texto) 0%, var(--diag-cor-primaria) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.resultado-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

.resultado-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 15px;
    padding: 8px 16px;
    background: var(--diag-cor-fundo);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.resultado-meta .meta-item:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.resultado-meta .meta-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--diag-cor-primaria);
}

/* ===========================
   CONTEÚDO DO RESULTADO
   =========================== */

.resultado-content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.08);
    animation: fadeInUp 0.6s ease 0.5s backwards;
    position: relative;
    overflow: hidden;
}

.resultado-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--diag-cor-primaria), var(--diag-cor-secundaria), var(--diag-cor-sucesso));
    background-size: 200% 100%;
    animation: gradientMove 4s ease infinite;
}

.resultado-texto {
    font-size: 17px;
    line-height: 1.9;
    color: #374151;
}

.resultado-texto h1,
.resultado-texto h2,
.resultado-texto h3 {
    background: linear-gradient(135deg, var(--diag-cor-primaria) 0%, var(--diag-cor-secundaria) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 32px;
    margin-bottom: 16px;
    position: relative;
    padding-left: 20px;
}

.resultado-texto h1::before,
.resultado-texto h2::before,
.resultado-texto h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 60%;
    background: linear-gradient(180deg, var(--diag-cor-primaria), var(--diag-cor-secundaria));
    border-radius: 3px;
}

.resultado-texto h1 { font-size: 28px; }
.resultado-texto h2 { font-size: 24px; }
.resultado-texto h3 { font-size: 20px; }

.resultado-texto p {
    margin-bottom: 18px;
}

.resultado-texto ul,
.resultado-texto ol {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.resultado-texto li {
    margin-bottom: 12px;
    padding-left: 32px;
    position: relative;
}

.resultado-texto li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--diag-cor-primaria) 0%, var(--diag-cor-secundaria) 100%);
    border-radius: 50%;
    opacity: 0.2;
}

.resultado-texto li::after {
    content: '\2713';
    position: absolute;
    left: 5px;
    top: 8px;
    font-size: 12px;
    color: var(--diag-cor-primaria);
    font-weight: bold;
}

.resultado-texto strong {
    color: var(--diag-cor-texto);
    font-weight: 700;
}

.resultado-texto em {
    color: var(--diag-cor-primaria);
    font-style: normal;
    font-weight: 600;
}

/* Destaque de citação */
.resultado-texto blockquote {
    margin: 24px 0;
    padding: 24px 30px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 5px solid var(--diag-cor-primaria);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: var(--diag-cor-secundaria);
}

/* ===========================
   AÇÕES
   =========================== */

.resultado-acoes {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.6s backwards;
}

.resultado-acoes .btn {
    min-width: 160px;
}

.resultado-acoes .btn-primary {
    animation: pulse 2s ease infinite;
}

.resultado-acoes .btn-primary:hover {
    animation: none;
}

/* ===========================
   MODAL DE COMPARTILHAMENTO
   =========================== */

.resultado-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.share-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.4s var(--diag-bounce);
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
}

.share-modal-content h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
    background: linear-gradient(135deg, var(--diag-cor-texto) 0%, var(--diag-cor-primaria) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.share-btn.email {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #fff;
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
}

.share-btn.copy {
    background: var(--diag-cor-fundo);
    color: var(--diag-cor-texto);
    border: 2px solid #e5e7eb;
}

.share-btn.copy:hover {
    border-color: var(--diag-cor-primaria);
    color: var(--diag-cor-primaria);
}

.share-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.btn-fechar-modal {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 15px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-fechar-modal:hover {
    color: var(--diag-cor-texto);
}

/* Confetti animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--diag-cor-primaria);
    animation: confetti-fall 3s ease-out forwards;
    z-index: 10001;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===========================
   RESPONSIVO
   =========================== */

@media screen and (max-width: 768px) {
    .resultado-titulo {
        font-size: 26px;
    }

    .resultado-content {
        padding: 24px;
        border-radius: 16px;
    }

    .resultado-texto {
        font-size: 15px;
    }

    .resultado-acoes {
        flex-direction: column;
    }

    .resultado-acoes .btn {
        width: 100%;
    }

    .share-modal-content {
        padding: 24px;
    }
}
