/* =========================================================
   CATEGORIES.CSS — específico de categories.html
   (usa base.css, navbar.css, footer.css, components.css)
   ========================================================= */

body { display: flex; flex-direction: column; min-height: 100vh; }

.page { max-width: 900px; margin: 0 auto; padding: 32px 24px 80px; flex: 1; width: 100%; }

.page-header { margin-bottom: 28px; }
.page-tag {
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.page-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 36px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.03em; line-height: 1; margin-bottom: 8px;
}
.page-sub { font-size: 14px; color: var(--muted); font-weight: 500; }

.cats-list { display: flex; flex-direction: column; gap: 12px; }

.cat-block {
  background: var(--card); border: 1px solid var(--border); overflow: hidden;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}
.cat-block.open { border-color: var(--red); }

.cat-header {
  width: 100%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 24px 20px; text-align: left; position: relative;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  overflow: hidden;
}
.cat-header::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.4) 100%);
  z-index: 1; transition: background 0.3s ease;
}
.cat-header:hover::before {
  background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 50%, rgba(0,0,0,0.6) 100%);
}

.cat-header-left, .cat-header-right { position: relative; z-index: 2; }
.cat-header-left { display: flex; align-items: center; gap: 14px; }
.cat-name {
  font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--white); line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.cat-desc { font-size: 13px; color: #ccc; margin-top: 4px; font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }

.cat-header-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.cat-count {
  font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: rgba(224,4,27,0.8);
  padding: 4px 10px; border-radius: 4px; backdrop-filter: blur(4px);
}
.chevron {
  width: 20px; height: 20px; color: var(--white); transition: transform .3s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.cat-block.open .chevron { transform: rotate(180deg); color: var(--red); }

.cat-body {
  max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(0.4,0,0.2,1);
  border-top: 0px solid var(--border); background: var(--card);
}
.cat-block.open .cat-body { max-height: 2000px; border-top: 1px solid var(--border); }

.champs-list { padding: 4px 0; }

.champ-row {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 20px;
  border-bottom: 1px solid var(--border); transition: background .15s;
}
.champ-row:last-child { border-bottom: none; }
.champ-row:hover { background: rgba(255,255,255,0.02); }

.champ-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }

.champ-logo {
  width: 48px; height: 48px; border-radius: 4px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
  overflow: hidden;
}
.champ-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.champ-abbr {
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 900;
  letter-spacing: 0.05em; text-align: center; line-height: 1.1;
}
.champ-meta { flex: 1; min-width: 0; }
.champ-name {
  font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.champ-abbr-sub { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 500; }

.champ-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.info-wrap { position: relative; }
.info-btn.active { border-color: var(--red); color: var(--red); background: rgba(224,4,27,0.1); }

.info-popup {
  position: absolute; right: 0; bottom: calc(100% + 8px); background: var(--dark);
  border: 1px solid var(--border); min-width: 180px; z-index: 20; display: none; flex-direction: column;
  border-radius: 6px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.info-popup.show { display: flex; }

.info-link {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; color: var(--light);
  text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-size: 12px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--border); transition: color .2s, background .2s;
}
.info-link:last-child { border-bottom: none; }
.info-link:hover { color: var(--white); background: var(--card2); }
.info-link svg { width: 13px; height: 13px; flex-shrink: 0; }

.empty-state {
  text-align: center; padding: 60px 0; font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; display: none;
}

.search-wrap { margin-bottom: 24px; }
.search-input { border-radius: 4px;}
/* TOAST DE NOTIFICAÇÃO */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--card2);
    border: 1px solid var(--border);
    border-left: 4px solid #22c55e;
    color: var(--white);
    padding: 14px 24px;
    border-radius: 6px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000; 
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s, visibility 0.4s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}
.toast svg { width: 18px; height: 18px; color: #22c55e; flex-shrink: 0;}
@media (max-width: 640px) {
  .page { padding: 20px 12px 60px; }
  .cat-header { padding: 20px 14px; }
  .champ-row { padding: 12px 14px; }
  .champ-name { font-size: 14px; }
  .cat-name { font-size: 20px; }
  /* Cards das categorias: dá espaço ao texto e deixa o contador mais discreto */
  .cat-header-left { min-width: 0; flex: 1; }
  .cat-header-right { gap: 10px; }
  .cat-count { padding: 4px 8px; font-size: 10px; white-space: nowrap; }
}
.champ-name {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
}

.champ-social-btn {
  color: #888;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s, transform 0.2s;
  /* Um ligeiro ajuste para o ícone não ficar desalinhado do centro do texto */
  margin-top: -1px; 
}

.champ-social-btn:hover {
  color: #E0041B;
  transform: scale(1.1);
}

.champ-social-btn svg {
  width: 16px;
  height: 16px;
}