/* ==========================
   BrainTradez - site.css
   Single source of truth
   ========================== */

:root{
  --bg:#0b1220;
  --topbar:#0f1b33;

  /* card look (matches your old top.inc inline CSS) */
  --card:#101f3d;
  --line:rgba(255,255,255,.10);

  --text:#e8eefc;
  --muted:rgba(232,238,252,.85);

  --red:#D62828;
  --blue:#0B1F44;

  --shadow:0 10px 26px rgba(0,0,0,.28);
}

/* Base */
html,body{margin:0;padding:0;}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* Layout helpers */
.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:16px;
}

/* Top nav */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 16px;
  background:var(--topbar);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.brandlink{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  text-decoration:none;
}
.brandlink:hover{opacity:.95;}

.brandimg{
  width:34px;
  height:34px;
  border-radius:10px;
  display:block;
}

.brandtxt{
  font-weight:900;
  letter-spacing:.2px;
  font-size:16px;
  line-height:1;
}

.nav a{
  color:var(--text);
  text-decoration:none;
  margin-left:12px;
  opacity:.9;
}
.nav a:hover{
  opacity:1;
  text-decoration:underline;
}

/* Cards (spacing + sizing restored) */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  margin:14px 0;
  box-shadow:var(--shadow);
}

/* Grid (matches old auto-fit behavior) */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:12px;
}

/* Text helpers */
.muted{opacity:.85;}  /* keep your original behavior */
.pill{
  display:inline-block;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  font-size:12px;
  letter-spacing:.6px;
}

/* Buttons (match old size/weight) */
.btn{
  display:inline-block;
  padding:10px 12px;
  border-radius:10px;
  background:var(--red);
  color:#fff !important;
  text-decoration:none;
  font-weight:700;
}
.btn:hover{filter:brightness(1.05);}

/* Link visibility (fix visited link disappearing) */
a, a:visited{color:var(--text);}
a:hover, a:focus{color:#fff;text-decoration:underline;}
