/* ===========================
   MARIPOCALYPSE-INSPIRED CSS
   dark aero + skeuomorphism (2006-ish)
   =========================== */

:root{
  --bg1:#05070c;
  --bg2:#0a1020;

  --panel1:#0b1428;
  --panel2:#070c18;

  --line1:rgba(255,255,255,.14);
  --line2:rgba(0,0,0,.55);

  --text:#d7e6ff;
  --muted:#9fb3d6;

  --accent:#7cc7ff;
  --accent2:#b7f3ff;

  --shadow: rgba(0,0,0,.65);
}

*{ box-sizing:border-box; }

html,body{
  height:100%;
}

body{
  margin:0;
  color:var(--text);
  font: 14px/1.45 Verdana, Tahoma, Arial, sans-serif;
  letter-spacing:.2px;

  /* fundo “aero” escuro (sem imagem externa) */
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(124,199,255,.18), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(183,243,255,.12), transparent 55%),
    radial-gradient(800px 500px at 65% 85%, rgba(124,199,255,.10), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2) 55%, #050812);
  background-attachment: fixed;
}

/* “grain” leve + scanlines suaves (bem 2000s) */
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,.02) 0px,
      rgba(255,255,255,.02) 1px,
      rgba(0,0,0,.03) 2px,
      rgba(0,0,0,.03) 4px
    );
  mix-blend-mode: overlay;
  opacity:.35;
}

/* links */
a{
  color:var(--accent);
  text-decoration:none;
}
a:hover{
  color:var(--accent2);
  text-decoration:underline;
}

/* wrapper central */
#wrap{
  width:min(980px, 92vw);
  margin: 28px auto;
  padding: 14px;
}

/* “janela” principal skeuomórfica */
.window{
  border-radius: 14px;
  overflow:hidden;

  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 35%),
    linear-gradient(180deg, rgba(20,34,64,.85), rgba(7,12,24,.92));
  box-shadow:
    0 18px 45px var(--shadow),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.65);

  border: 1px solid rgba(255,255,255,.10);
}

/* barra superior tipo “título de janela” */
.titlebar{
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04)),
    linear-gradient(180deg, rgba(10,20,44,.92), rgba(6,10,20,.92));
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.55);
}

.titlebar .brand{
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  font-size: 16px;
  color:#e9f4ff;
  text-shadow: 0 1px 0 rgba(0,0,0,.55);
}

.titlebar .dots{
  display:flex;
  gap:6px;
}
.titlebar .dot{
  width:10px;height:10px;border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), rgba(255,255,255,.15) 55%, rgba(0,0,0,.35));
  border:1px solid rgba(0,0,0,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  opacity:.85;
}

/* área interna em 2 colunas */
#layout{
  display:grid;
  grid-template-columns: 270px 1fr;
  gap: 14px;
  padding: 14px;
}

/* painéis “cards” */
.panel{
  border-radius: 12px;
  padding: 12px 12px 10px;

  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 40%),
    linear-gradient(180deg, rgba(12,22,44,.88), rgba(7,12,24,.92));
  border: 1px solid rgba(255,255,255,.12);

  box-shadow:
    0 10px 22px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -1px 0 rgba(0,0,0,.55);
}

.panel + .panel{ margin-top: 12px; }

/* títulos estilo “wiki/label” */
h1,h2,h3,h4,h5{
  margin:0 0 8px;
  font-weight:700;
  letter-spacing:.6px;
  color:#e7f2ff;
  text-shadow: 0 1px 0 rgba(0,0,0,.55);
}
h5{
  font-size:12px;
  text-transform:uppercase;
  opacity:.95;
}

/* separador fininho */
.hr{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  margin: 10px 0;
}

/* navegação “botão bevel 2006” */
.nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.nav a{
  display:inline-block;
  padding:7px 10px;
  border-radius: 10px;
  font-size: 12px;
  text-transform: lowercase;

  background:
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.06) 40%, rgba(0,0,0,.22)),
    linear-gradient(180deg, rgba(25,48,92,.75), rgba(9,16,30,.85));
  border: 1px solid rgba(255,255,255,.14);

  box-shadow:
    0 6px 14px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.65);

  color: #d7ecff;
}
.nav a:hover{
  text-decoration:none;
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.nav a:active{
  transform: translateY(0px);
  filter: brightness(.98);
  box-shadow:
    0 4px 10px rgba(0,0,0,.55),
    inset 0 2px 6px rgba(0,0,0,.55);
}

/* texto secundário */
small, .muted{
  color: var(--muted);
}

/* listas mais “compactas” */
ul{
  margin: 6px 0 0 18px;
  padding:0;
}
li{ margin: 3px 0; }

/* “badge” / caixinha pequena */
.badge{
  display:inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  color:#eaf6ff;

  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(0,0,0,.18)),
              linear-gradient(180deg, rgba(124,199,255,.22), rgba(20,40,80,.55));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

/* imagens com moldura “glossy” */
img{
  max-width:100%;
  height:auto;
}
.framed{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 10px 22px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.18);
  overflow:hidden;
}

/* rodapé */
#footer{
  margin-top: 14px;
  text-align:center;
  color: rgba(215,230,255,.75);
  font-size: 12px;
  opacity:.9;
}

/* responsivo */
@media (max-width: 820px){
  #layout{ grid-template-columns: 1fr; }
  .titlebar{ flex-direction:column; align-items:flex-start; }
}
