/* public/css/shell.css */

/* ----- Base shell ----- */
:root{
  --bg: #050b14;
  --panel: rgba(10, 18, 32, 0.72);
  --panel-2: rgba(8, 14, 26, 0.85);
  --border: rgba(255,255,255,0.10);
  --text: rgba(245, 248, 255, 0.92);
  --muted: rgba(245, 248, 255, 0.70);
  --blue: #22b3ff;
  --blue-2: #0ea5e9;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body.ps-shell{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ps-main{
  flex: 1 0 auto;
}

/* Shared wrapper */
.wrap{
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* ----- Header (src/views/partials/header.ejs) ----- */
.sh-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--panel-2), rgba(8,14,26,0.35));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.sh-nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.sh-left, .sh-right{
  display: flex;
  align-items: center;
  gap: 14px;
}

.sh-link{
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.sh-link:hover{
  color: var(--text);
}

.sh-link.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.sh-brand-mark{
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
}

.sh-brand-text{
  font-size: 15px;
  font-weight: 800;
}

.sh-pill{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.sh-roleform{ margin: 0; }
.sh-role-select{
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 700;
  outline: none;
}

.sh-user{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 14px;
}

.sh-user:hover{
  background: rgba(255,255,255,0.04);
}

.sh-avatar{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(34,179,255,0.12);
  border: 1px solid rgba(34,179,255,0.35);
  font-weight: 900;
}

.sh-user-name{
  font-weight: 800;
  color: var(--text);
  font-size: 13px;
}

.sh-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-weight: 800;
  cursor: pointer;
}

.sh-btn:hover{
  background: rgba(255,255,255,0.06);
}

.sh-btn-primary{
  background: linear-gradient(180deg, var(--blue), var(--blue-2));
  border: 0;
  color: #051018;
}

.sh-btn-primary:hover{
  filter: brightness(1.03);
}

.badge{
  display: inline-block;
  margin-left: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 900;
  background: rgba(34,179,255,0.16);
  border: 1px solid rgba(34,179,255,0.35);
  color: var(--text);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 120ms ease, transform 120ms ease;
}
.badge.show{
  opacity: 1;
  transform: translateY(0);
}

/* ----- Footer (src/views/partials/footer.ejs) ----- */
.site-footer{
  flex: 0 0 auto;
  border-top: 1px solid var(--border);
  background: rgba(8, 14, 26, 0.55);
  backdrop-filter: blur(10px);
}

.site-footer .wrap{
  padding: 16px 0;
}

.footer-row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-weight: 900;
}

.footer-mark{
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
}

/* ---- Shell: force one continuous page background ---- */
html, body { height: 100%; }

.ps-body{
  min-height: 100vh;
  /* Match spotlight-ui.css background */
  background: radial-gradient(circle at top, #0b1120 0, #020617 55%, #000 100%);
}

.ps-shell{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.ps-main{
  flex: 1 0 auto;
  background: transparent; /* ✅ stops the grey band */
}
