/* ===== Dashboard card styles (CSS-only refactor) ===== */

/* Efeito geral dos cards */
.card {
    transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); }

/* VERSÃO CORRIGIDA E MAIS ESPECÍFICA */
.card-body pre {
    background-color: #000;
    color: #00ff00; /* Cor de texto verde, estilo hacker */
    padding: 1rem;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
    border: 1px solid #333;
}

/* ---------- Card com imagem de fundo ---------- */
.card-with-bg {
    position: relative;
    overflow: hidden;
    background-color: transparent !important;
    min-height: 180px;
    border: 1px solid var(--bs-border-color-translucent);
}
.card-with-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg-image, none);
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(.35);
    transform: scale(1.15);
    z-index: 1;
    pointer-events: none;
}
.card-with-bg:not([style*="--bg-image"]) > img:first-of-type {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: blur(6px) brightness(.35) !important;
    transform: scale(1.15) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}
.card-with-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,.55));
    z-index: 2;
    pointer-events: none;
}
.card-with-bg > .card-header,
.card-with-bg > .card-body,
.card-with-bg > .card-footer {
    position: relative;
    z-index: 3;
    background-color: transparent !important;
    color: #fff;
}
.card-with-bg .card-title,
.card-with-bg .card-title a { color: #fff; text-decoration: none; }
.card-with-bg .card-title a:hover { text-decoration: underline; }
.card-with-bg .badge {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
}
.card-with-bg .btn { backdrop-filter: blur(2px); }

/* Grade responsiva */
.cards-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Status */
.status-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .35rem; }
.status-online { background: #28a745; }
.status-offline { background: #dc3545; }

/* Tipografia auxiliar */
.card-with-bg .meta { font-size: .9rem; opacity: .95; }
.card-with-bg hr { border-top-color: rgba(255,255,255,.35); }

/* --- TIMELINE --- */
.timeline { list-style: none; padding: 1rem 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; top: 0; left: 10px; height: 100%; width: 2px; background: var(--bs-border-color); }
.timeline-item { margin-left: 2rem; margin-bottom: 1.5rem; position: relative; }
.timeline-item::before { content: ''; background: var(--bs-primary); width: 12px; height: 12px; border-radius: 50%; position: absolute; left: -2.3rem; top: 0.3rem; border: 2px solid var(--bs-dark); }
.timeline-item-content { background-color: var(--bs-tertiary-bg); padding: 0.8rem 1rem; border-radius: 6px; border: 1px solid var(--bs-border-color-translucent); }
.timeline-item-title { font-weight: bold; margin-bottom: 0.25rem; }

.btn-gradient {
    background-image: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    color: white;
    font-weight: 500;
    transition: opacity 0.2s;
}
.btn-gradient:hover { color: white; opacity: 0.9; }

/* --- INDEX.PHP --- */
.hero-section {
    padding: 8rem 0;
    background: linear-gradient(45deg, rgba(13, 2, 38, 0.8), rgba(41, 1, 38, 0.8)), url('https://wallpapers.com/images/high/abstract-gaming-175rr9ugo2yl5z0i.webp') no-repeat center center;
    background-size: cover;
}
.feature-box { padding: 2rem; border-radius: 8px; background-color: var(--bs-tertiary-bg); transition: transform 0.2s; }
.feature-box:hover { transform: translateY(-5px); }

/* ==== Estilo base “Instagram-like” ==== */
.ig-card { border: none; border-radius: 16px; box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.ig-blob { border-radius: 16px; }
.ig-note { background: #fff; border-radius: 12px; padding: .75rem 1rem; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }

/* CTA único de upgrade */
.upgrade-cta {
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,99,132,.12), rgba(75,192,192,.12));
  padding: 1rem 1.25rem;
  border: 1px solid rgba(0,0,0,.04);
}

/* Destaque IwForensics (base) */
.iwforensics-box {
  border: 1px solid rgba(111,66,193,.35);
  background: rgba(111,66,193,.08);
  border-left: 6px solid #6f42c1;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.iwforensics-title { font-weight: 700; letter-spacing: .2px; }

/* Paleta Instagram */
:root {
  --ig1: #f09433;
  --ig2: #e6683c;
  --ig3: #dc2743;
  --ig4: #cc2366;
  --ig5: #bc1888;
  --ig-grad: linear-gradient(45deg, var(--ig1) 0%, var(--ig2) 25%, var(--ig3) 50%, var(--ig4) 75%, var(--ig5) 100%);
}
.btn-ig {
  background-image: var(--ig-grad);
  color: #fff !important;
  border: 0;
  box-shadow: 0 0.25rem 0.5rem rgba(204,35,102,0.25);
  display: inline-block;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
}
.btn-ig:hover, .btn-ig:focus { filter: brightness(1.02); color: #fff !important; }
.alert-ig {
  border-left: 6px solid #cc2366;
  background: rgba(204,35,102,0.08);
}

/* Trust Score por máquina */
.ts-progress { width: 160px; height: 10px; }

/* Botão de toggle do card */
.machine-card .btn-toggle { font-size: .9rem; }

/* ==== Ajustes Novos ==== */

/* Donut (Trust Score do Jogador) com texto legível */
.donut-wrapper { display: inline-block; }
.donut {
  width: 88px; height: 88px; border-radius: 50%; position: relative;
}
.donut.donut-empty { background: conic-gradient(#adb5bd 0%, #e9ecef 0); }
.donut-hole {
  position: absolute; inset: 6px;
  background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.05) inset;
}
.donut-text { text-align: center; line-height: 1.1; }
.donut-text .value { font-weight: 800; font-size: .95rem; color: #111; } /* <- texto escuro */
.donut-text .label { font-size: .72rem; color: #555; }

/* Recomendação do IwForensics (fundo claro + texto escuro) */
.rec-box { 
  border: 1px dashed rgba(0,0,0,0.15);
  background: #fff;
  border-radius: .5rem;
  padding: .5rem .75rem;
  color: #111;
}
.rec-title { font-weight: 700; margin-bottom: .25rem; color: #111; }
.rec-text { color: #111; }

/* Upgrade dentro do box do IwForensics (rodapé) */
.upgrade-box {
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  border-radius: .5rem;
  padding: .6rem .75rem;
  box-shadow: 0 .25rem .75rem rgba(0,0,0,0.06);
  color: #111;               /* ⬅️ texto escuro para alto contraste */
}
.upgrade-text {
  font-size: .92rem;
  color: #111;               /* ⬅️ garante legibilidade sobre fundo branco */
}

/* ====== ADIÇÃO: Header/Footer transparentes e legíveis ====== */

/* Zera fundos opacos comuns de headers/footers sem quebrar layout */
header,
.site-header,
.navbar,
.topbar {
  background: transparent !important;
  box-shadow: none !important;
}

/* Footer idem */
footer,
.site-footer,
.page-footer {
  background: transparent !important;
  box-shadow: none !important;
}

/* Legibilidade do texto sobre gif/imagens: sombra suave */
header *, .site-header *, .navbar *, .topbar *,
footer *, .site-footer *, .page-footer * {
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}

/* “Véu” minimalista com blur (não é faixa; é invisível em fundos escuros) */
.iw-glassless,
.iw-glassless-footer {
  position: relative;
  isolation: isolate; /* evita efeitos sangrarem para fora */
}
.iw-glassless::before,
.iw-glassless-footer::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(0,0,0,0.00);                 /* 100% transparente por padrão */
  -webkit-backdrop-filter: saturate(110%) blur(2px);
  backdrop-filter: saturate(110%) blur(2px);
  pointer-events: none;
}

/* Se algum fundo do site for MUITO claro, aumente só o blur/alpha: */
/* .iw-glassless::before, .iw-glassless-footer::before {
     background: rgba(0,0,0,0.06);
     backdrop-filter: saturate(110%) blur(4px);
   } */

/* Manter o header sticky se já for aplicado por você */
.iw-glassless {
  /* não força sticky aqui; respeita seu layout atual */
}

/* ====== /ADIÇÃO ====== */
/* ====== Navbar branding ====== */
/* Tamanho padronizado da logo ao lado do título */
.navbar-brand img {
  height: 32px;
  width: auto;
  vertical-align: text-top;
}

/* ====== Hero (fundo GIF global) ====== */
/* Permite reutilizar o mesmo fundo em páginas públicas */
.hero-landing {
  position: relative;
  min-height: 82vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-landing::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  /* Use semi-transparent overlay so the GIF remains visible */
  background: rgba(11,12,14,0.55);
}
.hero-landing::after {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  /* Como este CSS está em assets/style.css, o caminho relativo usa a mesma pasta */
  background-image: url('bg-games.gif'), url('/assets/bg-games.gif'), url('/analyster/assets/bg-games.gif');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(10px) brightness(.42) saturate(1.1);
  transform: scale(1.06);
}

/* ------ Conteúdo do HERO ------ */
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 16px 32px;
  text-align: center;
  color: #eaecef;
}
.hero-eyebrow {
  display: inline-flex; gap: 8px; align-items: center;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.18);
  padding: 6px 10px; border-radius: 999px; font-size: .9rem;
}
.hero-title {
  margin: 14px 0 8px; color: #fff; font-weight: 900; font-size: clamp(2rem, 2.6vw + 1rem, 3rem);
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.hero-sub {
  max-width: 820px; margin: 0 auto; color: #c9cfd8; font-size: 1.08rem; line-height: 1.65;
}
.hero-ctas { margin-top: 18px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-login-hint { margin-top: 8px; color: #c9cfd8; font-size: .98rem; }
.hero-login-hint a { color: #ffffff; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); }

/* ------ CTAs do landing ------ */
.btn-ghost {
  color: #eaecef; text-decoration: none; border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18); padding: 12px 14px; border-radius: 12px; font-weight: 700;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.22); }

/* Limita o impacto do .btn-primary às seções do landing */
.hero-landing .btn-primary,
.section .btn-primary,
.ctas .btn-primary {
  background-image: linear-gradient(45deg,#ff0080,#40e0d0);
  color: #111; border: none; font-weight: 900; padding: 12px 14px; border-radius: 12px;
}
.hero-landing .btn-primary:hover,
.section .btn-primary:hover,
.ctas .btn-primary:hover { filter: brightness(1.02); }

/* ------ Seções e grids do landing ------ */
.section { max-width: 1180px; margin: 34px auto; padding: 0 16px; color: #eaecef; }
.section h2 { color: #fff; font-weight: 900; margin: 0 0 12px; font-size: 1.7rem; }
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 1020px){ .grid3 { grid-template-columns: 1fr; } }

.tile {
  background:
    linear-gradient(140deg, rgba(255,0,128,.08), rgba(64,224,208,.08)) padding-box,
    linear-gradient(140deg, rgba(255,0,128,.35), rgba(64,224,208,.35)) border-box;
  border: 1px solid transparent; border-radius: 16px; overflow: hidden;
}
.tile-in {
  background: #111113; border: 1px solid #232325; border-radius: 14px; margin: 1px; padding: 18px;
}
.tile h3 { margin: 0 0 6px; color: #fff; font-weight: 900; display: flex; gap: 8px; align-items: center; }
.tile p, .tile li { color: #eaecef; line-height: 1.65; }
.tile small.text-muted { color: #9aa2ab; }

.ctas a { text-decoration: none; }

/* ------ Barra fixa inferior do landing ------ */
.bottom-cta {
  position: fixed; left: 16px; right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap;
  background: rgba(17,17,19,.90); backdrop-filter: blur(8px);
  border: 1px solid #2a2a2b; border-radius: 16px; padding: 12px 14px;
}
.bottom-cta .cta-close {
  position: absolute; top: 6px; right: 8px;
  border: 0; background: transparent; color: #cfd6de;
  font-size: 18px; cursor: pointer; line-height: 1;
}
body.has-bottom-cta { padding-bottom: calc(var(--cta-h, 84px) + 24px); }
@media (max-width:520px){ .bottom-cta { left: 10px; right: 10px; } }
