/* Catálogo InfoNews FF — estilo Garena */
.catalogo {
  max-width: 1100px;
  margin: 20px auto 40px;
  padding: 0 16px;
  color: #fff;
}

.catalogo-header {
  text-align: center;
  margin-bottom: 24px;
}

.catalogo-header h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffba00;
  margin: 0 0 8px;
  text-shadow: 0 0 12px rgba(255, 186, 0, 0.35);
}

.catalogo-header .sub {
  color: #b8c0d0;
  font-size: 14px;
  margin: 0 0 18px;
}

.catalogo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.catalogo-search {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid #3a4560;
  border-radius: 4px;
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  width: 240px;
  outline: none;
  transition: border-color 0.2s;
}

.catalogo-search:focus {
  border-color: #ffba00;
}

.catalogo-sort {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid #3a4560;
  border-radius: 4px;
  color: #fff;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.catalogo-sort option {
  background: #02081e;
  color: #fff;
}

.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.cat-filter {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #3a4560;
  border-radius: 6px;
  color: #c5cde0;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  min-height: 42px;
}

.cat-filter img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.85);
  transition: filter 0.2s;
}

.cat-filter:hover {
  border-color: #ffba00;
  color: #fff;
}

.cat-filter.active {
  background: linear-gradient(180deg, #ffba00 0%, #e08900 100%);
  border-color: #ffba00;
  color: #02081e;
  box-shadow: 0 0 12px rgba(255, 186, 0, 0.4);
}

.cat-filter.active img {
  filter: none;
}

.catalogo-count {
  text-align: center;
  color: #8a93a8;
  font-size: 13px;
  margin-bottom: 14px;
}

.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.catalogo-grid.wide {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.catalogo-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: #8a93a8;
  border: 1px dashed #3a4560;
  border-radius: 8px;
}

/* Card genérico */
.g-card {
  position: relative;
  background: #0a1228;
  border: 1px solid #1e2a45;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: default;
}

a.g-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.g-card:hover {
  transform: translateY(-4px);
  border-color: #ffba00;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 14px rgba(255, 186, 0, 0.25);
}

.g-card .g-media {
  position: relative;
  width: 100%;
  /* cover_img oficial é 220×394 (~9:16); 3:4 cortava cabeça e pés */
  aspect-ratio: 220 / 394;
  background: #060b1a;
  overflow: hidden;
}

.g-card .g-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: opacity 0.3s, transform 0.35s;
}

.g-card .g-media img.g-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  object-fit: contain;
  background: #060b1a;
  padding: 18%;
  box-sizing: border-box;
}

.g-card:hover .g-media img.g-hover {
  opacity: 1;
}

.g-card:hover .g-media img.g-main {
  transform: scale(1.03);
}

.g-card.has-hover:hover .g-media img.g-main {
  opacity: 0;
}

.g-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  z-index: 2;
  text-transform: uppercase;
}

.g-body {
  padding: 12px 12px 14px;
}

.g-body .g-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.g-body .g-abstract {
  font-size: 12px;
  color: #9aa6bd;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Personagem / Pet: overlay no hover */
.g-card.overlay .g-media .g-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 8, 30, 0.15) 0%, rgba(2, 8, 30, 0.92) 70%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  z-index: 1;
}

.g-card.overlay:hover .g-media .g-info {
  opacity: 1;
}

.g-card.overlay .g-media .g-info .g-name {
  font-size: 15px;
  margin: 0 0 6px;
  color: #ffba00;
}

.g-card.overlay .g-media .g-info .g-abstract {
  font-size: 12px;
  color: #d5dbe8;
  -webkit-line-clamp: 4;
}

/* Arma */
.g-card.weapon .g-media {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: radial-gradient(ellipse at center, #142040 0%, #060b1a 75%);
}

.g-card.weapon .g-media img {
  object-fit: contain;
  max-height: 100%;
}

.g-card.weapon .g-stats {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.g-stat {
  display: grid;
  grid-template-columns: 70px 1fr 28px;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: #8a93a8;
}

.g-stat .bar {
  height: 6px;
  background: #1a2440;
  border-radius: 3px;
  overflow: hidden;
}

.g-stat .bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff9a00, #ffba00);
  border-radius: 3px;
}

.g-stat .val {
  text-align: right;
  color: #e8edf7;
  font-weight: 700;
}

.g-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.g-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 186, 0, 0.12);
  color: #ffba00;
  border: 1px solid rgba(255, 186, 0, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.g-cat-label {
  font-size: 10px;
  font-weight: 700;
  color: #6f7b96;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* Mapa */
.g-card.map .g-media {
  aspect-ratio: 16 / 10;
}

.g-card.map .g-media img {
  object-fit: cover;
}

.g-card.map:hover .g-media img.g-main {
  transform: scale(1.06);
}

.g-card.map .g-body .g-abstract {
  -webkit-line-clamp: 4;
}

/* Contagem / utilidades */
.catalogo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #8a93a8;
  font-size: 13px;
}

@media (max-width: 700px) {
  .catalogo-header h1 {
    font-size: 24px;
  }

  .catalogo-search {
    width: 100%;
  }

  .catalogo-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .catalogo-grid.wide {
    grid-template-columns: 1fr;
  }

  .cat-filter {
    padding: 7px 10px;
    font-size: 12px;
  }
}

/* ---------- Detalhe do personagem (estilo Garena) ---------- */
.cd {
  max-width: 1100px;
  margin: 16px auto 40px;
  padding: 0 16px;
  color: #fff;
}

.cd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffba00;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 186, 0, 0.4);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s, border-color 0.2s;
}

.cd-back:hover {
  background: rgba(255, 186, 0, 0.15);
  border-color: #ffba00;
  color: #fff;
}

.cd-hero {
  border: 1px solid #1e2a45;
  border-radius: 12px;
  background: #0a1228 center/cover no-repeat;
  overflow: hidden;
  margin-bottom: 18px;
}

.cd-hero-inner {
  display: grid;
  grid-template-columns: minmax(140px, 280px) 1fr;
  gap: 8px;
  align-items: end;
  min-height: 320px;
  padding: 20px 24px 24px;
}

.cd-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cd-art img {
  max-height: 380px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.65));
}

.cd-info h1 {
  margin: 10px 0 8px;
  font-size: 40px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 186, 0, 0.35);
}

.cd-quote {
  font-size: 16px;
  font-style: italic;
  color: #ffba00;
  margin: 0 0 8px;
  line-height: 1.45;
}

.cd-sub {
  font-size: 13px;
  color: #b8c0d0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.cd-tag-awaken {
  display: inline-block;
  background: linear-gradient(180deg, #ffba00, #e08900);
  color: #02081e;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-right: 6px;
}

.cd-grid {
  display: grid;
  gap: 16px;
}

.cd-section {
  background: #0a1228;
  border: 1px solid #1e2a45;
  border-radius: 10px;
  padding: 18px 20px 20px;
}

.cd-section h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffba00;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-skill-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.cd-skill-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #060b1a;
  border: 1px solid #2a3a5c;
  border-radius: 10px;
  padding: 6px;
}

.cd-skill-name {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cd-skill-desc {
  margin: 0;
  color: #c5cde0;
  font-size: 14px;
  line-height: 1.65;
}

.cd-levels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cd-levels li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
  background: #060b1a;
  border: 1px solid #1a2440;
  border-radius: 8px;
  padding: 10px 12px;
}

.cd-levels .cd-lv {
  font-size: 11px;
  font-weight: 800;
  color: #02081e;
  background: #ffba00;
  border-radius: 4px;
  text-align: center;
  padding: 4px 0;
  letter-spacing: 0.3px;
}

.cd-levels p {
  margin: 0;
  font-size: 13px;
  color: #c5cde0;
  line-height: 1.5;
}

.cd-awaken {
  border-color: rgba(255, 186, 0, 0.45);
  box-shadow: 0 0 18px rgba(255, 186, 0, 0.12);
}

.cd-awaken-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.cd-awaken-head img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #060b1a;
  border-radius: 10px;
  border: 1px solid rgba(255, 186, 0, 0.4);
  padding: 6px;
}

.cd-awaken-name {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.cd-muted {
  color: #8a93a8;
  font-size: 13px;
}

.cd-bio-layout {
  display: grid;
  grid-template-columns: minmax(160px, 280px) 1fr;
  gap: 18px;
  align-items: start;
}

.cd-bio-pic img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #1e2a45;
  display: block;
}

.cd-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.cd-stat {
  background: #060b1a;
  border: 1px solid #1a2440;
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 110px;
}

.cd-stat span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6f7b96;
  margin-bottom: 2px;
}

.cd-stat strong {
  font-size: 14px;
  color: #fff;
}

.cd-bio-text p {
  margin: 0;
  color: #c5cde0;
  font-size: 14px;
  line-height: 1.7;
}

.cd-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.cd-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffba00;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 186, 0, 0.4);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cd-nav-link:hover {
  background: rgba(255, 186, 0, 0.15);
  border-color: #ffba00;
  color: #fff;
}

@media (max-width: 700px) {
  .cd-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: 0;
    padding: 16px;
  }

  .cd-art img {
    max-height: 260px;
  }

  .cd-info h1 {
    font-size: 28px;
  }

  .cd-bio-layout {
    grid-template-columns: 1fr;
  }

  .cd-levels li {
    grid-template-columns: 48px 1fr;
  }

  .cd-pager {
    flex-direction: column;
  }

  .cd-nav-link {
    justify-content: center;
  }
}
