/* ===================================
   KNOWS.exe - STYLE FINAL
=================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

:root {
  --bg: #050505;
  --card: rgba(20, 20, 20, .65);
  --red: #ff2020;
  --red2: #b30000;
  --green: #17c964;
  --gold: #ffd447;
  --text: #fff;
  --text2: #bdbdbd;
  --glass: blur(18px);
}

html, body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body {
  background: #050505;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ===================================
   FUNDO: MATRIX / VÍDEO
=================================== */

#matrix{
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: -1;
    pointer-events: none;
}

#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  display: none;
}

#videoOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: -2;
  display: none;
}

/* LOADER */

#loader {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  z-index: 99999;
  transition: .8s;
}

.loaderBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.loaderBox img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--red);
  box-shadow: 0 0 35px var(--red);
}

.loaderBox h1 {
  font-size: 30px;
}

.loaderBox span {
  color: var(--red);
}

/* NAVBAR */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8%;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,0,0,.25);
  z-index: 999;
}

.logoArea {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logoArea img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red);
  box-shadow: 0 0 15px var(--red);
  transition: .4s;
}

.logoArea img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 45px var(--red);
}

.logoArea span {
  font-size: 22px;
  font-weight: 700;
}

.menu {
  display: flex;
  gap: 25px;
}

.menu a {
  color: #fff;
  text-decoration: none;
  transition: .3s;
  font-weight: 500;
}

.menu a:hover {
  color: var(--red);
}

/* HEADER */

header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 60px;
  position: relative;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  z-index: -1;
}

#avatar {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--red);
  box-shadow: 0 0 40px var(--red);
  margin-bottom: 25px;
  animation: float 4s ease-in-out infinite;
  transition: .4s;
}

#avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 45px var(--red);
}

#siteNome {
  font-size: 52px;
  margin-bottom: 18px;
  text-shadow: 0 0 25px rgba(255,32,32,.5);
}

#bio {
  max-width: 700px;
  font-size: 18px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 35px;
}

.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===================================
   BOTÕES GERAIS
=================================== */

#btnWhatsapp, #copyButton {
  padding: 15px 38px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: .35s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#btnWhatsapp {
  background: linear-gradient(45deg, var(--red), var(--red2));
  color: #fff;
  box-shadow: 0 0 25px rgba(255,0,0,.45);
}

#btnWhatsapp:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px var(--red);
}

#copyButton {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  backdrop-filter: blur(10px);
}

#copyButton:hover {
  background: var(--red);
}

/* ===================================
   CATÁLOGO
=================================== */

#catalogo {
  padding: 90px 8%;
}

#catalogo h2 {
  font-size: 38px;
  margin-bottom: 30px;
  text-align: center;
}

#search {
  width: 100%;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  outline: none;
  margin-bottom: 30px;
  font-size: 16px;
  backdrop-filter: blur(10px);
}

#search:focus {
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(255,0,0,.35);
}

/* ===================================
   FILTROS
=================================== */

#filtros {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.filtro {
  padding: 10px 22px;
  border-radius: 30px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  transition: .3s ease;
  font-size: 14px;
  font-weight: 500;
}

.filtro:hover,
.filtro.ativo {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(255,0,0,.45);
}

/* ===================================
   CARROSSEL (canais / grupos)
=================================== */

.carouselTitulo {
  font-size: 24px;
  margin: 10px 0 20px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}

.carousel {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: 6px 4px 24px;
  margin-bottom: 30px;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.carousel.arrastando {
  cursor: grabbing;
  scroll-snap-type: none;
}

.carousel::-webkit-scrollbar {
  height: 8px;
}

.carousel::-webkit-scrollbar-track {
  background: rgba(255,255,255,.05);
  border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 10px;
}

.carouselVazio {
  color: var(--text2);
  font-size: 14px;
  padding: 10px 4px;
}

/* ===================================
   CARDS
=================================== */

.card {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
  background: var(--card);
  backdrop-filter: var(--glass);
  border: 1px solid rgba(255,0,0,.15);
  border-radius: 22px;
  overflow: hidden;
  transition: .35s ease;
  animation: fadeUp .8s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255,0,0,.4);
  box-shadow: 0 0 35px rgba(255,0,0,.30);
}

.card.fixado {
  border-color: rgba(255,212,71,.55);
  box-shadow: 0 0 25px rgba(255,212,71,.20);
}

.card.fixado:hover {
  border-color: rgba(255,212,71,.8);
  box-shadow: 0 0 35px rgba(255,212,71,.35);
}

/* imagem + selos */

.cardImgWrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: #0c0c0c;
}

.cardImgWrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cardSkeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #111 25%, #1c1c1c 37%, #111 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.badge {
  position: absolute;
  top: 14px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.badge.tipo {
  left: 14px;
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
}

.badgesDireita {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 2;
}

.badgesDireita .badge {
  position: static;
}

.badge.vip {
  background: linear-gradient(45deg, var(--red), var(--red2));
  color: #fff;
  box-shadow: 0 0 18px rgba(255,0,0,.6);
}

.badge.fixado {
  background: linear-gradient(45deg, var(--gold), #b8860b);
  color: #1a1200;
  box-shadow: 0 0 18px rgba(255,212,71,.6);
}

/* corpo do card */

.cardInfo {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.cardTitulo {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  min-height: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cardTags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
}

.pill.whatsapp {
  background: rgba(23,201,100,.15);
  border: 1px solid rgba(23,201,100,.5);
  color: var(--green);
}

.pill.categoria {
  background: rgba(255,32,32,.1);
  border: 1px solid rgba(255,32,32,.4);
  color: var(--red);
}

.cardButtons {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btnEntrar, .btnCopiar {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btnEntrar {
  background: linear-gradient(45deg, var(--red), var(--red2));
  color: #fff;
  box-shadow: 0 0 15px rgba(255,0,0,.35);
}

.btnEntrar:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px var(--red);
}

.btnCopiar {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
}

.btnCopiar:hover {
  background: rgba(255,255,255,.18);
}

/* ===================================
   FOOTER
=================================== */

footer {
  padding: 70px 20px;
  margin-top: 80px;
  text-align: center;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255,0,0,.15);
}

#footerLogo {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--red);
  box-shadow: 0 0 20px var(--red);
  margin-bottom: 20px;
  transition: .4s;
}

#footerLogo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 45px var(--red);
}

#footerNome {
  font-size: 28px;
  margin-bottom: 10px;
}

#footerText {
  color: var(--text2);
  line-height: 1.7;
}

/* ===================================
   BOTÃO TOPO E MÚSICA
=================================== */

#topButton, #musicButton {
  position: fixed;
  right: 25px;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--red), var(--red2));
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 0 20px rgba(255,0,0,.45);
  transition: .3s ease;
  align-items: center;
  justify-content: center;
}

#topButton {
  bottom: 25px;
  display: none;
}

#musicButton {
  bottom: 95px;
  display: none;
}

#topButton:hover, #musicButton:hover {
  transform: scale(1.1);
  box-shadow: 0 0 35px var(--red);
}

/* ===================================
   ANIMAÇÕES
=================================== */

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================
   RESPONSIVO
=================================== */

@media (max-width: 900px) {
  nav {
    padding: 18px;
    flex-direction: column;
    gap: 18px;
  }
  .menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  #siteNome {
    font-size: 40px;
  }
  #avatar {
    width: 160px;
    height: 160px;
  }
  #catalogo {
    padding: 70px 20px;
  }
}

@media (max-width: 600px) {
  .buttons {
    flex-direction: column;
    width: 100%;
  }
  #btnWhatsapp, #copyButton {
    width: 100%;
  }
  .logoArea span {
    font-size: 18px;
  }
  #siteNome {
    font-size: 32px;
  }
  #bio {
    font-size: 15px;
  }
  .card {
    width: 240px;
  }
  .cardImgWrap {
    height: 150px;
  }
}

/* ===================================
   SCROLLBAR GERAL
=================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 30px;
}

::selection {
  background: var(--red);
  color: #fff;
}

/* Fim do CSS */
