:root {
  --primary: #5eaaa8; /* Azul esverdeado */
  --primary-dark: #3b7f7c; /* Azul esverdeado escuro */
  --secondary: #D4AF37; /* Dourado */
  --accent: #d4af37; /* Dourado */
  --dark: #0a1929; /* Azul escuro profundo */
  --light: #f0f0f0; /* Branco acinzentado */
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, var(--dark) 0%, #203a43 50%, #2c5364 100%);
  color: var(--light);
  font-family: 'EB Garamond', serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(94, 170, 168, 0.2) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: -1;
}

header {
  text-align: center;
  padding: 0; /* Ajustado para menos padding lateral */
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  margin-bottom: 2rem;
  width: 100%;
}

.header-banner {
  width: 100%; /* Alterado para 100% */
  max-width: none; /* Removido limite de 1200px */
  height: auto;
  max-height: 400px; /* Limite de altura para proporção */
  object-fit: cover; /* Mantém proporção sem distorção */
  display: block;
  margin: 0; /* Removido margens */
  border-radius: 0; /* Removido bordas arredondadas para largura total */
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.sidebar {
  width: 180px;
  background: rgba(15, 32, 39, 0.9);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: fixed;
  top: 0;
  height: 100%;
  overflow: auto;
  animation: slideIn 0.5s forwards;
  z-index: 1000;
  display: none;
  border-right: 1px solid var(--primary-dark);
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.top-bar {
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%), var(--dark);
  color: var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.2rem;
}

.bar-item {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--light);
  cursor: pointer;
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  transition: var(--transition);
}

.bar-item:hover {
  background: var(--accent);
  color: var(--dark);
}

.active-link {
  background: var(--accent);
  color: var(--dark);
}

.button {
  background: none;
  border: none;
  padding: 8px 16px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  color: inherit;
}

.close-btn {
  color: var(--accent);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--light);
}

.main {
  margin-left: 0;
}

.container {
  position: relative;
}

.open-btn {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  position: fixed;
  top: 50px;   /* aqui altera a altura do menu "hamburguer" que está a esquerda na tela */
  left: 16px;
  display: inline-block;
  color: var(--light);
  z-index: 1001;
  transition: var(--transition);
}

.open-btn:hover {
  color: var(--accent);
}

.world-intro {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(15, 32, 39, 0.9);
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--primary-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: fadeIn 1s ease;
}

.world-intro h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.world-intro p {
  font-size: 1.2rem;
  color: var(--light);
}

.world-intro .hotmart-button {
  margin-top: 1.4rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: var(--light);
  border: none;
  border-radius: 8px;
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.world-intro .hotmart-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.world-intro .hotmart-button:hover::before {
  left: 100%;
}

.world-intro .hotmart-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(94, 170, 168, 0.5);
}

.news-section {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(15, 32, 39, 0.9);
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--primary-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: fadeIn 1s ease 0.3s forwards;
}

.news-section h3 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.news-section p {
  font-size: 1.1rem;
  color: var(--light);
}

.news-section .hotmart-button {
  margin-top: 1rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(to right, var(--secondary), var(--primary-dark));
  color: var(--light);
  border: none;
  border-radius: 8px;
  font-family: 'Arial', serif;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.news-section .hotmart-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.news-section .hotmart-button:hover::before {
  left: 100%;
}

.news-section .hotmart-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(163, 126, 186, 0.5);
}

.search-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.search-box {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--primary);
  border-radius: 30px;
  background: rgba(15, 32, 39, 0.7);
  color: var(--light);
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  outline: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.search-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.search-box::placeholder {
  color: rgba(240, 240, 240, 0.6);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.filter-tag {
  padding: 0.4rem 1rem;
  background: rgba(94, 170, 168, 0.2);
  border: 1px solid var(--primary);
  border-radius: 20px;
  color: var(--light);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Lora', serif;
  font-size: 0.9rem;
}

.filter-tag:hover, .filter-tag.active {
  background: var(--accent);
  color: var(--dark);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.filter-tag.active {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.character-card {
  background: rgba(15, 32, 39, 0.8);
  border: 1px solid var(--primary-dark);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  backdrop-filter: blur(5px);
  min-height: 300px;
  animation: fadeInCard 0.5s ease forwards;
}

.character-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(94, 170, 168, 0.5);
  border-color: var(--accent);
}

.character-info {
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.character-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.character-card:hover .character-icon {
  color: var(--accent);
  transform: scale(1.1);
}

.character-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.character-symbol {
  font-size: 0.9rem;
  color: var(--light);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.character-origin, .character-role {
  font-size: 0.9rem;
  color: var(--light);
  margin-bottom: 0.5rem;
}

.character-role {
  font-style: italic;
}

.hotmart-button {
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: var(--light);
  border: none;
  border-radius: 8px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.hotmart-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.hotmart-button:hover::before {
  left: 100%;
}

.hotmart-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(94, 170, 168, 0.5);
}

.character-details {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(15, 32, 39, 0.9);
  border-radius: 12px;
  border: 1px solid var(--primary-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: none;
  animation: fadeIn 0.5s ease;
}

.character-details.active {
  display: block;
}

.details-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.details-icon {
  font-size: 5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.details-icon:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.details-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.details-symbol {
  font-size: 1rem;
  color: var(--light);
  margin-bottom: 1rem;
  font-style: italic;
}

.details-section {
  margin-bottom: 1.5rem;
}

.details-section-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--primary-dark);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.details-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 5px;
  border-left: 3px solid var(--primary);
}

.details-label {
  font-size: 1rem;
  color: var(--light);
  margin-bottom: 0.3rem;
}

.details-value {
  font-size: 1rem;
  color: var(--light);
}

.appearances-list {
  list-style-type: none;
  padding: 0;
}

.appearances-list li {
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
  color: var(--light);
}

.appearances-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.plot-hooks {
  font-style: italic;
  color: var(--accent);
  margin-top: 1rem;
}

.plot-hooks::before {
  content: "•";
  margin-right: 1rem;
  color: var(--accent);
}

.back-button {
  display: block;
  margin: 0.5rem auto;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: var(--light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.back-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.back-button:hover::before {
  left: 100%;
}

.back-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(94, 170, 168, 0.5);
}

.no-results {
  text-align: center;
  padding: 2rem;
  grid-column: 1 / -1;
  color: var(--light);
  font-style: italic;
  font-size: 1.2rem;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  background: rgba(15, 32, 39, 0.95);
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--primary-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  max-width: 400px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.popup-close:hover {
  color: var(--accent);
}

.popup h3 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: center;
}

.popup p {
  font-size: 1.1rem;
  color: var(--light);
  margin-bottom: 1.5rem;
}

.popup button {
  padding: 0.4rem 0.6rem;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: var(--light);
  border: none;
  border-radius: 8px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  cursor: pointer;
  margin: 0.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.popup button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.popup button:hover::before {
  left: 100%;
}

.popup button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(94, 170, 168, 0.5);
}

.newsletter-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(15, 32, 39, 0.9);
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--primary-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: fadeIn 1s ease 0.6s forwards;
}

.newsletter-section h3 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.newsletter-section p {
  font-size: 1.1rem;
  color: var(--light);
  margin-bottom: 1.5rem;
}

.newsletter-section form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.newsletter-section input {
  padding: 0.75rem;
  width: 100%;
  max-width: 300px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--light);
  font-family: 'Lora', serif;
  font-size: 1rem;
}

.newsletter-section button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: var(--light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.newsletter-section button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.newsletter-section button:hover::before {
  left: 100%;
}

.newsletter-section button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(94, 170, 168, 0.5);
}

.content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .header-banner {
    max-height: 300px; /* Altura reduzida para celulares */
  }

  .sidebar {
    width: 100%;
    max-width: 200px;
  }

  .character-grid {
    grid-template-columns: 1fr;
  }

  .character-details {
    padding: 1rem;
  }

  .details-icon {
    font-size: 4rem;
  }

  .details-name {
    font-size: 1.8rem;
  }

  .world-intro, .news-section, .newsletter-section {
    margin: 1rem;
    padding: 1.5rem;
  }

  .popup {
    max-width: 90%;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-banner {
    max-height: 200px; /* Altura ainda menor para telas pequenas */
  }

  .world-intro h2, .news-section h3, .newsletter-section h3 {
    font-size: 1.3rem;
  }

  .character-name {
    font-size: 1.3rem;
  }

  .hotmart-button, .back-button, .newsletter-section button, .popup button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .popup {
    padding: 1.0rem;
  }

  .open-btn {
    font-size: 20px;
    top: 12px;
    left: 12px;
  }

  .top-bar {
    font-size: 1rem;
    padding: 10px 12px;
  }

  .close-btn {
    font-size: 0.9rem;
  }
}

html {
  scroll-behavior: smooth;
}
/* Rodapé com links pra mídias sociais */
    footer {
      padding: 3rem 5%;
      color: #f9f9f9;
      text-align: center;
    }
    footer p {
      font-size: 1rem;
    }
    .assinatura {
      font-family: 'Cinzel Decorative', serif;
      font-size: 1.3rem;
      color: #D4AF37;
      margin-bottom: 1rem;
      font-style: italic;
      font-weight: bold;
    }
    .social-links {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      margin: 1.5rem 0;
    }
    .social-links a {
      color: #f9f9f9;
      font-size: 1.5rem;
      transition: transform 0.3s ease;
    }
    .social-links a:hover {
      transform: scale(1.2);
    }
/* Fim do Rodapé */
    @media (max-width: 768px) {
      footer {
        padding: 2rem 1rem;
      }
      .assinatura {
        font-size: 1.3rem;
      }
    }
/* Background pra título que gostei */
    .ildomar-titulo {
      font-family: 'Cinzel Decorative', serif;
      font-size: 1.4rem;
      color: #fff;
      background: linear-gradient(90deg, #4B0082, #6A0DAD);
      padding: 2px 40px;
      border-radius: 10px;
      font-weight: bold;
      box-shadow: 0 0 10px rgba(40, 14, 63, 0.7);
      margin-bottom: 1.2rem;
      display: inline-block;
    }

