/* ============================================= */
/* RESET E CONFIGURAÇÕES GLOBAIS */
/* ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #2d3748;
    line-height: 1.6;
}

/* ============================================= */
/* LAYOUT PRINCIPAL */
/* ============================================= */
.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    overflow: hidden;
}

/* ============================================= */
/* COMPONENTES DE MARCA */
/* ============================================= */
.logo {
    font-size: 3rem;
    margin-bottom: 15px;
}

.title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* ============================================= */
/* BOTÕES PRINCIPAIS */
/* ============================================= */
.btn {
    background: linear-gradient(45deg, #63b3ed, #4299e1);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(99, 179, 237, 0.4);
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 179, 237, 0.6);
}

.btn:active {
    transform: translateY(0);
}

/* ============================================= */
/* FORMULÁRIOS (para testes futuros) */
/* ============================================= */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.1);
}

/* ============================================= */
/* BOTÕES DE ESCOLHA (para os testes) */
/* ============================================= */
.buttons-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.choice-btn {
    width: 150px;
    height: 150px;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.choice-btn:active {
    transform: scale(0.95);
}

.choice-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-azul {
    background: linear-gradient(135deg, #63b3ed, #4299e1);
    color: white;
}

.btn-vermelho {
    background: linear-gradient(135deg, #fc8181, #f56565);
    color: white;
}

/* ============================================= */
/* BARRAS DE PROGRESSO */
/* ============================================= */
.progress-info {
    margin-bottom: 30px;
    color: #4a5568;
}

.decision-count {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 10px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #63b3ed, #4299e1);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* ============================================= */
/* ESTADOS DE CARREGAMENTO */
/* ============================================= */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ============================================= */
/* MENSAGENS DE CONCLUSÃO */
/* ============================================= */
.completion-message {
    font-size: 1.3rem;
    color: #2d3748;
    margin: 30px 0;
}

/* ============================================= */
/* COMPONENTES DE DESTAQUE */
/* ============================================= */
.instruction-highlight {
    background: rgba(99, 179, 237, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #63b3ed;
}

.kappa-preview,
.balance-preview,
.pressure-preview {
    background: rgba(102, 126, 234, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
    text-align: left;
}

/* ============================================= */
/* TIMER (específico para Teste 3) */
/* ============================================= */
.timer-container {
    margin: 30px 0;
}

.timer-text {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 5px;
}

.timer-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(#48bb78 0deg, #e2e8f0 0deg);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d3748;
    transition: background 0.1s linear;
}

.time-limit {
    font-size: 0.9rem;
    color: #718096;
}

/* ============================================= */
/* ESTADOS DE TIMEOUT */
/* ============================================= */
.timeout-message {
    color: #e53e3e;
    font-weight: bold;
    margin: 10px 0;
    font-size: 1.1rem;
}

.timeout-recorded {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* ============================================= */
/* NÍVEIS DE PRESSÃO */
/* ============================================= */
.pressure-level {
    background: rgba(237, 137, 54, 0.1);
    padding: 10px 15px;
    border-radius: 20px;
    display: inline-block;
    margin: 15px 0;
    color: #ed8936;
    font-weight: 500;
}

/* ============================================= */
/* MENSAGENS DE FALLBACK/ERRO */
/* ============================================= */
.fallback-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    color: #856404;
}

/* ============================================= */
/* RESPONSIVIDADE */
/* ============================================= */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .card {
        border-radius: 15px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .choice-btn {
        width: 130px;
        height: 130px;
        font-size: 1.1rem;
    }
    
    .buttons-container {
        gap: 15px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .choice-btn {
        width: 120px;
        height: 120px;
        font-size: 1rem;
    }
    
    .buttons-container {
        gap: 10px;
    }
    
    .timer-circle {
        width: 80px;
        height: 80px;
        font-size: 1.2rem;
    }
}

/* ===================================================== */
/* === ANIMAÇÕES ERA K — MK NAVBAR === */
/* ===================================================== */

/* 🧠 Pulsação sutil */
.mk-logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
}

.mk-logo::before {
  content: "🧠";
  display: inline-block;
  animation: mkBrainPulse 4s ease-in-out infinite;
  transform-origin: center;
  filter: drop-shadow(0 0 0 rgba(99,102,241,0));
}

@keyframes mkBrainPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(99,102,241,0)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(99,102,241,0.5)); }
}

/* ✳️ Vetor R animado na palavra MindKappa */
.mk-logo span {
  position: relative;
  display: inline-block;
  font-weight: 700;
  color: #1e3a8a;
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
}

.mk-logo span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #60a5fa, #7c3aed);
  transition: width 0.5s ease;
}

.mk-logo:hover span::after {
  width: 100%;
}

/* ✳️ Vetor R nos links */
.mk-link {
  position: relative;
  text-decoration: none;
  color: #1e40af;
  font-weight: 600;
  transition: color 0.3s ease;
}

.mk-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #60a5fa, #7c3aed);
  transition: width 0.4s ease;
}

.mk-link:hover {
  color: #2563eb;
}

.mk-link:hover::after {
  width: 100%;
}

/* ✳️ Transição suave de cor na barra */
.mk-navbar {
  background: linear-gradient(135deg, #1583f1 0%, #6b4cf3 100%);
  border-bottom: 1px solid rgba(99,102,241,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: background 0.3s ease;
}

.mk-navbar:hover {
  background: linear-gradient(135deg, #8da5f5 0%, #386af3 100%);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(60, 78, 180, 0.35);
}
