/* frontend/public/assets/site.css */
/* Shared theme for subpages - tuned to match main page header/logo sizing */

:root{
  --bg:#0b1220;
  --card:#0f172a;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --border:rgba(255,255,255,.10);
  --accent:#4f46e5;
}

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

body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

/* Sticky top bar (subpages) */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(15,23,42,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}

.topbar-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 16px;
}

/* Brand/logo (match main page size) */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text);
  font-weight:800;
  letter-spacing:.2px;
  flex:0 0 auto;
}
.brand img{
  height:34px; /* MAIN PAGE MATCH */
  width:auto;
  display:block;
}
@media (max-width: 520px){
  .brand img{ height:32px; }
}

/* Nav */
.nav{
  margin-left:auto;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.nav a{
  text-decoration:none;
  color:var(--text);
  opacity:.92;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
}
.nav a:hover{
  background:rgba(255,255,255,.06);
}
.nav a[aria-current="page"]{
  background:rgba(79,70,229,.18);
  border:1px solid rgba(79,70,229,.35);
}

/* Optional actions area (e.g., "Open Inbox" button) */
.top-actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:8px;
}

/* Layout */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:18px 16px 44px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
}
@media (min-width: 980px){
  .grid{ grid-template-columns: 2fr 1fr; }
}

/* Cards */
.card{
  background:rgba(15,23,42,.75);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  box-shadow:0 8px 30px rgba(0,0,0,.22);
}

/* Typography */
h1{ margin:0 0 8px; font-size:28px; line-height:1.2; }
h2{ margin:18px 0 8px; font-size:18px; }
p{ margin:10px 0; color:rgba(229,231,235,.94); }
.muted{ color:var(--muted); }

/* Buttons */
.btnrow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:14px 0 6px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  border:1px solid rgba(255,255,255,.10);
  user-select:none;
}
.btn.primary{
  background:var(--accent);
  color:#fff;
}
.btn.secondary{
  background:rgba(255,255,255,.06);
  color:#fff;
}
.btn.sm{
  padding:10px 14px;
  font-size:14px;
}

/* Pills */
.pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.pill{
  display:inline-flex;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:rgba(229,231,235,.9);
  font-size:13px;
}

/* Misc */
hr{
  border:0;
  border-top:1px solid var(--border);
  margin:18px 0;
}
ul{ margin:8px 0 0; padding-left:18px; }
li{ margin:6px 0; color:rgba(229,231,235,.92); }

a{ color:#c7d2fe; }
a:hover{ opacity:.95; }

/* Footer */
footer{
  border-top:1px solid var(--border);
  color:var(--muted);
  padding:18px 16px;
}
.footer-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}
.footer-links a{
  color:var(--muted);
  text-decoration:none;
  margin-right:10px;
}
.footer-links a:hover{
  color:var(--text);
}
