/* PATH: /public/styles.css
   PURPOSE: High-contrast, ADA-friendly styling.
            FIX: Restore nav button styling for layout.ejs classes (nav-link/nav-btn/brand-name),
            while keeping existing theme intact.
   CREATED BY: Scott Russo. */

:root{
  --bg:#070b16;
  --panel:#0f1730;
  --panel2:#0b1226;
  --text:#e7ecff;
  --muted:#b6c1ff;
  --brand:#51d6ff;
  --brand2:#22c55e;
  --danger:#ef4444;
  --border:rgba(255,255,255,.12);
  --shadow:0 16px 50px rgba(0,0,0,.35);
  --radius:18px;
  --radius2:14px;
  --focus: 0 0 0 4px rgba(81,214,255,.28);
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  background:
    radial-gradient(1000px 600px at 15% 0%, rgba(81,214,255,.12), transparent 60%),
    radial-gradient(800px 500px at 85% 10%, rgba(34,197,94,.10), transparent 55%),
    linear-gradient(180deg, #050814, #060a15 65%, #040610);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.45;
}

a{ color:var(--brand); }
a:hover{ opacity:.92; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline:none;
  box-shadow: var(--focus);
}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding: 0 18px;
}

.content{
  padding: 24px 0 60px 0;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left: 12px;
  top: 12px;
  width:auto;
  height:auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(81,214,255,.12);
  outline: none;
  box-shadow: var(--focus);
  z-index: 9999;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 22, .70);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: var(--text);
}
.brand-logo{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.brand-name,
.brand-text{
  font-weight: 900;
  letter-spacing: .3px;
}

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Existing class (kept) */
.navbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-decoration:none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
  cursor:pointer;
  user-select:none;
}
.navbtn:hover{ background: rgba(255,255,255,.06); }

/* FIX: layout.ejs uses nav-link + nav-btn — give them the same button styling */
.nav-link,
.nav-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-decoration:none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
  cursor:pointer;
  user-select:none;
}
.nav-link:hover,
.nav-btn:hover{
  background: rgba(255,255,255,.06);
}

.nav-inline{
  display:inline;
  margin:0;
  padding:0;
}

.card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.muted{
  color: var(--muted);
}

.badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  font-weight: 800;
  font-size: 12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 900;
  font-size: 14px;
  text-decoration:none;
  cursor:pointer;
}
.btn:hover{ background: rgba(255,255,255,.06); }

.btn.primary{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.12);
}
.btn.ghost,
.btn.btn-ghost{
  background: transparent;
  border-color: rgba(255,255,255,.10);
}
