/* style.css (VERSÃO COMPLETA E ATUALIZADA) */

/* === 1. Redefinições Padrão e Variáveis de Fonte === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-title: 'Special Elite', monospace;
    --font-body: 'Roboto Mono', monospace;
}

/* === 2. Estilos Gerais === */
body {
    background-color: #000;
    color: #a2a2a2; 
    font-family: var(--font-body);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden; 

    /* Animação de Fade Out */
    opacity: 1;
    transition: opacity 0.5s ease-in-out;

    /* Animação de Fade In ao carregar a página */
    animation: fadeIn 0.5s ease-in-out;
}

body.fade-out {
    opacity: 0;
}

/* === 3. Container Principal e Efeito VHS === */
#game-container {
    position: relative;
    width: 100vw; 
    height: 56.25vw;
    max-width: 177.78vh;
    max-height: 100vh;
    margin: auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: inset 0 0 150px #000;
    overflow: hidden; 
    filter: blur(0.5px) saturate(0.8); 
}

#game-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.04));
    background-size: 100% 4px, 100% 100%;
    animation: vhs-jitter 0.2s infinite linear;
    z-index: 2;
    pointer-events: none;
}

@keyframes vhs-jitter {
    0% { top: 0; left: 0; } 25% { top: 1px; left: -1px; } 50% { top: -1px; left: 1px; } 75% { top: 1px; left: 1px; } 100% { top: 0; left: 0; }
}

/* === 4. Imagens de Fundo === */
.phase-1-bg { background-image: url('assets/fases/1.png'); }
.phase-2-bg { background-image: url('assets/fases/2.png'); }
.phase-3-bg { background-image: url('assets/fases/3.png'); }

/* === 5. Hotspots === */
.hotspot {
    position: absolute;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 3;
}
.hotspot:hover { background: radial-gradient(circle,rgba(0, 102, 255, 0.21) 0%, rgba(0, 102, 255, 0) 40%, rgba(0, 102, 255, 0) 40%); }

/* Posições */
#hotspot-1-1 {top: 55%;left: 0%;width: 20%;height: 40%;}
#hotspot-1-2 {top: 30%;left: 68%;width: 29%;height: 60%;}
#hotspot-1-3 {top: 25%;left: 63%;width: 7%;height: 40%;}
#hotspot-1-4 {top: 38%;left: 73%;width: 5%;height: 10%;}
#hotspot-1-5 {top: 43%;left: 64%;width: 5%;height: 10%;}
#hotspot-2-1 {top: 40%;left: 54%;width: 7%;height: 25%;}
#hotspot-2-2 {top: 50%;left: 32%;width: 24%;height: 33%;}
#hotspot-2-3 {top: 40%;left: 35%;width: 16%;height: 19%;}
#hotspot-2-4 {top: 30%;left: 22%;width: 14%;height: 25%;}
#hotspot-2-5 {top: 20%;left: 66%;width: 10%;height: 55%;}
#hotspot-3-1 {top: 50%;left: 52%;width: 20%;height: 16%;}
#hotspot-3-2 {top: 20%;left: 39%;width: 23%;height: 19%;}
#hotspot-3-3 {top: 50%;left: 15%;width: 70%;height: 20%;}
#hotspot-3-4 {top: 40%;left: 45%;width: 10%;height: 16%;}
#hotspot-3-5 {top: 30%;left: 88%;width: 10%;height: 40%;}

/* === 6. Interface de Jogo === */
#question-ui {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    background-color: rgba(20, 22, 25, 0.85);
    border: 1px solid #4a4a4a;
    border-top: 3px solid #00A1FF;
    padding: 25px;
    padding-top: 40px;
    text-align: center;
    backdrop-filter: blur(3px);
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    z-index: 10;
}
#question-ui::before {
    content: "// CASO: PROJETO VOCACIONAL //";
    position: absolute; top: 10px; left: 25px;
    color: #00A1FF; font-size: 0.9em;
    font-family: var(--font-body);
    text-align: left;
}
#question-text { font-family: var(--font-title); font-size: 1.5em; margin-bottom: 25px; color: #e0e0e0; }
#answer-options input[type="text"] {
    width: 100%; padding: 15px;
    background-color: #111;
    border: none;
    border-bottom: 2px solid #555;
    color: #00A1FF;
    font-family: var(--font-body); font-size: 1.2em;
    text-align: center; outline: none; transition: all 0.2s ease;
}
#answer-options input[type="text"]:focus { border-bottom: 2px solid #00A1FF; }
#answer-options button {
    display: block; width: 100%;
    padding: 15px; margin-top: 10px;
    background: linear-gradient(#3a3a3a, #2a2a2a);
    border: 1px solid #1a1a1a;
    border-bottom: 2px solid #555;
    color: #a2a2a2;
    font-family: var(--font-body); font-size: 1.1em;
    cursor: pointer; transition: all 0.2s ease;
}
#answer-options button:hover { background: linear-gradient(#4a4a4a, #3a3a3a); color: #00A1FF; border-bottom: 2px solid #00a2ff60; }
#inventory {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(10, 25, 40, 0.9);
    border: 1px solid #00a2ff44;
    border-left: 4px solid #00A1FF;
    font-family: var(--font-body);
    font-size: 1.1em;
    z-index: 10;
    padding: 10px 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 161, 255, 0.3);

    /* Novo: Alinhamento para o ícone */
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Novo: Estilo para o texto dos fragmentos */
#fragments-text {
    color: #e0e0e0;
    font-weight: bold;
    letter-spacing: 2px; /* Deixa as letras mais espaçadas */
}

/* === NOVO PAINEL DE OBJETIVOS (MODIFICADO) === */
#objective-panel {
    position: absolute;
    top: 25px; /* Posição a partir do topo */
    left: 50%;
    transform: translateX(-50%) translateY(-150%); /* Começa fora da tela */
    width: auto;
    max-width: 600px;
    padding: 12px 20px;
    background-color: rgba(10, 25, 40, 0.9); /* Fundo azul escuro semi-transparente */
    border: 1px solid #00a2ff44;
    border-left: 4px solid #00A1FF; /* Borda de destaque na esquerda */
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 161, 255, 0.3);
    z-index: 10;
    color: #e0e0e0;
    font-family: var(--font-body);
    font-size: 1em;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
}

/* Classe para mostrar o toast com animação */
#objective-panel.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Classe para o estado 'concluído' */
#objective-panel.completed {
    border-left-color: #00FF8C; /* Verde para concluído */
}
#objective-panel.completed .objective-title {
    color: #00FF8C;
}

.objective-title {
    font-weight: bold;
    color: #00A1FF; /* Azul para novo objetivo */
    margin-right: 10px;
}
/* === FIM DO NOVO PAINEL DE OBJETIVOS === */


#result-screen {
    position: absolute;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(8, 15, 25, 0.98) 0%, rgba(0, 0, 0, 0.99) 100%);
    backdrop-filter: blur(8px); 
    color: #e0e0e0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    animation: fadeIn 1s 0.5s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

#result-title { 
    font-family: var(--font-title);
    font-size: 3.5em; 
    color: #fff;
    text-shadow: 
        0 0 5px rgba(0, 161, 255, 0.5),
        0 0 15px rgba(0, 161, 255, 0.8),
        0 0 30px rgba(0, 161, 255, 0.6),
        0 0 40px rgba(0, 161, 255, 0.4);
    margin-bottom: 20px;
    animation: fadeInDown 1s forwards;
}

#result-description {
    font-family: var(--font-body);
    font-size: 1.3em; 
    max-width: 65%; 
    margin-bottom: 40px;
    text-align: center;
    color: #b0b0b0; 
    line-height: 1.6;
    animation: fadeInDown 1.5s forwards;
}

#result-center-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 50px; 
    margin-bottom: 40px;
    animation: fadeInUp 1.5s forwards;
}

#course-image {
    width: 420px; 
    height: 250px; 
    object-fit: cover;
    border: 3px solid #00a2ff88;
    box-shadow: 
        0 0 10px rgba(0, 161, 255, 0.4),
        0 0 30px rgba(0, 161, 255, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#course-image:hover {
    transform: scale(1.02);
    box-shadow: 
        0 0 15px rgba(0, 161, 255, 0.6), 
        0 0 40px rgba(0, 161, 255, 0.9);
}


#strong-points-container {
    background-color: rgba(20, 22, 25, 0.7);
    border: 1px solid #00a2ff60;
    border-left: 5px solid #00A1FF;
    padding: 25px;
    width: 450px; 
    text-align: left;
    box-shadow: 0 0 20px rgba(0, 161, 255, 0.2);
}
#strong-points-container h3 {
    color: #ffffff;
    font-family: var(--font-title); 
    font-size: 1.5em; 
    margin-bottom: 18px;
    border-bottom: 1px solid #00a2ff88;
    padding-bottom: 10px;
    text-shadow: 0 0 8px rgba(0, 161, 255, 0.4);
}
#strong-points { list-style: none; padding: 0;}
#strong-points li {
    font-family: var(--font-body);
    font-size: 1.15em; 
    margin-bottom: 12px;
    color: #e0e0e0;
    line-height: 1.4;
}
#strong-points li::before { content: "» "; color: #00A1FF; font-weight: bold; margin-right: 8px; }

#result-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    width: 950px; 
    margin-bottom: 50px; 
    animation: fadeInUp 2s forwards;
    position: relative;
}

#suggestions-container {
    flex-grow: 1; 
    max-width: 60%; 
    background-color: rgba(20, 22, 25, 0.5);
    border: 1px solid #ffffff1a; 
    padding: 20px 25px;
    margin-right: 30px; 
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

#suggestions-container h3 {
    font-family: var(--font-title);
    font-size: 1.6em; 
    color: #e0e0e0;
    margin-bottom: 18px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* === Custom Alert & Error Styles === */
#password-error-text {
    color: #FF6384; 
    font-family: var(--font-body);
    font-size: 1em;
    margin-top: 15px;
    height: 20px;
    transition: opacity 0.3s ease;
    opacity: 1;
}

#password-error-text.hidden {
    opacity: 0;
}

.input-shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97);
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}

.hidden { display: none !important; }

#result-courses { list-style: none; padding: 0; font-family: var(--font-body); font-size: 1.15em; text-align: left; }
#result-courses li { 
    margin-top: 10px; 
    color: #a2a2a2; 
    transition: color 0.2s ease;
}
#result-courses li:hover {
    color: #00A1FF;
}

#etec-logo {
    max-width: 140px; 
    opacity: 0.5; 
    transition: opacity 0.3s, transform 0.3s;
    filter: drop-shadow(0 0 10px rgba(0, 161, 255, 0.3)); 
}
#etec-logo:hover { 
    opacity: 0.8; 
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(0, 161, 255, 0.6));
}

#result-buttons-container {
    display: flex;
    gap: 30px; 
    margin-top: 20px;
    animation: fadeInUp 2.5s forwards;
}

#restart-button,
#view-all-results-button {
    padding: 18px 35px;
    background: linear-gradient(#00A1FF, #0066b3);
    border: 2px solid #00A1FF;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-title);
    font-size: 1.4em; 
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 10px rgba(0, 161, 255, 0.5), 
        0 0 20px rgba(0, 161, 255, 0.3);
}
#restart-button:hover,
#view-all-results-button:hover {
    transform: translateY(-5px) scale(1.05); 
    box-shadow: 
        0 0 15px rgba(0, 161, 255, 0.8), 
        0 0 30px rgba(0, 161, 255, 0.6),
        0 10px 40px rgba(0, 161, 255, 0.5); 
}

/* Animações de entrada para a tela de resultado */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

#objective-panel i,
#inventory i {
    stroke-width: 2; /* Espessura do traço do ícone */
    width: 20px;
    height: 20px;
    flex-shrink: 0; /* Impede que o ícone seja espremido */
}

#objective-panel {
    display: flex;
    align-items: center;
    gap: 12px;
}

