/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 70px;
  overflow-x: hidden;
}
@media (max-width: 480px) { body { padding-top: 60px; } }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #f01b85; border-radius: 4px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input { font-family: inherit; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #f01b85;
  box-shadow: 0 4px 20px rgba(240, 27, 133, 0.15);
  z-index: 1000;
  height: 70px;
}
@media (max-width: 480px) { .navbar { height: 60px; } }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}
@media (max-width: 480px) { .nav-container { padding: 0 12px; gap: 8px; } }

.logo {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
@media (max-width: 480px) { .logo { font-size: 1rem; } }

/* Busca na navbar */
.nav-busca {
  flex: 1;
  max-width: 340px;
  position: relative;
}
.nav-busca input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(240, 27, 133, 0.3);
  color: #fff;
  padding: 8px 16px 8px 40px;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.3s;
}
.nav-busca input:focus {
  outline: none;
  border-color: #f01b85;
  background: rgba(240, 27, 133, 0.08);
  box-shadow: 0 0 0 3px rgba(240, 27, 133, 0.15);
}
.nav-busca input::placeholder { color: #888; }
.nav-busca i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #f01b85;
  font-size: 0.9rem;
  pointer-events: none;
}
@media (max-width: 768px) {
  .nav-busca { max-width: 180px; }
  .nav-busca input { padding: 7px 12px 7px 34px; font-size: 0.8rem; }
}
@media (max-width: 480px) {
  .nav-busca { max-width: 140px; }
  .nav-busca input { padding: 6px 10px 6px 30px; font-size: 0.75rem; }
  .nav-busca i { left: 10px; font-size: 0.8rem; }
}

/* Idioma */
.language-dropdown { position: relative; flex-shrink: 0; }
.language-btn {
  background: rgba(240, 27, 133, 0.15);
  color: #fff;
  border: 1px solid #f01b85;
  padding: 7px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}
.language-btn:hover { background: #f01b85; color: #000; }
@media (max-width: 480px) {
  .language-btn { padding: 5px 10px; font-size: 0.7rem; }
  .language-btn span { display: none; }
}
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background: rgba(10, 10, 10, 0.98);
  border: 1px solid #f01b85;
  border-radius: 10px;
  min-width: 150px;
  overflow: hidden;
  z-index: 1002;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}
.dropdown-content.show { display: block; }
.dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s;
  border-bottom: 1px solid rgba(240, 27, 133, 0.1);
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background: #f01b85; color: #000; }
.dropdown-content a.active { background: rgba(240, 27, 133, 0.3); color: #ff4da6; pointer-events: none; }

/* Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}
.nav-item a {
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 20px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-item a:hover { background: #f01b85; color: #000; }
.nav-item a.disabled { opacity: 0.5; pointer-events: none; }
.nav-item i { font-size: 0.85rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: #f01b85; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); background: #f01b85; }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    padding: 20px 0;
    gap: 0;
    transition: 0.4s ease;
    border-top: 1px solid #f01b85;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    align-items: stretch;
  }
  .nav-menu.active { right: 0; }
  .nav-item { width: 100%; }
  .nav-item a {
    padding: 16px 30px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: flex-start;
    gap: 15px;
  }
}
@media (max-width: 480px) {
  .nav-menu { top: 60px; max-height: calc(100vh - 60px); }
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
main { padding: 30px 0 60px; }

/* ===== TÍTULOS ===== */
.page-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
  letter-spacing: -0.5px;
}
.page-subtitle {
  font-size: 0.95rem;
  color: #999;
  margin-bottom: 30px;
  max-width: 700px;
}

/* ===== ÍNDICE DE CATEGORIAS (HOME) ===== */
.categorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.categoria-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.categoria-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #f01b85;
  z-index: 2;
}
.categoria-card:hover {
  transform: translateY(-5px);
  border-color: #f01b85;
  box-shadow: 0 12px 30px rgba(240, 27, 133, 0.2);
}
.categoria-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.categoria-card:hover img { transform: scale(1.05); }
.categoria-card .info {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.categoria-card h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}
.categoria-card p {
  font-size: 0.82rem;
  color: #aaa;
  line-height: 1.5;
}

/* ===== LISTA DE ARTIGOS (INDEX DE CATEGORIA) ===== */
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.toolbar input {
  flex: 1;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  transition: all 0.3s;
}
.toolbar input:focus {
  outline: none;
  border-color: #f01b85;
  box-shadow: 0 0 0 3px rgba(240, 27, 133, 0.15);
}
.toolbar button {
  background: rgba(240, 27, 133, 0.15);
  color: #fff;
  border: 1px solid #f01b85;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.3s;
  white-space: nowrap;
}
.toolbar button:hover { background: #f01b85; color: #000; }
.toolbar button.ativo { background: #f01b85; color: #000; }

.artigos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
@media (max-width: 768px) { .artigos-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; } }
@media (max-width: 480px) { .artigos-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.artigo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
}
.artigo-card:hover {
  transform: translateY(-5px);
  border-color: #f01b85;
  box-shadow: 0 10px 25px rgba(240, 27, 133, 0.2);
}
.artigo-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #1a1a1a;
  transition: transform 0.5s ease;
}
.artigo-card:hover img { transform: scale(1.05); }
.artigo-card h3 {
  padding: 12px 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}
@media (max-width: 480px) {
  .artigo-card h3 { font-size: 0.78rem; padding: 10px 8px; }
}

/* ===== ARTIGO INDIVIDUAL ===== */
.artigo-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .artigo-layout { grid-template-columns: 1fr; gap: 24px; }
}

.artigo-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(240, 27, 133, 0.2);
}
.artigo-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #f01b85;
  margin-bottom: 6px;
}

.artigo-imagem-topo {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid rgba(240, 27, 133, 0.3);
}
.artigo-imagem-topo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sidebar com infobox */
.artigo-sidebar {
  position: sticky;
  top: 90px;
}
@media (max-width: 900px) { .artigo-sidebar { position: static; } }

/* Conteúdo */
.artigo-conteudo { min-width: 0; }
.artigo-conteudo h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f01b85;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(240, 27, 133, 0.15);
}
.artigo-conteudo h2:first-child { margin-top: 0; }
.artigo-conteudo h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 20px 0 10px;
}
.artigo-conteudo p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #ddd;
  margin-bottom: 14px;
}
.artigo-conteudo ul, .artigo-conteudo ol {
  margin: 0 0 14px 24px;
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.7;
}
.artigo-conteudo a {
  color: #f01b85;
  text-decoration: underline;
}
.artigo-conteudo a:hover { color: #ff4da6; }
.artigo-conteudo img {
  border-radius: 8px;
  margin: 16px 0;
  border: 2px solid rgba(240, 27, 133, 0.2);
}
.artigo-conteudo strong { color: #fff; }
.artigo-conteudo em { color: #f0f0f0; }

/* Índice do artigo */
.artigo-indice {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(240, 27, 133, 0.2);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
}
.artigo-indice h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f01b85;
  margin-bottom: 10px;
}
.artigo-indice ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.artigo-indice li {
  margin-bottom: 4px;
}
.artigo-indice a {
  color: #ccc;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.3s;
}
.artigo-indice a:hover { color: #f01b85; }

/* ===== INFOBOX (o CSS que você mandou) ===== */
.wiki-container {
  width: 100%;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #ffffff;
  box-sizing: border-box;
}
.wiki-header-box {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #f01b85;
  color: #fff;
  font-size: 15px;
  text-align: center;
  border: 1px solid #a2a9b1;
  margin-bottom: 8px;
  box-sizing: border-box;
  font-weight: 700;
}
.wiki-item {
  border: 2px solid #f01b85;
  padding: 8px;
  margin-bottom: 8px;
  background: transparent;
  box-sizing: border-box;
}
.wiki-note {
  font-size: 12px;
  color: #f2f2f2;
  font-style: italic;
}
.wiki-text-link {
  color: #ffffff;
  text-decoration: underline;
  cursor: pointer;
}
.wiki-text-link:hover { opacity: 0.85; }
.wiki-item a { text-decoration: none; }
.wiki-item a.wiki-text-link { text-decoration: underline; }

/* ===== GALERIA ===== */
.galeria {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(240, 27, 133, 0.15);
}
.galeria-carrossel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid rgba(240, 27, 133, 0.3);
}
.galeria-slides {
  display: flex;
  transition: transform 0.4s ease;
}
.galeria-slides img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}
.galeria-prev, .galeria-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 2;
}
.galeria-prev:hover, .galeria-next:hover { background: #f01b85; }
.galeria-prev { left: 12px; }
.galeria-next { right: 12px; }
.galeria-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.galeria-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  transition: all 0.3s;
}
.galeria-dot.active { background: #f01b85; width: 24px; border-radius: 5px; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  transition: all 0.3s;
}
.lightbox-close:hover { background: #f01b85; }

/* ===== BUSCA ===== */
.busca-info {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.busca-info strong { color: #f01b85; }
.grupo-resultado { margin-bottom: 32px; }
.grupo-resultado h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f01b85;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(240, 27, 133, 0.15);
}
.resultado-item {
  display: flex;
  gap: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.3s;
}
.resultado-item:hover {
  border-color: #f01b85;
  background: rgba(240, 27, 133, 0.05);
  transform: translateX(4px);
}
.resultado-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .resultado-item img { width: 60px; height: 60px; }
}
.resultado-item .info { min-width: 0; }
.resultado-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.resultado-item p {
  font-size: 0.82rem;
  color: #bbb;
  line-height: 1.5;
}
.resultado-item mark {
  background: #f01b85;
  color: #000;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}
.vazio {
  text-align: center;
  color: #888;
  padding: 40px 20px;
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid rgba(240, 27, 133, 0.15);
  color: #666;
  font-size: 0.8rem;
  margin-top: 40px;
}
footer a { color: #f01b85; }
