/* ==========================================================
   R.H.S V5 — DESIGN TOKENS (RED/BLACK EDITION)
   Cor:    tema escuro com vermelho forte como único acento
   ========================================================== */

:root{
  --bg:#000000;
  --surface:#0A0A0A;
  --surface-2:#111111;
  --border:#1A1A1A;
  --text:#FFFFFF;
  --muted:#666666;
  
  /* RED */
  --red:#FF0000;
  --red-dark:#CC0000;
  --red-glow:#FF0000;
  --red-dim:#1A0000;
  
  --signal:var(--red);
  --signal-dim:var(--red-dim);
  --pink:var(--red);
  --blue:var(--red);
  --green:var(--red);
  --gold:var(--red);
  --danger:var(--red);
  
  --radius:16px;
  --font-display:'Space Grotesk', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'IBM Plex Mono', monospace;
}

*{margin:0;padding:0;box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  min-height:100vh;
  overflow-x:hidden;
  line-height:1.5;
}

:focus-visible{outline:2px solid var(--signal);outline-offset:2px;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;}
}

h1,h2,h3{font-family:var(--font-display);letter-spacing:-.01em;}

/* ---------- fundo vermelho ---------- */
#sinal{position:fixed;inset:0;z-index:-3;opacity:.35;}
.glow{
  position:fixed;
  width:480px;
  height:480px;
  border-radius:50%;
  filter:blur(140px);
  z-index:-2;
  pointer-events:none;
  animation: redPulse 3s ease-in-out infinite alternate;
}
.g1{
  background:var(--red);
  opacity:.15;
  top:-10%;
  left:-8%;
}
.g2{
  background:var(--red);
  opacity:.10;
  bottom:-12%;
  right:-10%;
  animation-delay:1.5s;
}
.g3{
  background:var(--red);
  opacity:.08;
  top:40%;
  left:50%;
  transform:translateX(-50%);
  width:600px;
  height:600px;
  animation-delay:2.5s;
}

@keyframes redPulse{
  0%{ opacity:.05; transform:scale(1); }
  100%{ opacity:.20; transform:scale(1.3); }
}

/* ==========================================================
   TELA DE ENTRADA — vermelho pulsante
   ========================================================== */
#welcome{
  position:fixed;inset:0;z-index:20;
  display:flex;align-items:center;justify-content:center;
  background:#000000;
  padding:24px;
}
.welcome-card{text-align:center;max-width:380px;}
.pulse-mark{position:relative;width:100px;height:100px;margin:0 auto 32px;display:flex;align-items:center;justify-content:center;}

/* ========== CORREÇÃO DA LOGO ========== */
.pulse-mark .logo{
  width:64px;           /* tamanho maior */
  height:64px;          /* igual à largura pra ficar redondo */
  border-radius:50%;    /* transforma em círculo */
  object-fit:cover;     /* corta a imagem pra caber no círculo */
  position:relative;
  z-index:2;
  opacity:.9;
  filter:drop-shadow(0 0 30px var(--red));
  border:2px solid var(--red); /* borda vermelha combinando */
}
/* ===================================== */

.ring{
  position:absolute;
  border-radius:50%;
  opacity:0;
  animation:pulseRing 3s ease-out infinite;
}
.ring.r1{
  width:56px;
  height:56px;
  border:2px solid var(--red);
  animation-delay:0s;
  box-shadow:0 0 40px var(--red), inset 0 0 40px var(--red);
}
.ring.r2{
  width:80px;
  height:80px;
  border:2px solid var(--red);
  animation-delay:1s;
  box-shadow:0 0 40px var(--red), inset 0 0 40px var(--red);
}
.ring.r3{
  width:110px;
  height:110px;
  border:2px solid var(--red);
  animation-delay:2s;
  box-shadow:0 0 40px var(--red), inset 0 0 40px var(--red);
}
@keyframes pulseRing{
  0%{ transform:scale(0.5); opacity:.8; }
  100%{ transform:scale(2); opacity:0; }
}
.welcome-card h1{
  font-size:2.4rem;
  font-weight:700;
  letter-spacing:.04em;
  color:var(--red);
  text-shadow:0 0 60px rgba(255,0,0,.5), 0 0 120px rgba(255,0,0,.2);
}
.welcome-card .verse{
  color:#444;
  font-style:italic;
  font-size:.9rem;
  margin-top:12px;
}
.welcome-card .sub{
  color:#444;
  margin-top:8px;
  font-size:.85rem;
  opacity:.8;
}
#entrar{
  margin-top:32px;
  padding:14px 40px;
  border:2px solid var(--red);
  border-radius:999px;
  background:transparent;
  color:var(--red);
  font-family:var(--font-display);
  font-weight:700;
  font-size:.95rem;
  cursor:pointer;
  letter-spacing:.04em;
  transition:all .3s ease;
  box-shadow:0 0 30px rgba(255,0,0,.1);
  text-transform:uppercase;
}
#entrar:hover{
  background:var(--red);
  color:#000000;
  box-shadow:0 0 60px rgba(255,0,0,.4);
  transform:scale(1.05);
}

/* ==========================================================
   SITE
   ========================================================== */
#site{display:none;max-width:1100px;margin:0 auto;padding:0 20px 80px;}

header.top{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  gap:6px;padding:36px 0 32px;
}
.logo-top{
  width:76px;height:76px;border-radius:50%;
  object-fit:cover;
  background:var(--surface);padding:10px;
  border:2px solid var(--red);
  margin-bottom:10px;
  box-shadow:0 0 40px rgba(255,0,0,.15);
}
header.top h1{
  font-size:1.6rem;
  color:var(--red);
  text-shadow:0 0 40px rgba(255,0,0,.3);
}
header.top p{color:#444;font-size:.85rem;}
.main-button{
  background:var(--red);
  color:#000000;
  text-decoration:none;
  padding:12px 28px;
  border-radius:999px;
  font-weight:700;
  font-size:.9rem;
  transition:all .3s ease;
  white-space:nowrap;
  margin-top:14px;
  box-shadow:0 0 40px rgba(255,0,0,.2);
  text-transform:uppercase;
  letter-spacing:.03em;
}
.main-button:hover{
  transform:translateY(-2px) scale(1.03);
  box-shadow:0 0 60px rgba(255,0,0,.4);
}

/* ---------- cabeçalho de seção ---------- */
.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:16px;}
.section-icon{
  width:34px;height:34px;border-radius:10px;
  background:rgba(255,0,0,.12);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  border:1px solid rgba(255,0,0,.3);
}
.section-icon svg{width:17px;height:17px;color:var(--red);}
.section-heading h2{
  font-size:1.25rem;
  flex-shrink:0;
  color:var(--red);
  text-shadow:0 0 30px rgba(255,0,0,.2);
}
.section-heading::after{content:"";flex:1;height:1px;background:#1A1A1A;}
.count-pill{
  background:var(--surface-2);
  border:1px solid var(--red);
  color:var(--red);
  font-family:var(--font-mono);
  font-size:.78rem;
  padding:3px 12px;
  border-radius:999px;
  box-shadow:0 0 20px rgba(255,0,0,.1);
}
.mostrando{color:#444;font-size:.8rem;margin-bottom:14px;}
.mostrando span{color:var(--red);font-weight:600;}

/* ---------- explorar ---------- */
.explorar{margin-bottom:52px;}
.parceria h2{
  font-size:1.4rem;
  margin-bottom:6px;
  color:var(--red);
  text-shadow:0 0 30px rgba(255,0,0,.2);
}
.section-sub{color:#444;font-size:.88rem;margin-bottom:20px;}

.search-row{position:relative;margin:18px 0 18px;}
.search-icon{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  color:#444;
}
#pesquisa{
  width:100%;
  padding:13px 16px 13px 44px;
  border-radius:12px;
  border:1px solid #1A1A1A;
  background:var(--surface);
  color:var(--text);
  font-family:var(--font-body);
  font-size:.92rem;
  transition:all .3s ease;
}
#pesquisa::placeholder{color:#444;}
#pesquisa:focus{
  border-color:var(--red);
  box-shadow:0 0 40px rgba(255,0,0,.1);
  outline:none;
}

/* filtros estilo pill vermelho */
.filtros{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px;}
.filtro-pill{
  background:var(--surface);
  border:1px solid #1A1A1A;
  color:#666;
  font-family:var(--font-body);
  font-size:.82rem;
  font-weight:500;
  padding:9px 16px;
  border-radius:999px;
  cursor:pointer;
  white-space:nowrap;
  transition:all .2s ease;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.filtro-pill .icon{display:inline-flex;width:15px;height:15px;flex-shrink:0;}
.filtro-pill .icon svg{width:100%;height:100%;}
.filtro-pill:hover{
  border-color:var(--red);
  color:var(--text);
  box-shadow:0 0 30px rgba(255,0,0,.1);
}
.filtro-pill.principal.active{
  background:var(--red);
  border-color:var(--red);
  color:#000000;
  box-shadow:0 0 40px rgba(255,0,0,.3);
}
.filtros-cat .filtro-pill.active{
  background:transparent;
  border-color:var(--red);
  color:var(--red);
  box-shadow:0 0 30px rgba(255,0,0,.15);
}
.filtros-cat{margin-bottom:22px;}

.carrossel-bloco{margin-bottom:28px;}
.carrossel-titulo{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.95rem;
  font-weight:600;
  color:var(--text);
  margin-bottom:12px;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.carrossel-titulo .icon{width:18px;height:18px;color:var(--red);flex-shrink:0;}
.carrossel-titulo .icon svg{width:100%;height:100%;}
.carrossel-titulo .count-pill{margin-left:2px;}

.cards{
  display:flex;
  flex-direction:row;
  gap:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:8px;
  -webkit-overflow-scrolling:touch;
}
.cards::-webkit-scrollbar{height:6px;}
.cards::-webkit-scrollbar-thumb{background:var(--border);border-radius:999px;}
.community-card{
  scroll-snap-align:start;
  flex:0 0 240px;
  min-width:240px;
}

.community-card{
  background:var(--surface);
  border:1px solid #1A1A1A;
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:all .3s ease;
  position:relative;
}
.community-card:hover{
  transform:translateY(-3px);
  border-color:var(--red);
  box-shadow:0 0 50px rgba(255,0,0,.08);
}
.card-media{position:relative;width:100%;aspect-ratio:16/10;background:var(--surface-2);overflow:hidden;}
.community-img{width:100%;height:100%;object-fit:cover;display:block;}
.card-badges{position:absolute;top:10px;left:10px;display:flex;gap:6px;}
.badge{
  font-family:var(--font-mono);
  font-size:.68rem;
  padding:3px 9px;
  border-radius:999px;
  backdrop-filter:blur(6px);
}
.badge-vip{
  background:var(--red);
  color:#000000;
  border:none;
  font-weight:700;
  box-shadow:0 0 30px rgba(255,0,0,.3);
}
.badge-fixado{
  background:rgba(255,0,0,.15);
  color:var(--red);
  border:1px solid rgba(255,0,0,.4);
}
.card-type{
  position:absolute;
  bottom:10px;
  left:10px;
  width:22px;
  height:22px;
  color:var(--red);
  filter:drop-shadow(0 0 15px rgba(255,0,0,.5));
}
.card-type svg{width:100%;height:100%;}
.community-info{padding:16px;display:flex;flex-direction:column;gap:6px;flex:1;}
.community-info h3{
  font-size:1rem;
  font-weight:600;
  color:var(--text);
}
.community-info p{color:#666;font-size:.82rem;flex:1;}
.community-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:.7rem;
  color:#444;
  font-family:var(--font-mono);
  text-transform:uppercase;
  letter-spacing:.03em;
}
.card-button{
  margin-top:8px;
  text-align:center;
  background:var(--red);
  color:#000000;
  text-decoration:none;
  padding:10px;
  border-radius:10px;
  font-weight:700;
  font-size:.86rem;
  transition:all .3s ease;
  box-shadow:0 0 30px rgba(255,0,0,.15);
  text-transform:uppercase;
  letter-spacing:.03em;
}
.card-button:hover{
  filter:brightness(1.15);
  box-shadow:0 0 50px rgba(255,0,0,.3);
  transform:scale(1.02);
}

.empty-state{text-align:center;color:#444;padding:40px 10px;font-size:.92rem;}
.empty-state span{font-size:.8rem;opacity:.8;}

.skeleton{background:linear-gradient(90deg,var(--surface) 0%,var(--surface-2) 50%,var(--surface) 100%);background-size:200% 100%;animation:shimmer 1.4s infinite;}
@keyframes shimmer{0%{background-position:200% 0;}100%{background-position:-200% 0;}}

/* ---------- parceiros ---------- */
.parceiros{margin-bottom:52px;}

/* ---------- parceria ---------- */
.parceria{margin-bottom:40px;}
.partner-box{
  background:var(--surface);
  border:1px solid var(--red);
  border-radius:var(--radius);
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:12px;
  max-width:520px;
  box-shadow:0 0 40px rgba(255,0,0,.05);
}
.partner-box select, .partner-box textarea{
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid #1A1A1A;
  background:var(--surface-2);
  color:var(--text);
  font-family:var(--font-body);
  font-size:.88rem;
  transition:all .3s ease;
}
.partner-box select:focus, .partner-box textarea:focus{
  border-color:var(--red);
  box-shadow:0 0 30px rgba(255,0,0,.1);
  outline:none;
}
.partner-box textarea{min-height:90px;resize:vertical;}
.partner-box button{
  background:var(--red);
  color:#000000;
  border:none;
  border-radius:10px;
  padding:12px;
  font-weight:700;
  cursor:pointer;
  font-size:.9rem;
  transition:all .3s ease;
  box-shadow:0 0 30px rgba(255,0,0,.2);
  text-transform:uppercase;
  letter-spacing:.03em;
}
.partner-box button:hover{
  transform:scale(1.02);
  box-shadow:0 0 50px rgba(255,0,0,.3);
}

footer{text-align:center;color:#444;font-size:.82rem;padding-top:30px;border-top:1px solid #1A1A1A;display:flex;flex-direction:column;gap:10px;}
.admin-link{
  color:var(--red);
  text-decoration:underline;
  font-size:.78rem;
  transition:all .3s ease;
}
.admin-link:hover{
  color:var(--red);
  text-shadow:0 0 30px rgba(255,0,0,.3);
}

/* ---------- toast ---------- */
.toast{
  position:fixed;bottom:24px;left:50%;transform:translateX(-50%);
  background:var(--surface);
  border:1px solid var(--red);
  color:var(--text);
  padding:12px 20px;
  border-radius:12px;
  font-size:.86rem;
  z-index:60;
  box-shadow:0 0 50px rgba(255,0,0,.1);
}

@media (max-width:640px){
  .welcome-card h1{font-size:2rem;}
  header.top{flex-direction:column;align-items:flex-start;}
   }
