/* =====================================================
    1. RESET & VARIÁVEIS (Tema Dark/PoE)
===================================================== */
:root {
  --bg-dark: #0a0c11;
  --bg-section: rgba(14, 16, 22, 0.75);
  --bg-card: rgba(18, 20, 26, 0.85);
  --accent-blue: #247a94; 
  --accent-blue-hover: #2d96b6;
  --poe1-color: #4a6fa5;
  --poe2-color: #c44d4d;
  --text-main: #e6e7ea;
  --text-muted: #9ca3af;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  background: var(--bg-dark) url('../img/background.jpg') center/cover fixed no-repeat;
  color: var(--text-main);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.85);
  z-index: -1;
}

/* =====================================================
    2. HEADER MODERNO (Desktop)
===================================================== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(10, 12, 17, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Mantém logo e menu nas extremidades */
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  z-index: 102; 
}

.logo-icon { 
  width: 32px; 
  height: 32px; 
  object-fit: contain; 
}

/* Links e Controles do PC */
.nav-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.menu-links {
  display: flex;
  gap: 20px;
}

.menu-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

.menu-links a:hover { color: #fff; }

.lang-selector {
  display: flex;
  gap: 12px;
}

.flag {
  width: 24px;
  height: 18px;
  cursor: pointer;
  border-radius: 3px;
  transition: transform 0.2s;
}

.flag:hover { transform: scale(1.15); }

/* Hambúrguer (Invisível no PC) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 105;
  padding: 5px; /* Facilita o toque */
}

.menu-toggle .bar {
  width: 25px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* =====================================================
    3. CARDS UNIFICADOS
===================================================== */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
.card { background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; text-decoration: none; color: inherit; transition: 0.3s ease; display: flex; gap: 20px; padding: 15px; }
.card:hover { transform: translateY(-3px); border-color: rgba(154, 215, 255, 0.3); background: rgba(25, 28, 35, 0.9); }
.card-thumb-horizontal { width: 240px; height: 135px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.card-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.card-info h3 { color: var(--accent-blue); margin-bottom: 6px; font-size: 1.2rem; }
.card-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.badge-container { display: flex; gap: 8px; margin-top: auto; }
.badge { padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; text-transform: uppercase; }
.badge-poe1 { background: var(--poe1-color); color: #fff; }
.badge-poe2 { background: var(--poe2-color); color: #fff; }

/* =====================================================
    4. ESTRUTURA DE PÁGINA (Hero, Sections)
===================================================== */
.container { max-width: 1100px; margin: auto; padding: 0 20px; }
.hero { padding: 80px 0 40px; }
.hero h1 { font-size: 40px; margin-bottom: 10px; color: #fff; }
.hero p { color: var(--text-muted); max-width: 600px; }
.section { margin-top: 30px; padding: 30px; background: var(--bg-section); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.04); }
.section h2 { margin-bottom: 20px; border-left: 4px solid var(--accent-blue); padding-left: 15px; }

.btn-primary { display: inline-block; background-color: var(--accent-blue); color: #fff !important; padding: 10px 25px; border-radius: 6px; text-decoration: none; font-weight: 600; margin-top: 15px; transition: 0.3s background; border: none; cursor: pointer; }
.btn-primary:hover { background-color: var(--accent-blue-hover); color: #fff !important; }

/* =====================================================
    5. MENU MOBILE MODERNO
===================================================== */
@media (max-width: 900px) {
  .nav-container { justify-content: space-between; }
  .menu-toggle { display: flex; }

  /* Animação do Botão virando X */
  .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0d1017;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 101;
  }

  .nav-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu-links {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 25px;
    margin-bottom: 25px;
  }

  .menu-links a { font-size: 1.2rem; color: #fff; }
  .lang-selector { justify-content: center; }
  .flag { width: 32px; height: 24px; }

  /* Ajustes dos cards mobile */
  .card { flex-direction: column; gap: 10px; }
  .card-thumb-horizontal { width: 100%; height: auto; aspect-ratio: 16/9; }
  .hero h1 { font-size: 28px; }
}

@media (max-width: 400px) {
  .logo { font-size: 0.95rem; }
}

/* =====================================================
    6. CABEÇALHO DE SEÇÕES E FILTROS EMBUTIDOS
===================================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
  flex-wrap: wrap; 
}

.section-header h2 { margin-bottom: 0; }

.game-filter {
  display: flex;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  transition: 0.3s ease;
}

.filter-btn:hover { color: #fff; }
.filter-btn.active { background: var(--accent-blue); color: #fff; }

/* =====================================================
    7. ESTILO DE ÍCONES NOS LINKS (POB, Poe.Ninja)
===================================================== */
.icon-link {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
}

.section p a {
    display: inline-flex;
    align-items: center;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.section p a:hover {
    color: #fff;
    opacity: 0.8;
}

/* =====================================================
    8. ESTILIZAÇÃO FINAL DO FOOTER
===================================================== */
.footer { margin-top: 80px; width: 100%; background: rgba(0, 0, 0, 0.7); border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 40px 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; }
.footer p { color: #9ca3af; font-size: 0.9rem; margin: 0; }


/* Botão Especial de Download (Estilo Unique Item PoE) */
.btn-download-special {
  display: inline-block;
  background: linear-gradient(180deg, #2a1b10 0%, #140d08 100%);
  color: #af6025; /* Dourado / Unique Item */
  text-decoration: none;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: bold;
  border: 1px solid #af6025;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(175, 96, 37, 0.2) inset;
}

.btn-download-special:hover {
  background: linear-gradient(180deg, #3a2516 0%, #1e140d 100%);
  color: #f5d680;
  border-color: #f5d680;
  box-shadow: 0 0 15px rgba(245, 214, 128, 0.4), 0 0 10px rgba(245, 214, 128, 0.2) inset;
  transform: translateY(-2px);
}