:root {
  --lime: #32c100;
  --black: #000;
  --white: #fff;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: var(--black);
  color: var(--white);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}
/* ===== MENU HORIZONTAL MODERNO ===== */
.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(50, 193, 0, 0.3);
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.nav-logo img {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 0 10px var(--lime));
}

.nav-brand {
  color: var(--lime);
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  text-shadow: 0 0 10px rgba(50, 193, 0, 0.5);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 5px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 2px solid transparent;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(50, 193, 0, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  background: var(--lime);
  color: var(--black);
  border-color: var(--lime);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(50, 193, 0, 0.3);
}

.nav-link.active {
  background: rgba(50, 193, 0, 0.1);
  border-color: var(--lime);
  color: var(--lime);
}

/* Hamburger Menu para Mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  background: rgba(50, 193, 0, 0.1);
  border: 2px solid rgba(50, 193, 0, 0.3);
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(50, 193, 0, 0.2);
  border-color: var(--lime);
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--lime);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Ajuste do padding do body para compensar o menu fixo */
body {
  padding-top: 80px;
}

main {
  padding-top: 20px;
}

/* Responsivo */
@media (max-width: 768px) {
  .main-navigation {
    height: 70px;
  }
  
  body {
    padding-top: 70px;
  }
  
  .nav-container {
    padding: 0 15px;
  }
  
  .nav-brand {
    font-size: 1.2rem;
  }
  
  .nav-logo img {
    width: 40px;
    height: 40px;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 300px;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 0;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid rgba(50, 193, 0, 0.3);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    gap: 0;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    padding: 15px 25px;
    border-radius: 0;
    border-left: 4px solid transparent;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid rgba(50, 193, 0, 0.1);
  }
  
  .nav-link:hover {
    border-left-color: var(--lime);
    background: rgba(50, 193, 0, 0.1);
    color: var(--lime);
    transform: translateX(10px);
    box-shadow: none;
  }
  
  .nav-link.active {
    border-left-color: var(--lime);
    background: rgba(50, 193, 0, 0.15);
  }
}

@media (max-width: 480px) {
  .nav-menu {
    width: 100%;
    right: -100%;
  }
  
  .nav-brand {
    font-size: 1rem;
  }
  
  .nav-logo img {
    width: 35px;
    height: 35px;
  }
}

/* Overlay para mobile quando menu está aberto */
.nav-overlay {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Efeito de glow no menu */
.main-navigation::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0.6;
  animation: glowPulse 3s infinite ease-in-out;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; width: 100px; }
  50% { opacity: 0.8; width: 300px; }
}
/* Ajustes para páginas específicas */
.image-generator-page {
  padding-top: 20px;
}

.tools-layout {
  padding-top: 20px;
}

/* ✅ FUNDO ANIMADO DE REDE NEURAL */
/* ✅ VERIFICAR/ADICIONAR se não existe: */
/* ✅ CORRIGIR - Canvas deve ficar ACIMA do background: */
body {
  background: #000 !important; /* Fundo 100% preto */
}

.neural-network-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #000;
}

#neuralCanvas {
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.site-header,
.nav-float,
.tools-layout,
.site-footer {
  position: relative;
  z-index: 10;
}

/* Efeito de overlay para melhor contraste */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: -1;
  pointer-events: none;
}

/* Garantir que o conteúdo fique acima do fundo */
.site-header,
.nav-float,
.main-content,
.site-footer,
body > p {
  position: relative;
  z-index: 1;
}

/* Melhorar contraste dos elementos principais */
.site-header {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(50, 193, 0, 0.3);
}

.nav-float {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(50, 193, 0, 0.3);
}

/* Efeito de glow nos links e botões principais */
.nav-float a:hover,
.btn-primary,
.generate-btn {
  box-shadow: 0 0 20px rgba(50, 193, 0, 0.4);
}

/* Cards e containers */
.produto-card,
.tool-section,
.prompt-card {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(50, 193, 0, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
  .neural-network-bg {
    opacity: 0.4;
  }
  
  #neuralCanvas {
    opacity: 0.3;
  }
}

/* Estilos da barra de pesquisa */
.search-container {
  margin-bottom: 30px;
  text-align: center;
}

.search-box {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 500px;
  margin-bottom: 15px;
}

#search-input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  font-size: 1rem;
  border: 2px solid rgba(50, 193, 0, 0.3);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  outline: none;
  transition: all 0.3s ease;
  font-family: Montserrat, sans-serif;
}

#search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#search-input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 15px rgba(50, 193, 0, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 15px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}
.video-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.video-card a {
  text-decoration: none;
  color: inherit;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(196, 255, 0, 0.2);
}
.video-thumbnail img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}
.video-info {
  padding: 15px;
}
.video-info h3 {
  color: var(--lime);
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}
.description-container {
  padding: 0 15px 15px;
}
.description-preview,
.description-full {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 10px;
}
.hidden {
  display: none;
}
.ver-mais {
  background: var(--lime);
  color: var(--black);
  border: none;
  padding: 5px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}
.ver-mais:hover {
  background: #d4ff20;
  transform: scale(1.05);
}
.description-full a {
  color: var(--lime);
  text-decoration: none;
}
.description-full a:hover {
  text-decoration: underline;
}
#youtube-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
}
.video-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.video-thumbnail {
  position: relative;
  padding-top: 56.25%;
}
.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-header {
  padding: 20px;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  position: relative;
  margin-bottom: 20px;
}
.site-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(196, 255, 0, 0.2) 25%,
    rgba(196, 255, 0, 0.8) 50%,
    rgba(196, 255, 0, 0.2) 75%,
    transparent 100%
  );
  box-shadow: 0 0 15px var(--lime), 0 0 30px var(--lime), 0 0 45px var(--lime);
  animation: glowPulse 3s infinite ease-in-out;
}
@keyframes glowPulse {
  0% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.7;
  }
}
.logo-container {
  margin-bottom: 20px;
}
.site-logo {
  max-width: 150px;
}
.nav-float {
  box-shadow: 0 0 20px var(--lime), 0 0 40px rgba(50, 193, 0, 0.4);
}
.video-card:hover {
  box-shadow: 0 0 20px var(--lime), 0 0 40px var(--lime);
}
body {
  background-color: var(--black);
  color: var(--white);
  font-family: Montserrat, sans-serif;
  line-height: 1.6;
  opacity: 0;
  animation: fadeIn 0.3s ease-in forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.title-container h1 {
  font-family: Montserrat, sans-serif;
  font-size: 2.5rem;
  color: var(--lime);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  font-style: italic;
  text-shadow: 0 0 15px rgba(196, 255, 0, 0.3);
}
.title-container h2 {
  font-family: Montserrat, sans-serif;
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 300;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 15px;
  letter-spacing: 1px;
}
.site-header {
  padding: 25px 20px;
}
.logo-container {
  margin-bottom: 15px;
}
.site-logo {
  max-width: 120px;
}
.video-info h3 {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-style: italic;
  color: var(--lime);
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
main {
  padding-top: 20px;
}
.site-footer {
  background: var(--lime);
  padding: 20px 0;
  margin-top: 50px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 25%,
    rgba(0, 0, 0, 0.8) 50%,
    rgba(0, 0, 0, 0.2) 75%,
    transparent 100%
  );
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  color: var(--black);
}
.company {
  font-weight: 800;
  font-style: italic;
  letter-spacing: 1px;
}
.youtube-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
}
.youtube-link:hover {
  transform: translateY(-2px);
}
.youtube-icon {
  fill: var(--black);
}
@media (max-width: 1024px) {
  #youtube-feed {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  #youtube-feed {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* ===== CORREÇÃO DEFINITIVA DAS CORES DOS SELETORES ===== */

/* Remover outline azul padrão e usar verde lime */
select:focus,
input:focus,
textarea:focus,
button:focus {
  outline: 2px solid var(--lime) !important;
  outline-offset: 2px;
  box-shadow: 0 0 15px rgba(50, 193, 0, 0.3) !important;
}

/* ===== ESTILIZAÇÃO COMPLETA DOS SELETORES ===== */
select {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(50, 193, 0, 0.3);
  border-radius: 10px;
  padding: 10px 15px;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  
  /* Forçar tema escuro para melhor compatibilidade */
  color-scheme: dark;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

select:hover {
  border-color: rgba(50, 193, 0, 0.6);
  background: rgba(0, 0, 0, 0.7);
}

select:focus {
  border-color: var(--lime);
  background: rgba(0, 0, 0, 0.8);
}

/* ===== CORREÇÃO RADICAL PARA OPÇÕES DOS SELETORES ===== */

/* Base para todas as opções */
select option {
  background-color: var(--black) !important;
  color: var(--white) !important;
  padding: 12px !important;
  border: none !important;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 600 !important;
}

/* Estados de seleção e hover - MÚLTIPLAS ABORDAGENS */
select option:checked,
select option[selected],
select option:hover,
select option:focus,
select option:active {
  background-color: var(--lime) !important;
  background: var(--lime) !important;
  color: var(--black) !important;
}

/* ===== CORREÇÕES ESPECÍFICAS POR NAVEGADOR ===== */

/* WebKit (Chrome, Safari, Edge Chromium) */
@supports (-webkit-appearance: none) {
  select option:hover {
    background: linear-gradient(var(--lime), var(--lime)) !important;
    background-color: var(--lime) !important;
    color: var(--black) !important;
  }
  
  select option:checked {
    background: linear-gradient(var(--lime), var(--lime)) !important;
    background-color: var(--lime) !important;
    color: var(--black) !important;
  }
}

/* Firefox específico */
@-moz-document url-prefix() {
  select option:hover {
    background-color: var(--lime) !important;
    color: var(--black) !important;
  }
  
  select option:checked {
    background-color: var(--lime) !important;
    color: var(--black) !important;
  }
}

/* ===== HACK DEFINITIVO PARA CHROME ===== */
/* Usando pseudo-elementos e CSS moderno */
select:focus option:hover,
select:focus option:checked,
select:focus option[selected] {
  background: var(--lime) !important;
  background-color: var(--lime) !important;
  color: var(--black) !important;
  box-shadow: inset 0 0 0 999px var(--lime) !important;
}

/* Aplicar em toda a árvore do select */
select > option:hover,
select > option:focus,
select > option:active,
select > option:checked,
select > option[selected] {
  background: var(--lime) !important;
  background-color: var(--lime) !important;
  color: var(--black) !important;
  outline: none !important;
}

/* ===== ESTILOS CSS CUSTOMIZADOS PARA MÁXIMA COMPATIBILIDADE ===== */

/* Usar CSS custom properties para forçar cores */
select {
  --option-bg-hover: var(--lime);
  --option-color-hover: var(--black);
  --option-bg-selected: var(--lime);
  --option-color-selected: var(--black);
}

select option:hover {
  background: var(--option-bg-hover) !important;
  color: var(--option-color-hover) !important;
}

select option:checked,
select option[selected] {
  background: var(--option-bg-selected) !important;
  color: var(--option-color-selected) !important;
}

/* ===== FALLBACK PARA NAVEGADORES ANTIGOS ===== */
select[multiple] option:hover,
select[multiple] option:checked {
  background-color: #32c100 !important;
  color: #000000 !important;
}

/* Inputs de texto */
input[type="text"],
input[type="password"],
input[type="email"],
textarea {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(50, 193, 0, 0.3);
  border-radius: 10px;
  padding: 12px 15px;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
textarea:hover {
  border-color: rgba(50, 193, 0, 0.6);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--lime);
  background: rgba(0, 0, 0, 0.7);
}

/* Placeholders */
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Checkboxes */
input[type="checkbox"] {
  accent-color: var(--lime);
}

input[type="checkbox"]:focus {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* Botões */
button:focus {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* ===== FIM DA CORREÇÃO ===== */
