:root {
  --preto: #0d0d0d;
  --cinza-escuro: #1a1a1a;
  --cinza: #2b2b2b;
  --cinza-claro: #e5e5e5;
  --branco: #ffffff;
  --vermelho: #7a0b0b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--preto);
  color: var(--cinza-claro);
  line-height: 1.7;
  font-size: 15px;
}

/* MENU */

.menu {
  background: var(--preto);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 18px 40px;
  display: flex;
  gap: 28px;
}

.menu a {
  color: var(--cinza-claro);
  text-decoration: none;
  font-size: 14px;
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--vermelho);
  transition: width 0.3s ease;
}

.menu a:hover::after {
  width: 100%;
}

/* BANNER */

.banner {
  background:
    linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)),
    url("../img/banner.jpg") center/cover no-repeat;
  padding: 90px 40px;
  text-align: center;
}

.logo-banner {
  width: 260px;
  margin-bottom: 25px;
}

.banner h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.banner p {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(255,255,255,0.65);
}

/* CONTEÚDO */

.conteudo {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 40px;
}

.card {
  background: var(--cinza-escuro);
  border-radius: 6px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.03);
}

.card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.alerta {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin-top: 15px;
}

/* OLHOS */

#olhos-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.olho {
  position: absolute;
  width: 40px;
  height: 20px;
  background: radial-gradient(circle, #300000, #000);
  border-radius: 50%;
  opacity: 0;
  filter: blur(0.4px);
  transition: opacity 0.6s ease;
}

.pupila {
  position: absolute;
  width: 8px;
  height: 8px;
  background: red;
  border-radius: 50%;
  top: 6px;
  left: 16px;
}

/* =========================
   ATUALIZAÇÕES - NOTIFICAÇÕES
========================= */

.notificacoes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notificacao {
  background: #141414;
  border-radius: 12px;
  padding: 16px 20px;
  border-left: 4px solid var(--vermelho);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.notificacao-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.notificacao-header span {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

.notificacao p {
  margin: 0;
  font-size: 14px;
  color: var(--cinza-claro);
}

/* =========================
   AVISOS AUTOMÁTICOS
========================= */

.avisos {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aviso {
  background: #101010;
  border-radius: 6px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
}

.aviso strong {
  color: var(--vermelho);
  font-weight: 500;
}

.aviso-ia {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

/* =========================
   ORIENTAÇÕES E BOAS PRÁTICAS
========================= */

.orientacoes-bg {
  background:
    linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.9)),
    url("../img/orientacoes-bg.jpg") center/cover no-repeat;
  padding: 80px 40px;
}

.orientacoes-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(15,15,15,0.85);
  padding: 50px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.orientacoes-container h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 25px;
}

.orientacoes-container p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  line-height: 1.8;
}

.lista-orientacoes {
  margin-top: 30px;
  padding-left: 0;
  list-style: none;
}

.lista-orientacoes li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.lista-orientacoes li::before {
  content: "✔";
  color: var(--vermelho);
  margin-right: 10px;
  font-size: 12px;
}

.mensagem-final {
  margin-top: 35px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  border-left: 3px solid var(--vermelho);
  padding-left: 15px;
}

/* =========================
   PÁGINA DE TAREFAS
========================= */

body.tarefas-page {
  background:
    linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.9)),
    url("../img/fundo-tarefas.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cards-tarefas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.card-tarefa {
  background: rgba(20,20,20,0.9);
  padding: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
}

.card-tarefa h3 {
  margin-bottom: 10px;
  font-size: 15px;
  color: #ffffff;
}

.card-tarefa ul {
  list-style: none;
  padding: 0;
}

.card-tarefa ul li {
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
}

.card-tarefa.destaque {
  border: 1px solid #7a0000;
  background: rgba(40,10,10,0.9);
}

/* =========================
   BARATA – DEP. FAZ-TUDO
========================= */

.card-tarefa.faz-tudo {
  position: relative;
  overflow: hidden;
}

/* área de circulação */
.barata-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* atrás do conteúdo */
}

/* barata */
.barata {
  position: absolute;
  width: 38px;
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.8));
  transition: transform 0.2s linear;
}

/* =========================
   Comunicados
========================= */

:root {
  --preto: #0d0d0d;
  --cinza-escuro: #1a1a1a;
  --cinza: #2b2b2b;
  --cinza-claro: #e5e5e5;
  --branco: #ffffff;
  --vermelho: #7a0b0b;
}

/* RESET */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--preto);
  color: var(--cinza-claro);
  line-height: 1.7;
  font-size: 15px;
}

/* =========================
   MENU (IGUAL AO RESTO DO SITE)
========================= */

.menu {
  background: var(--preto);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 18px 40px;
  display: flex;
  gap: 28px;
}

.menu a {
  color: var(--cinza-claro);
  text-decoration: none;
  font-size: 14px;
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--vermelho);
  transition: width 0.3s ease;
}

.menu a:hover::after {
  width: 100%;
}

/* =========================
   OLHOS (ATIVOS NA PÁGINA)
========================= */

#olhos-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

.olho {
  position: absolute;
  width: 40px;
  height: 20px;
  background: radial-gradient(circle, #300000, #000);
  border-radius: 50%;
  opacity: 0;
  filter: blur(0.4px);
  transition: opacity 0.6s ease;
}

.pupila {
  position: absolute;
  width: 8px;
  height: 8px;
  background: red;
  border-radius: 50%;
  top: 6px;
  left: 16px;
}

/* ===============================
   PÁGINA DE COMUNICAÇÕES
================================ */

.pagina-comunicados {
  min-height: 100vh;

  background:
    linear-gradient(
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0.9)
    ),
    url("../img/fundo-comunicados.jpg") center / cover no-repeat;

  background-attachment: fixed;

  padding: 80px 8%;
  font-family: Arial, Helvetica, sans-serif;
}

/* ---------- TÍTULO ---------- */

.titulo-comunicados {
  text-align: center;
  color: var(--branco);
  font-size: 42px;
  letter-spacing: 3px;
  margin-bottom: 60px;
  font-family: 'Playfair Display', serif;
  position: relative;
}

.titulo-comunicados span {
  display: block;
  font-size: 13px;
  letter-spacing: 4px;
  color: #9a9a9a;
  margin-top: 10px;
  text-transform: uppercase;
}

.titulo-comunicados::after {
  content: "";
  width: 120px;
  height: 2px;
  background: var(--branco);
  display: block;
  margin: 25px auto 0;
  opacity: 0.5;
}

/* ---------- MURAL ---------- */

.mural-comunicados {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
}

/* ---------- CARD PADRÃO ---------- */

.comunicado-card {
  background: #000;
  border: 2px solid #ffffff;
  padding: 28px 26px;
  color: #ffffff;
  position: relative;
  box-shadow: 0 12px 28px rgba(0,0,0,0.75);
}

/* ---------- TÍTULO DO COMUNICADO ---------- */

.comunicado-titulo {
  font-size: 22px;
  margin-bottom: 16px;
  letter-spacing: 1px;
  font-family: 'Playfair Display', serif;
}

/* ---------- TEXTO ---------- */

.comunicado-card p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ---------- TEXTO DE AVISO ---------- */

.texto-aviso {
  font-size: 12px;
  color: #cfcfcf;
  margin-top: 12px;
}

/* ---------- AVISO DE IA ---------- */

.aviso-ia {
  font-size: 11px;
  color: #6b6b6b;
  background: #e5e5e5;
  padding: 8px 10px;
  margin-top: 14px;
  border-left: 3px solid #9a9a9a;
  font-family: monospace;
}

/* ---------- MISSÃO CORROMPIDA ---------- */

.missao-corrompida {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-family: monospace;
  color: #9a9a9a;
  letter-spacing: 2px;
  opacity: 0.85;
  animation: piscarCorrompido 2.8s infinite;
}

@keyframes piscarCorrompido {
  0%   { opacity: 0.85; }
  45%  { opacity: 0.85; }
  50%  { opacity: 0.3; }
  55%  { opacity: 0.9; }
  100% { opacity: 0.85; }
}

/* ===============================
   COMUNICADO DE NATAL
================================ */

.comunicado-natal {
  border: 2px solid #b30000;
  background: #0b0b0b;
}

/* TÍTULO NATALINO */

.comunicado-natal .comunicado-titulo.natal {
  font-family: 'Mountains of Christmas', cursive;
  color: #0aa84f;
  font-size: 26px;
  text-align: center;
  letter-spacing: 2px;
}

/* ---------- LAÇO ---------- */

.laco-natal {
  width: 42px;
  height: 42px;
  background-image: url("../img/laco-natal.png");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

/* =========================
   PERFIL DO FUNCIONÁRIO
========================= */

:root {
  --preto: #0d0d0d;
  --cinza-escuro: #1a1a1a;
  --cinza: #2b2b2b;
  --cinza-claro: #e5e5e5;
  --branco: #ffffff;
  --vermelho: #7a0b0b;
}

/* =========================
   RESET E ESTILO BASE
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--preto);
  color: var(--cinza-claro);
  line-height: 1.7;
  font-size: 15px;
}

/* =========================
   MENU
========================= */
.menu {
  background: var(--preto);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 18px 40px;
  display: flex;
  gap: 28px;
}

.menu a {
  color: var(--cinza-claro);
  text-decoration: none;
  font-size: 14px;
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--vermelho);
  transition: width 0.3s ease;
}

.menu a:hover::after {
  width: 100%;
}

/* =========================
   BANNER
========================= */
.banner {
  background:
    linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)),
    url("../img/banner.jpg") center/cover no-repeat;
  padding: 90px 40px;
  text-align: center;
}

.logo-banner {
  width: 260px;
  margin-bottom: 25px;
}

.banner h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.banner p {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(255,255,255,0.65);
}

/* =========================
   PÁGINA DE PERFIL
========================= */
.pagina-perfil {
  position: relative;
  min-height: 100vh;
  background: url("../img/fundo-perfil.jpg") center/cover no-repeat;
  overflow: hidden;
}

/* Overlay escuro */
.pagina-perfil::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}

/* Camadas glitch */
.pagina-perfil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/fundo-perfil.jpg") center/cover no-repeat;
  z-index: 0;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  animation: glitch-background 2s infinite;
  opacity: 0.2;
}

@keyframes glitch-background {
  0% { clip-path: polygon(0 2%, 100% 0%, 100% 2%, 0 2%); }
  10% { clip-path: polygon(0 10%, 100% 12%, 100% 15%, 0 13%); }
  20% { clip-path: polygon(0 20%, 100% 18%, 100% 22%, 0 21%); }
  30% { clip-path: polygon(0 32%, 100% 30%, 100% 34%, 0 33%); }
  40% { clip-path: polygon(0 40%, 100% 42%, 100% 45%, 0 43%); }
  50% { clip-path: polygon(0 50%, 100% 48%, 100% 52%, 0 51%); }
  60% { clip-path: polygon(0 60%, 100% 58%, 100% 62%, 0 61%); }
  70% { clip-path: polygon(0 70%, 100% 68%, 100% 72%, 0 71%); }
  80% { clip-path: polygon(0 80%, 100% 78%, 100% 82%, 0 81%); }
  90% { clip-path: polygon(0 90%, 100% 88%, 100% 92%, 0 91%); }
  100% { clip-path: polygon(0 100%, 100% 98%, 100% 100%, 0 100%); }
}

/* Conteúdo acima do fundo glitch */
.pagina-perfil > * {
  position: relative;
  z-index: 1;
}

/* =========================
   FOTO DE PERFIL (CÍRCULO)
========================= */
.perfil-foto img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--vermelho);
}

/* =========================
   FICHA DO FUNCIONÁRIO
========================= */
.perfil-card {
  max-width: 650px;
  margin: 60px auto;
  padding: 40px;
  background: rgba(20,20,20,0.85);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.perfil-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
  color: #ffffff;
}

.perfil-dados {
  list-style: none;
  padding: 0;
}

.perfil-dados li {
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
}

.perfil-dados strong {
  color: var(--cinza-claro);
}

/* =========================
   NOME E IDADE COM GLITCH
========================= */
.glitch-vermelho {
  position: relative;
  color: #b30000;
  font-family: monospace;
  letter-spacing: 2px;
  font-weight: bold;
}

.glitch-vermelho::before,
.glitch-vermelho::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.8;
}

.glitch-vermelho::before {
  color: #ff0000;
  transform: translate(1px, -1px);
  clip-path: inset(0 0 60% 0);
  animation: glitch1 2s infinite;
}

.glitch-vermelho::after {
  color: #7a0000;
  transform: translate(-1px, 1px);
  clip-path: inset(40% 0 0 0);
  animation: glitch2 1.8s infinite;
}

@keyframes glitch1 {
  0% { transform: translate(1px, -1px); }
  50% { transform: translate(-1px, 1px); }
  100% { transform: translate(1px, -1px); }
}

@keyframes glitch2 {
  0% { transform: translate(-1px, 1px); }
  50% { transform: translate(1px, -1px); }
  100% { transform: translate(-1px, 1px); }
}

/* =========================
   AVALIAÇÃO EM ESTRELAS
========================= */
.avaliacao-estrelas {
  color: #ffd700;
  letter-spacing: 2px;
  font-size: 15px;
}

/* =========================
   STATUS
========================= */
.perfil-status {
  margin-top: 20px;
  font-size: 14px;
}

.perfil-status span {
  font-weight: bold;
  color: #0f0;
}

.perfil-status.inativo span {
  color: #ff0000;
}

/* =========================
   MISSÃO
========================= */
.perfil-missao {
  margin-top: 20px;
  font-size: 14px;
  font-family: monospace;
  color: #9a9a9a;
}

/* =========================
   OBSERVAÇÃO
========================= */
.perfil-observacao {
  margin-top: 25px;
  font-size: 12px;
  font-style: italic;
  color: rgba(255,255,255,0.5);
}

/* =========================
   BALÃO DE FALA – SKY CO.
========================= */

.fala-sky {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 40px;
}

/* LOGO */

.fala-logo img {
  width: 90px;        /* logo maior */
  height: 90px;
  background: #ffffff;
  padding: 12px;      /* ajusta o respiro */
  border-radius: 50%;
  border: 2px solid var(--vermelho);
}

/* BALÃO */

.balao-sky {
  position: relative;
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 18px 22px;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}

/* SETINHA DO BALÃO */

.balao-sky::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 22px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid rgba(20,20,20,0.95);
}
