/* explicacao_metodo.css */

/* Estilo do container que segura o texto e o ícone de ajuda */
.instruction-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    max-width: 600px;
    text-align: center;
}

.instruction-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
}

/* O pequeno círculo cinza com borda piscante e interrogação */
.help-icon-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #333; /* Fundo cinza */
    color: #f9e216; /* Amarelo claro */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #f9e216; /* Borda inicial amarelo claro */
    animation: pulse-border 1.5s infinite; /* Efeito piscante */
    transition: transform 0.2s ease, background-color 0.2s ease;
    flex-shrink: 0; /* Impede de amassar se o texto for grande */
}

.help-icon-btn:hover {
    transform: scale(1.1);
    background-color: #444;
}

.help-icon-btn2 {
    width: 0px;
    height: 0px;
    border-radius: 50%;
    background-color: #333; /* Fundo cinza */
    color: #0b0b0b; /* Amarelo claro */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #191919; /* Borda inicial amarelo claro */
    animation: none; /* Efeito piscante */
    transition: transform 0.2s ease, background-color 0.2s ease;
    flex-shrink: 0; /* Impede de amassar se o texto for grande */
}

.help-icon-btn2:hover {
    transform: scale(1.1);
    background-color: #444;
}

/* Animação para a borda piscar */
@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(248, 225, 14, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 250, 205, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 250, 205, 0);
    }
}

/* Modal Avançada de Explicação do Método */
.method-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000; /* Fica acima de tudo */
    padding: 1rem;
}

.method-modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.method-modal-content {
    background: linear-gradient(145deg, #1f1f1f, #0a0a0a);
    border: 1px solid rgba(255, 215, 0, 0.3); /* Borda amarela sutil */
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0,0,0,0.7);
    position: relative;
    max-height: 90vh; /* Para telas pequenas */
    overflow-y: auto; /* Rolagem se conteúdo for maior que a tela */
}

.method-modal-overlay.show .method-modal-content {
    transform: translateY(0) scale(1);
}

/* Customizando a rolagem da modal */
.method-modal-content::-webkit-scrollbar { width: 6px; }
.method-modal-content::-webkit-scrollbar-track { background: transparent; }
.method-modal-content::-webkit-scrollbar-thumb { background: rgba(255, 215, 0, 0.2); border-radius: 4px; }

.method-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.method-modal-close:hover {
    color: #ffd700;
}

/* Tipografia e Estrutura Interna da Modal */
.method-title {
    color: #ffd700;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.method-step {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.2rem;
    border-radius: 12px;
    border-left: 4px solid #ffd700;
}

.method-step h4 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.method-step p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.method-highlight {
    color: #00ff00; /* O mesmo verde que usamos nas legendas */
    font-weight: 600;
}