/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #1e1e1e;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-align: center;
}

/* OVERLAY (escurece tela quando menu aberto) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998; 
}
.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* CABEÇALHO */
.header {
  background-color: #2c2c2c;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-button {
  background: none;
  border: none;
  color: #00ff7f;
  font-size: 1.5rem;
  cursor: pointer;
}

.logo-img {
  height: 80px;  
  width: auto;   
}

/* INTRO */
.intro-section {
  padding: 1.5rem 1rem;
}
.intro-section h2 {
  font-size: 1.8rem;
  color: #00ff7f;
  margin-bottom: 0.5rem;
}
.intro-section p {
  font-size: 1rem;
  color: #cccccc;
  max-width: 600px;
  margin: 0 auto;
}

/* GERADOR DE SINAIS */
.signal-generator {
  margin: 2rem auto;
  padding: 1rem;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Círculo */
.signal-display {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}
.numero-container {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
  border-radius: 50%;
  background: none; 
}
.numero-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#00ff7f, #2e86de, #00ff7f);
  animation: girarAnel 5s linear infinite;
  z-index: 1;
}
.numero-container::after {
  content: '';
  position: absolute;
  inset: 10px;
  background: #1e1e1e;
  border-radius: 50%;
  z-index: 2;
}
.numero {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex; 
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  font-weight: 700;
  color: #00ff7f;
}
@keyframes girarAnel {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* TERMÔMETRO */
.safety-thermometer {
  margin: 1.5rem 0;
  width: 100%;
  max-width: 400px;
}
.thermometer-bar {
  background-color: #444;
  border-radius: 8px;
  height: 22px;
  overflow: hidden;
  position: relative;
}
.thermometer-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #dc3545, #ffc107, #28a745);
  width: 0;
  transition: width 0.5s ease-in-out;
}
.thermometer-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #cccccc;
  position: relative;
}
/* data-risk: "alto", "moderado", "seguro" */
.thermometer-labels::after {
  content: '';
  position: absolute;
  bottom: 28px;
  width: 18px;
  height: 18px;
  background-color: #00ff7f;
  transform: translateX(-50%) rotate(45deg); 
  border: 2px solid #1e1e1e; 
  border-radius: 2px;
  transition: left 0.5s ease-in-out;
  left: 0;
}
.thermometer-labels[data-risk="alto"]::after {
  left: 0%;
}
.thermometer-labels[data-risk="moderado"]::after {
  left: 50%;
}
.thermometer-labels[data-risk="seguro"]::after {
  left: 100%;
}

/* Proteções e horário */
.protection-text {
  font-size: 1rem;
  color: #00ff7f;
  margin-bottom: 1rem;
  font-weight: 600;
}
.signal-time {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: #ccc;
}

/* Botão Gerar Entrada */
.generate-button {
  background-color: #00ff7f;
  color: #1e1e1e;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.3s;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.generate-button:hover {
  background-color: #00cc66;
  transform: scale(1.02);
}
.generate-button:active {
  transform: scale(0.98);
}
.generate-button.ripple-effect::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  pointer-events: none;
  animation: ripple 0.6s linear;
}
@keyframes ripple {
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* Botão estratégia */
.strategy-button {
  background-color: #444;
  color: #cccccc;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

/* Mensagem de análise */
.analysis-message {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #00ff7f;
  font-weight: 700;
  animation: fadeInOut 1s infinite;
  min-height: 1.5rem;
}
@keyframes fadeInOut {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* IFRAME */
.iframe-section {
  margin: 2rem auto;
  max-width: 1200px;
  width: 100%;
  padding: 0 1rem;
}
.aviator-iframe {
  width: 100%;
  height: 950px; /* maior no desktop */
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: height 0.3s ease-in-out;
}

/* Instruções */
.instructions {
  background-color: #252525;
  padding: 1rem;
  margin: 1rem auto;
  border-radius: 8px;
  max-width: 600px;
}
.instructions h3 {
  font-size: 1.4rem;
  color: #00ff7f;
  margin-bottom: 0.5rem;
}
.instructions p {
  font-size: 1rem;
  color: #cccccc;
}

/* Rodapé */
.footer {
  background-color: #2c2c2c;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 992px) {
  .aviator-iframe {
    height: 750px; 
  }
}
@media (max-width: 768px) {
  .aviator-iframe {
    height: 650px;
  }
  .numero-container {
    width: 190px;
    height: 190px;
  }
  .numero {
    font-size: 2.5rem;
  }
}

/* ===================================
   ANIMAÇÕES EXTRAS PARA O SINAL
   =================================== */

/* Efeito de pulso durante a análise */
.pulse-effect {
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    color: #00ff7f;
    text-shadow: 0 0 6px rgba(0,255,127,0.4);
  }
  50% {
    transform: scale(1.1);
    text-shadow: 0 0 16px rgba(0,255,127,0.7);
  }
  100% {
    transform: scale(1);
    color: #00ff7f;
    text-shadow: 0 0 6px rgba(0,255,127,0.4);
  }
}

/* Efeito rápido quando o sinal é encontrado */
.found-effect {
  animation: found 1s forwards;
}
@keyframes found {
  0% {
    transform: scale(1);
    color: #00ff7f;
    text-shadow: 0 0 6px rgba(0,255,127,0.4);
  }
  50% {
    transform: scale(1.3);
    color: #ffff00; /* pico de cor diferente */
    text-shadow: 0 0 16px rgba(255,255,0,0.7);
  }
  100% {
    transform: scale(1);
    color: #00ff7f;
    text-shadow: 0 0 6px rgba(0,255,127,0.4);
  }
}
/* Efeito Fade In ao carregar a página */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

