/* conceitoeletricos.css */
/* Estilos para o boto Conceito Eltricos */

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
}

/* Container principal para os trs botes */
#fls-sidebar {
  position: fixed;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
}

/* Boto Conceito Eltricos */
#iconEletrico {
  width: 150px;
  height: 150px;
  background-color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#iconEletrico:hover {
  filter: drop-shadow(0 0 6px #ffffffff) drop-shadow(0 0 12px #ffffffff);
  transition: filter 0.3s ease;
}

@keyframes efeitoEletrico {
  0% {
    box-shadow: 0 0 4px #00f0ff;
  }
  50% {
    box-shadow: 0 0 12px #00f0ff, 0 0 24px #00f0ff;
  }
  100% {
    box-shadow: 0 0 4px #00f0ff;
  }
}

#iconEletrico img {
  width: 95%;
  height: 95%;
  border-radius: 8px;
  object-fit: contain;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Janela popup estilo revista */
#popupRevista {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popupContent {
  background-color: white;
  width: 100%;
  max-width: 1000px;
  padding: 20px;
  border-radius: 12px;
  overflow-y: auto;
  max-height: 90vh;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: popupShow 0.5s ease;
}

@keyframes popupShow {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Boto de fechar */
.closeBtn {
  position: absolute;
  top: 5px;
  right: 20px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s ease;
}

.closeBtn:hover {
  color: red;
}

.popupContent h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #222;
}

.popupContent img {
  display: block;
  margin: 10px auto;
  width: 100%;
  max-width: 500px;
  height: auto;
  max-height: 50vh;
  border-radius: 8px;
}

.popupContent p {
  line-height: 1.6;
  color: #444;
}

.btn-noticia {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 198, 255, 0.4);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.btn-noticia:hover,
.btn-noticia:focus {
  background: linear-gradient(135deg, #007bff, #0099cc);
  box-shadow: 0 6px 15px rgba(0, 153, 204, 0.6);
  outline: none;
}

/* Responsividade para desktop (1025px e acima) */
@media (min-width: 1025px) {
  #fls-sidebar {
    top: 50%;
    transform: translateY(-50%);
  }
  
  #iconEletrico {
    width: 230px;
    height: 230px;
  }
}

/* Tablet (769px a 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  #fls-sidebar {
    top: 40%;
    transform: translateY(-50%);
  }
  
  #iconEletrico {
    width: 150px;
    height: 150px;
  }
}

/* Tablet pequeno (481px a 768px) */
@media (max-width: 768px) and (min-width: 481px) {
  #fls-sidebar {
    top: 30%;
    transform: translateY(-50%);
  }
  
  #iconEletrico {
    width: 150px;
    height: 150px;
  }
}

/* Mobile (at 480px) */
@media (max-width: 480px) {
  #fls-sidebar {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    gap: 15px;
  }
  
  #iconEletrico {
    width: 90px;
    height: 90px;
    opacity: 1;
    animation: none;
  }
  
  .popupContent {
    width: 95%;
    padding: 15px;
    max-height: 85vh;
  }

  .popupContent h2 {
    font-size: 1.1rem;
  }

  .popupContent p {
    font-size: 0.9rem;
  }
}