/* =========================================================
   Anti-Doom-Scroll — Retro UI Skin (Win95-ish / Desktop UI)
   - No functionality changes
   - Same class names your pages already use
   ========================================================= */
@import url("/assets/fonts/retrobit.css");

/* ---------- Core palette + UI metrics ---------- */
:root{
  /* Win95-inspired neutrals */
  --bg: #3a37e1;              /* classic teal desktop */
  --panel: #f28be9;           /* classic window gray */
  --panel-2: #d43be1;         /* lighter panel surface */
  --ink: #000000;
  --muted: #222;

  /* Bevel edges */
  --hi: #ffffff;              /* highlight */
  --mid: #b5b5b5;             /* mid */
  --lo: #404040;              /* shadow */
  --deep: #000000;            /* deep shadow */

  /* Accent (Win95-ish blue) */
  --accent: #e262f3;
  --accent2: #c56fb8;

  /* Status */
  --ok: #008000;
  --warn: #b8860b;
  --off: #666;

  /* Spacing */
  --radius: 0px;              /* Win95 is sharp */
  --shadow: 0 12px 30px rgba(0,0,0,.25);

  /* Typography: try to land on a retro UI font */
  --font: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Verdana, Geneva, Arial, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Icon sizing */
  --nav-icon: 14px;
}

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

body{
  margin:0;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.35;

  /* Desktop background with subtle texture */
  background:
    linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.05)),
    repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0, rgba(0,0,0,.06) 1px, transparent 1px, transparent 4px),
    var(--bg);
}

/* make images feel a bit more “pixel” when small */
img{
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

a{ color: var(--accent2); text-decoration: none; }
a:hover{ text-decoration: underline; }

/* ---------- Layout container ---------- */
.container{
  max-width: 1060px;
  margin: 18px auto;
  padding: 0 14px 40px;
}

/* ---------- Beveled borders helper ---------- */
.bev{
  border: 2px solid var(--deep);
  box-shadow:
    inset 1px 1px 0 var(--hi),
    inset -1px -1px 0 var(--lo);
}

/* ---------- Top bar (sticky) ---------- */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;

  padding: 8px 10px;
  background: var(--panel);

  border: 2px solid var(--deep);
  box-shadow:
    inset 1px 1px 0 var(--hi),
    inset -1px -1px 0 var(--lo),
    var(--shadow);

  /* Sticky always visible */
  position: sticky;
  top: 0;
  z-index: 999;
}

/*------*/
/* --- Brand Icon: Retro Desktop (inline SVG) --- */
.brandIcon{
  width: 28px;
  height: 28px;
  flex: 0 0 auto;

  /* pixel render hint */
  image-rendering: pixelated;
  image-rendering: crisp-edges;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  /* beveled frame */
  border: 2px solid var(--deep);
  box-shadow:
    inset 1px 1px 0 var(--hi),
    inset -1px -1px 0 var(--lo);

  /* “computer” icon */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Crect x='5' y='5' width='18' height='14' fill='%23d2d2d2' stroke='%23000' stroke-width='2'/%3E%3Crect x='7' y='7' width='14' height='10' fill='%23000'/%3E%3Cpath d='M8 15h12' stroke='%2300ff66' stroke-width='2'/%3E%3Crect x='11' y='20' width='6' height='2' fill='%23000'/%3E%3Crect x='9' y='22' width='10' height='2' fill='%23bcbcbc' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
}
/*-------*/




/* Brand block */
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 250px;
}

.brand .mark{
  width: 14px;
  height: 14px;

  /* little “LED” look */
  background: #00ff66;
  border: 2px solid var(--deep);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,.5),
    inset -1px -1px 0 rgba(0,0,0,.35);
}

.brand .title{
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 12px;
  text-transform: uppercase;
}

.kicker{
  font-size: 11px;
  color: #111;
  opacity: .85;
}

/* ---------- Navigation as toolbar buttons ---------- */
.nav{
  display:flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.nav a{
  display:inline-flex;
  align-items:center;
  gap: 6px;

  padding: 6px 10px;
  background: var(--panel-2);
  color: var(--ink);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  text-transform: uppercase;

  /* beveled button */
  border: 2px solid var(--deep);
  box-shadow:
    inset 1px 1px 0 var(--hi),
    inset -1px -1px 0 var(--lo);
}

.nav a:hover{
  background: #f2f2f2;
}

.nav a:active{
  /* pressed-in look */
  box-shadow:
    inset -1px -1px 0 var(--hi),
    inset 1px 1px 0 var(--lo);
  transform: translateY(1px);
}

/* active tab */
.nav a[aria-current="page"]{
  background: #bcd7ff;
  outline: 1px dotted var(--deep);
  outline-offset: -4px;
}

/* ---------- Nav icons (CSS-only, no HTML changes) ---------- */
/* Adds small “retro toolbar” icons before labels */
.nav a::before{
  content:"";
  width: var(--nav-icon);
  height: var(--nav-icon);
  display:inline-block;
  flex: 0 0 auto;

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: none;
}

/* Simple inline SVG icons via data URIs */
.nav a[href$="index.html"]::before{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Crect x='1' y='6' width='12' height='7' fill='%23ffffff' stroke='%23000000'/%3E%3Cpath d='M2 6 L7 2 L12 6 Z' fill='%23c0c0c0' stroke='%23000000'/%3E%3C/svg%3E");
}
.nav a[href$="clubs.html"]::before{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Crect x='2' y='3' width='10' height='8' fill='%23ffd24d' stroke='%23000000'/%3E%3Cpath d='M2 5h10' stroke='%23000000'/%3E%3C/svg%3E");
}
.nav a[href$="events.html"]::before{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Crect x='2' y='3' width='10' height='9' fill='%23ffffff' stroke='%23000000'/%3E%3Crect x='2' y='3' width='10' height='3' fill='%23bcd7ff' stroke='%23000000'/%3E%3Cpath d='M4 1v4M10 1v4' stroke='%23000000'/%3E%3C/svg%3E");
}
.nav a[href$="join.html"]::before{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Crect x='2' y='4' width='10' height='7' fill='%23ffffff' stroke='%23000000'/%3E%3Cpath d='M2 4l5 4l5-4' fill='none' stroke='%23000000'/%3E%3C/svg%3E");
}
.nav a[href$="tools.html"]::before{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Crect x='2' y='3' width='10' height='8' fill='%23c0c0c0' stroke='%23000000'/%3E%3Cpath d='M4 11v2M10 11v2' stroke='%23000000'/%3E%3Cpath d='M4 5h6M4 7h6' stroke='%23000000'/%3E%3C/svg%3E");
}
.nav a[href$="about.html"]::before{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='7' cy='7' r='5' fill='%23ffffff' stroke='%23000000'/%3E%3Cpath d='M7 6v4' stroke='%23000000'/%3E%3Ccircle cx='7' cy='4.5' r='0.8' fill='%23000000'/%3E%3C/svg%3E");
}

/* ---------- Grid + windows ---------- */
.grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.window{
  grid-column: span 12;
  background: var(--panel);
  border: 2px solid var(--deep);
  box-shadow:
    inset 1px 1px 0 var(--hi),
    inset -1px -1px 0 var(--lo),
    var(--shadow);
  overflow:hidden;
}

/* Window title bar */
.window .bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;

  padding: 6px 8px;

  /* classic blue title bar */
  background: linear-gradient(90deg, #000080, #0000aa);
  color: #fff;
  border-bottom: 2px solid var(--deep);
}

.window .bar .name{
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .3px;
  text-transform: uppercase;
}

/* Window controls (tiny squares) */
.window .bar .controls{
  display:flex;
  gap: 5px;
}

.dot{
  width: 12px;
  height: 12px;
  background: var(--panel-2);
  border: 2px solid var(--deep);
  box-shadow:
    inset 1px 1px 0 var(--hi),
    inset -1px -1px 0 var(--lo);
}

/* Main window content */
.window .body{
  padding: 12px;
  background: var(--panel);
}

/* Column helpers */
@media (min-width: 860px){
  .span-7{ grid-column: span 7; }
  .span-5{ grid-column: span 5; }
  .span-6{ grid-column: span 6; }
}

/* ---------- Typography + helpers ---------- */
.h1{
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}
.h2{
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 8px;
}
.p{ margin: 0 0 10px; }
.small{ font-size: 12px; color: var(--muted); }

.hr{
  height: 2px;
  background: var(--deep);
  margin: 10px 0;
  opacity: .35;
}

/* Two-column utility */
.split{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 860px){
  .split{ grid-template-columns: 1fr 1fr; }
}

/* ---------- Badges ---------- */
.badges{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding: 3px 8px;

  background: var(--panel-2);
  border: 2px solid var(--deep);
  box-shadow:
    inset 1px 1px 0 var(--hi),
    inset -1px -1px 0 var(--lo);

  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge.ok{ background: #c9f7c9; }
.badge.warn{ background: #fff2bf; }
.badge.off{ background: #e8e8e8; color: var(--off); }

/* ---------- Buttons (3D) ---------- */
.btnrow{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 8px 10px;
  min-width: 140px;

  color: var(--ink);
  background: var(--panel-2);

  border: 2px solid var(--deep);
  box-shadow:
    inset 1px 1px 0 var(--hi),
    inset -1px -1px 0 var(--lo);

  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .2px;

  cursor: pointer;
  user-select: none;
}

.btn.primary{
  background: #bcd7ff;
}

.btn:hover{
  background: #f2f2f2;
}

.btn:active{
  box-shadow:
    inset -1px -1px 0 var(--hi),
    inset 1px 1px 0 var(--lo);
  transform: translateY(1px);
}

/* ---------- Directory tables ---------- */
.dir{
  width:100%;
  border-collapse: collapse;
  background: #fff;

  border: 2px solid var(--deep);
  box-shadow:
    inset 1px 1px 0 var(--hi),
    inset -1px -1px 0 var(--lo);
}

.dir th, .dir td{
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,.2);
  vertical-align: top;
}

.dir th{
  text-align:left;
  background: var(--panel);
  border-bottom: 2px solid var(--deep);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dir tr:last-child td{ border-bottom: 0; }

.dir .right{
  text-align:right;
  white-space:nowrap;
}

/* ---------- Forms ---------- */
.form{
  display:grid;
  gap: 10px;
}

label{
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
}

input, textarea, select{
  width: 100%;
  padding: 8px 10px;
  border: 2px solid var(--deep);
  background: #fff;
  font-family: var(--font);
  font-size: 14px;

  box-shadow:
    inset 1px 1px 0 rgba(0,0,0,.15),
    inset -1px -1px 0 rgba(255,255,255,.4);
}

textarea{
  min-height: 120px;
  resize: vertical;
}

.checkbox-grid{
  display:grid;
  gap: 8px;
}

.checkbox{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 10px;

  background: var(--panel-2);
  border: 2px solid var(--deep);
  box-shadow:
    inset 1px 1px 0 var(--hi),
    inset -1px -1px 0 var(--lo);
}

.checkbox input{
  width: 16px;
  height: 16px;
}

/* ---------- Notes + footer ---------- */
.note{
  padding: 10px 12px;
  background: #fffbe6;
  border: 2px dashed var(--deep);
}

.footer{
  margin-top: 14px;
  color: #000;
  opacity: .8;
  font-size: 12px;
}

/* ---------- Accessibility: focus rings ---------- */
:focus-visible{
  outline: 2px dotted var(--deep);
  outline-offset: 2px;
}



body {
  font-family: "Retrobit", monospace !important;
}
