/* BackwoodGenius — Portal Theme (WLOVos Backtrail)
   System CSS asset stored in portal_files: css/portal.css
   Palette: Forest Green, Beige, Black, White, low-volume Yellow
*/

:root{
  /* Brand palette */
  --bg-black:#0b0b0b;
  --bg-panel:#111111;
  --bg-panel-2:#151515;
  --border:rgba(231,223,207,0.16);

  --beige:#e7dfcf;
  --beige-2:rgba(231,223,207,0.72);

  --forest:#1f4d2b;
  --forest-2:#2e6a3d;

  --yellow:#d8b44a; /* use sparingly */
  --yellow-2:rgba(216,180,74,0.25);

  --radius:16px;
  --shadow:0 18px 38px rgba(0,0,0,0.55);

  /* Fonts */
  --font-title: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
}

*{box-sizing:border-box;}

/* ============================================================
   GLOBAL BACKGROUND (SINGLE CONTINUOUS GRADIENT)
   ============================================================ */

html{
  min-height:100%;

  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(46,106,61,0.25), transparent 55%),
    radial-gradient(900px 600px at 80% 0%, rgba(216,180,74,0.10), transparent 55%),
    var(--bg-black);

  background-repeat:no-repeat;
  background-attachment:fixed;
  background-color:var(--bg-black);
}

body{
  min-height:100vh;
  margin:0;

  /* Let html own the gradient so it never restarts */
  background:transparent;

  color:var(--beige);
  font-family:var(--font-body);
}

/* Ensure page containers never override the global background */
main,
.page,
.page-wrap,
.content,
.content-wrap,
.bg-wrap,
.container{
  background:transparent;
}

/* Footer must blend, not paint */
footer,
.site-footer,
.bg-footer{
  background:transparent;
  border-top:1px solid rgba(231,223,207,0.06);
}

/* ============================================================
   LINKS
   ============================================================ */

a{color:var(--beige); text-decoration:none;}
a:hover{text-decoration:underline;}

/* ============================================================
   LAYOUT
   ============================================================ */

.container{
  max-width:1100px;
  margin:0 auto;
  padding:18px;
}

/* ============================================================
   TOP BAR
   ============================================================ */

.bg-topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(11,11,11,0.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(231,223,207,0.10);
}

.bg-topbar-inner{
  max-width:1100px;
  margin:0 auto;
  padding:12px 18px;
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:space-between;
}

.bg-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.bg-mark{
  width:36px;
  height:36px;
  border-radius:12px;
  background:linear-gradient(180deg, rgba(46,106,61,0.95), rgba(31,77,43,0.95));
  border:1px solid rgba(231,223,207,0.16);
  box-shadow:0 12px 24px rgba(0,0,0,0.45);
  flex:0 0 auto;
}

.bg-title{
  font-family:var(--font-title);
  font-weight:900;
  letter-spacing:1.2px;
  text-transform:uppercase;
  line-height:1;
  font-size:0.95rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.bg-subtitle{
  font-size:0.80rem;
  color:var(--beige-2);
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.bg-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(231,223,207,0.14);
  background:rgba(12,12,12,0.70);
  color:var(--beige);
  text-decoration:none;
  font-weight:800;
  letter-spacing:0.6px;
  text-transform:uppercase;
  font-size:0.78rem;
  transition:transform .15s ease, filter .15s ease, background .15s ease;
}

.btn:hover{
  text-decoration:none;
  transform:translateY(-1px);
  filter:brightness(1.05);
}

.btn-primary{
  background:linear-gradient(180deg, rgba(46,106,61,0.95), rgba(31,77,43,0.95));
  border-color:rgba(231,223,207,0.18);
}

.btn-ghost{
  background:rgba(12,12,12,0.40);
}

.btn-accent{
  background:rgba(216,180,74,0.14);
  border-color:rgba(216,180,74,0.30);
}

/* ============================================================
   CARDS
   ============================================================ */

.card{
  background:rgba(12,12,12,0.82);
  border:1px solid rgba(231,223,207,0.12);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px 16px;
}

.card h1,
.card h2,
.card h3{
  margin:0 0 10px 0;
  font-family:var(--font-title);
  letter-spacing:1px;
}

/* ============================================================
   FORMS
   ============================================================ */

.input,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(231,223,207,0.14);
  background:rgba(10,10,10,0.85);
  color:var(--beige);
  outline:none;
}

.input:focus,
input:focus,
textarea:focus,
select:focus{
  border-color:rgba(216,180,74,0.35);
  box-shadow:0 0 0 3px rgba(216,180,74,0.12);
}

label{
  display:block;
  margin:10px 0 6px;
  color:rgba(231,223,207,0.78);
  font-weight:800;
  font-size:0.85rem;
  letter-spacing:0.5px;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.mono{font-family:var(--font-mono);}
.muted{color:var(--beige-2);}
.center{text-align:center;}
.mt-12{margin-top:12px;}
.mt-18{margin-top:18px;}
