/* Novo Header - Estilos Responsivos */

/* Barra superior de navegação */
.nav-bar {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}

/* Links da navegação desktop */
.nav-link {
  position: relative;
  transition: all 0.2s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.2s ease;
}

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

/* Menu mobile */
#mobile-menu {
  animation: slideDown 0.2s ease-out;
}

#mobile-menu.hidden {
  animation: slideUp 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Cards do menu mobile */
.mobile-menu-card {
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.mobile-menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #e2e8f0;
}

/* Logo RSC */
#home-link {
  transition: all 0.3s ease;
}

#home-link:hover {
  transform: scale(1.05);
}

/* Título principal */
#home-title {
  transition: all 0.2s ease;
}

/* Botão de tema */
#theme-toggle-btn {
  transition: all 0.2s ease;
}

#theme-toggle-btn:hover {
  transform: scale(1.1);
}

/* Modo escuro */
html.dark .nav-bar {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-bottom-color: #475569;
}

html.dark .nav-link {
  color: #e2e8f0;
}

html.dark .nav-link:hover {
  color: #60a5fa;
}

html.dark .mobile-menu-card {
  background-color: #374151;
  border-color: #4b5563;
}

html.dark .mobile-menu-card:hover {
  background-color: #4b5563;
  border-color: #6b7280;
}

html.dark #mobile-menu {
  background-color: #1f2937;
  border-bottom-color: #374151;
}

/* Header principal no modo escuro */
html.dark header {
  background-color: #1f2937;
  border-bottom-color: #374151;
}

html.dark #home-title {
  color: #ffffff;
}

html.dark #home-title:hover {
  color: #60a5fa;
}

html.dark .subtitle {
  color: #ffffff;
}

/* Botão de tema no modo escuro */
html.dark #theme-toggle-btn {
  background-color: #374151;
  border-color: #4b5563;
}

html.dark #theme-toggle-btn:hover {
  background-color: #4b5563;
}

/* Responsividade específica */
@media (max-width: 768px) {
  /* Header principal no mobile */
  .header-main {
    padding: 1rem;
  }

  /* Logo menor no mobile */
  #home-link {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
  }

  /* Título menor no mobile */
  #home-title {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  /* Subtítulo escondido em telas muito pequenas */
  @media (max-width: 480px) {
    .subtitle {
      display: none;
    }
  }
}

/* Animações de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Estados de foco para acessibilidade */
.nav-link:focus,
#mobile-menu-btn:focus,
#home-link:focus,
#home-title:focus,
#theme-toggle-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Melhorias visuais */
.glass-effect {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

html.dark .glass-effect {
  background: rgba(31, 41, 55, 0.9);
}

/* Indicador de página ativa (para futuro uso) */
.nav-link.active {
  color: #3b82f6;
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
  background: #3b82f6;
}

/* Efeitos de hover aprimorados */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Gradientes personalizados */
.gradient-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.gradient-gray {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Separadores visuais */
.nav-separator {
  width: 1px;
  height: 1rem;
  background: #e2e8f0;
  margin: 0 0.5rem;
}

html.dark .nav-separator {
  background: #4b5563;
}
