/**
 * Estilos Rede Mães Atípicas — paleta branco/rosa, Outfit
 */

:root {
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --pink-700: #be185d;
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-200: #fbcfe8;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --raio-card: 1rem;
    --sombra-card: 0 4px 6px -1px rgba(236, 72, 153, 0.06), 0 2px 4px -2px rgba(236, 72, 153, 0.06);
    --sombra-card-hover: 0 20px 25px -5px rgba(236, 72, 153, 0.08), 0 8px 10px -6px rgba(236, 72, 153, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--pink-200);
    color: var(--pink-900, #831843);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--slate-800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Cards de página (relatório, figurinhas, etc.) */
.card-pagina {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid rgba(251, 207, 232, 0.5);
    box-shadow: var(--sombra-card);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-pagina:hover {
    box-shadow: var(--sombra-card-hover);
}

/* Login */
.input-login:focus {
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
    background-color: #ffffff;
    transform: translateY(-1px);
}

.input-login:hover {
    background-color: #ffffff;
}

.btn-login:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.3);
}

.btn-login:active {
    transform: scale(0.98);
}

/* Figurinhas */
.figurinha-card {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.2s ease;
}

.figurinha-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 28px -6px rgba(236, 72, 153, 0.12), 0 12px 14px -6px rgba(236, 72, 153, 0.06);
}

.figurinha-card[data-desbloqueada="false"]:hover .fa-lock {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.figurinha-card[data-desbloqueada="true"] {
    animation: desbloqueioAnimacao 0.5s ease-out;
}

@keyframes desbloqueioAnimacao {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.figurinha-card.desbloqueando {
    animation: brilhoDesbloqueio 1s ease-out;
}

@keyframes brilhoDesbloqueio {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Modal */
#modal_scan_qr,
#modal_conclusao {
    backdrop-filter: blur(8px);
    animation: overlayAparecer 0.25s ease-out;
}

@keyframes overlayAparecer {
    from { opacity: 0; }
    to { opacity: 1; }
}

#modal_scan_qr #modal_conteudo,
#modal_conclusao > div {
    animation: modalAparecer 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalAparecer {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(-16px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Tabela (relatório) */
table tbody tr {
    transition: background-color 0.15s ease;
}

table tbody tr:hover {
    background-color: var(--pink-50);
}

/* Acessibilidade */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--pink-500);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    outline: none;
}

/* Responsivo */
@media (max-width: 320px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .figurinha-card {
        font-size: 0.875rem;
    }
}

/* Utilitários */
.mensagem-sucesso {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.mensagem-erro {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.mensagem-info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.spinner {
    border: 3px solid var(--slate-200);
    border-top-color: var(--pink-500);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
