/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease; /* Adicionado para transição suave do tema */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9fafb;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Top Bar */
.top-bar {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  padding: 0.75rem 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

.btn-auth {
  background: transparent;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.btn-auth:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Main Header */
.main-header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo-img {
  height: 2.5rem;
  width: auto;
}

.desktop-nav {
  display: none;
  gap: 2rem;
}

.nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #2563eb;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2563eb;
  transition: width 0.2s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-btn,
.mobile-menu-btn,
.theme-toggle-btn {
  /* Adicionado o botão de tema */
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: color 0.2s, background-color 0.2s;
}

.search-btn:hover,
.mobile-menu-btn:hover,
.theme-toggle-btn:hover {
  /* Adicionado o botão de tema */
  color: #2563eb;
  background-color: #f3f4f6;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 1rem;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-logo {
  height: 2rem;
  width: auto;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.mobile-nav-link:hover {
  color: #2563eb;
  background-color: #eff6ff;
}

/* Hero Seção */
.hero-section {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.8),
    rgba(30, 64, 175, 0.6),
    #2563eb
  );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.1);
}

.floating-1 {
  top: 5rem;
  right: 5rem;
  width: 4rem;
  height: 4rem;
  animation: float 3s ease-in-out infinite;
}

.floating-1::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2rem;
  height: 2rem;
  background: #ef4444;
  border-radius: 50%;
}

.floating-2 {
  bottom: 8rem;
  right: 8rem;
  width: 3rem;
  height: 3rem;
  animation: float 3s ease-in-out infinite 1s;
}

.floating-2::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1.5rem;
  height: 1.5rem;
  background: #60a5fa;
  border-radius: 50%;
}

.floating-3 {
  top: 8rem;
  right: 16rem;
  width: 2.5rem;
  height: 2.5rem;
  animation: float 3s ease-in-out infinite 2s;
}

.floating-3::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1rem;
  height: 1rem;
  background: white;
  border-radius: 50%;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 32rem;
  color: white;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #bfdbfe;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: #bfdbfe;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: white;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  color: #ef4444;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #bfdbfe;
  line-height: 1.6;
}

/* Atlas Seção */
.atlas-section {
  padding: 4rem 0;
  background: white;
  text-align: center; /* Centraliza o conteúdo da seção */
}

body.dark-mode .atlas-section {
  background: #2d3748;
}

.section-title {
  font-size: 3rem;
  font-weight: bold;
  color: #ef4444;
  margin-bottom: 2rem;
}

body.dark-mode .section-title {
  color: #fc8181; /* Red for dark mode */
}

.section-description {
  font-size: 1.125rem;
  color: #374151;
  max-width: 64rem;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

body.dark-mode .section-description {
  color: #cbd5e0;
}

/* Separador de visual */
.atlas-section-separator {
  width: 100px;
  height: 2px;
  background-color: #e5e7eb;
  margin: 3rem auto; /* Centraliza e adiciona margem */
}

body.dark-mode .atlas-section-separator {
  background-color: #4a5568;
}

/* ESkeleto Foco*/
.skeletal-focus-content {
  max-width: 800px; /* Limita a largura para melhor leitura */
  margin: 0 auto; /* Centraliza */
  padding: 2rem;
  background-color: #f0fdf4; /* Cor de fundo suave, similar ao card esquelético */
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

body.dark-mode .skeletal-focus-content {
  background-color: #4a5568;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.skeletal-focus-text {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

body.dark-mode .skeletal-focus-text {
  color: #cbd5e0;
}

.skeletal-focus-cta .btn-atlas-access {
  display: inline-block;
  background: #16a34a; /* Cor verde para o CTA do esquelético */
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.skeletal-focus-cta .btn-atlas-access:hover {
  background: #15803d;
}

body.dark-mode .skeletal-focus-cta .btn-atlas-access {
  background: #48bb78; /* Verde mais claro para dark mode */
}

body.dark-mode .skeletal-focus-cta .btn-atlas-access:hover {
  background: #38a169;
}

.single-feature-card-container {
  display: flex;
  justify-content: center; /* Centraliza o card */
  margin-top: 3rem; /* Espaçamento do bloco acima */
}

.feature-card {
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 400px; /* Limita a largura do card */
  width: 100%; /* Garante que ocupe a largura disponível até o max-width */
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .feature-card {
  background-color: #4a5568;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.feature-card.skeletal {
  background-color: #f0fdf4;
}

body.dark-mode .feature-card.skeletal {
  background-color: #4a5568;
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: white;
}

.skeletal .feature-icon {
  background-color: #16a34a;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

body.dark-mode .feature-card h3 {
  color: #e2e8f0;
}

.skeletal h3 {
  color: #14532d;
}

body.dark-mode .skeletal h3 {
  color: #e2e8f0; /* Ajuste para dark mode */
}

.feature-card p {
  color: #6b7280;
}

body.dark-mode .feature-card p {
  color: #a0aec0;
}

/* Welcome Section */
.welcome-section {
  padding: 4rem 0;
  background-color: #f3f4f6;
  text-align: center;
}

body.dark-mode .welcome-section {
  background-color: #4a5568;
}

.welcome-content {
  max-width: 64rem;
  margin: 0 auto;
}

.welcome-icon {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  font-size: 4rem;
  color: #2563eb;
}

body.dark-mode .welcome-icon {
  background-color: #2d3748;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #63b3ed;
}

.welcome-title {
  font-size: 2.25rem;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 1.5rem;
}

body.dark-mode .welcome-title {
  color: #e2e8f0;
}

.welcome-description {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.6;
}

body.dark-mode .welcome-description {
  color: #a0aec0;
}

/* Cookie Noticia */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1f2937;
  color: white;
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.cookie-notice.hidden {
  display: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-content p {
  flex: 1;
  font-size: 0.875rem;
  margin-right: 1rem;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-cookie-config {
  background: transparent;
  border: 1px solid #6b7280;
  color: #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.btn-cookie-config:hover {
  background: #374151;
}

body.dark-mode .btn-cookie-config {
  border-color: #4a5568;
  color: #a0aec0;
}

body.dark-mode .btn-cookie-config:hover {
  background: #2d3748;
}

.btn-cookie-accept {
  background: #dc2626;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-cookie-accept:hover {
  background: #b91c1c;
}

body.dark-mode .btn-cookie-accept {
  background: #e53e3e; /* Modo escuro*/
}

body.dark-mode .btn-cookie-accept:hover {
  background: #c53030;
}

.btn-cookie-close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}

.btn-cookie-close:hover {
  color: white;
}

/* Pagina */
.page-content {
  padding: 4rem 0;
  min-height: calc(100vh - 4rem - 4rem - 4rem);
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1e3a8a;
  text-align: center;
  margin-bottom: 1rem;
}

body.dark-mode .page-title {
  color: #e2e8f0;
}

.page-description {
  font-size: 1.125rem;
  color: #374151;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

body.dark-mode .page-description {
  color: #a0aec0;
}

.content-grid,
.event-list,
.class-list,
.tool-list,
.podcast-list,
.course-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.content-card,
.event-card,
.class-card,
.tool-card,
.podcast-card,
.course-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.content-card:hover,
.event-card:hover,
.class-card:hover,
.tool-card:hover,
.podcast-card:hover,
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

body.dark-mode .content-card,
body.dark-mode .event-card,
body.dark-mode .class-card,
body.dark-mode .tool-card,
body.dark-mode .podcast-card,
body.dark-mode .course-card {
  background-color: #4a5568;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.content-card h3,
.event-card h3,
.class-card h3,
.tool-card h3,
.podcast-card h3,
.course-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 0.75rem;
}

body.dark-mode .content-card h3,
body.dark-mode .event-card h3,
body.dark-mode .class-card h3,
body.dark-mode .tool-card h3,
body.dark-mode .podcast-card h3,
body.dark-mode .course-card h3 {
  color: #e2e8f0;
}

.content-card p,
.event-card p,
.class-card p,
.tool-card p,
.podcast-card p,
.course-card p {
  color: #4b5563;
  margin-bottom: 1rem;
}

body.dark-mode .content-card p,
body.dark-mode .event-card p,
body.dark-mode .class-card p,
body.dark-mode .tool-card p,
body.dark-mode .podcast-card p,
body.dark-mode .course-card p {
  color: #a0aec0;
}

.read-more,
.register-link,
.watch-link,
.use-tool,
.listen-link,
.enroll-link {
  display: inline-flex;
  align-items: center;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.read-more:hover,
.register-link:hover,
.watch-link:hover,
.use-tool:hover,
.listen-link:hover,
.enroll-link:hover {
  color: #1d4ed8;
}

body.dark-mode .read-more,
body.dark-mode .register-link,
body.dark-mode .watch-link,
body.dark-mode .use-tool,
body.dark-mode .listen-link,
body.dark-mode .enroll-link {
  color: #63b3ed;
}

body.dark-mode .read-more:hover,
body.dark-mode .register-link:hover,
body.dark-mode .watch-link:hover,
body.dark-mode .use-tool:hover,
body.dark-mode .listen-link:hover,
body.dark-mode .enroll-link:hover {
  color: #4299e1;
}

/* Atlas 3D Pagina especifica */
.atlas-page-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.atlas-info {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

body.dark-mode .atlas-info {
  background-color: #4a5568;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.atlas-subtitle {
  font-size: 1.75rem;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 1.5rem;
}

body.dark-mode .atlas-subtitle {
  color: #e2e8f0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.info-icon {
  width: 2rem;
  height: 2rem;
  background-color: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.info-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 0.25rem;
}

body.dark-mode .info-item h3 {
  color: #e2e8f0;
}

.info-item p {
  color: #4b5563;
  font-size: 0.95rem;
}

body.dark-mode .info-item p {
  color: #a0aec0;
}

.atlas-viewer-card {
  background: linear-gradient(135deg, #1e4574, #dbeafe);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

body.dark-mode .atlas-viewer-card {
  background: linear-gradient(135deg, #2d3748, #4a5568);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.viewer-icon {
  font-size: 4rem;
  color: #2563eb;
  margin-bottom: 1rem;
}

body.dark-mode .viewer-icon {
  color: #63b3ed;
}

.viewer-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 0.75rem;
}

body.dark-mode .viewer-title {
  color: #e2e8f0;
}

.viewer-description {
  color: #4b5563;
  margin-bottom: 1.5rem;
}

body.dark-mode .viewer-description {
  color: #a0aec0;
}

.btn-atlas-access {
  background: #dc2626;
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-atlas-access:hover {
  background: #b91c1c;
}

body.dark-mode .btn-atlas-access {
  background: #e53e3e;
}

body.dark-mode .btn-atlas-access:hover {
  background: #c53030;
}

/* nova pagina*/
.auth-page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 4rem - 4rem - 4rem);
  padding: 2rem 1rem;
  gap: 2rem;
}

.auth-mascot {
  flex-shrink: 0;
  text-align: center;
}

.mascot-img {
  max-width: 250px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.auth-card {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

body.dark-mode .auth-card {
  background-color: #2d3748;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.auth-title {
  font-size: 2rem;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 1.5rem;
}

body.dark-mode .auth-title {
  color: #e2e8f0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

body.dark-mode .form-group label {
  color: #cbd5e0;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  color: #374151;
  background-color: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s;
}

body.dark-mode .form-group input {
  background-color: #4a5568;
  border-color: #6b7280;
  color: #e2e8f0;
}

.form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

body.dark-mode .form-group input:focus {
  border-color: #63b3ed;
  box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.3);
}

.btn-submit {
  background: #2563eb;
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.btn-submit:hover {
  background: #1d4ed8;
}

body.dark-mode .btn-submit {
  background: #63b3ed;
}

body.dark-mode .btn-submit:hover {
  background: #4299e1;
}

.auth-switch {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #4b5563;
}

body.dark-mode .auth-switch {
  color: #a0aec0;
}

.auth-switch a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-switch a:hover {
  color: #1d4ed8;
}

body.dark-mode .auth-switch a {
  color: #63b3ed;
}

body.dark-mode .auth-switch a:hover {
  color: #4299e1;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .cookie-content {
    flex-direction: row;
  }

  .cookie-content p {
    margin-right: 0;
  }

  .auth-page-container {
    flex-direction: row;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
  }

  .auth-mascot {
    flex: 1;
    text-align: right;
  }

  .auth-card {
    flex: 1;
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }
}

@media (max-width: 767px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .floating-element {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .auth-page-container {
    flex-direction: column;
  }

  .auth-mascot {
    order: -1;
    margin-bottom: 2rem;
  }
}
