/* /assets/css/style.css
   Lodge Level 4 – Fullscreen background image + readable 90s horror UI
   Replace /assets/img/background.jpg with your actual image path.
*/

:root{
  --bg: #0b0d10;
  --panel: rgba(15,18,24,0.1);
  --text:#e7e7e7;
  --muted:#a8b0bb;
  --line:#2a3440;
  --accent:#7cff8b;     /* sickly green */
  --accent2:#ff4d6d;    /* blood pink */
  --shadow: rgba(0,0,0,.55);
  --radius: 14px;
  --max: 1100px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  min-height:100vh;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.55;
  text-rendering: optimizeLegibility;

  /* FULLSCREEN BACKGROUND IMAGE + DARK OVERLAY */
  background:
    url("/assets/img/background.jpg"); /* ← CHANGE THIS */

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* subtle film grain */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.06;
  mix-blend-mode: overlay;
  background-image:url("/assets/img/background.png");
  background-size: 160px 160px;
}

/* optional vignette */
body::after{
  content:"";
  position:fixed;
  inset:-40px;
  pointer-events:none;
  background: radial-gradient(circle at center, transparent 55%, rgba(0,0,0,.55) 100%);
  opacity:.55;
}

img{ max-width:100%; height:auto; display:block; }

a{ color: var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }
a:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
  border-radius: 8px;
}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 14px 28px;
  position: relative;
  z-index: 1; /* ensure above grain/vignette */
}

/* HEADER */
.header{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px var(--shadow);
  padding: 16px 16px 10px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  gap: 14px;
  align-items:center;
}

.brand img{
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
}

.brand h1{
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: .6px;
  text-transform: uppercase;
  font-family: var(--mono);
}

.tag{
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

#site-nav{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(42,52,64,.9);
}

/* NAV (matches your previous .nav example) */
.nav{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}

.nav a:hover{
  border-color: rgba(124,255,139,.6);
  text-decoration:none;
}

.nav a[aria-current="page"],
.nav a.active{
  border-color: rgba(124,255,139,.9);
  box-shadow: 0 0 0 2px rgba(124,255,139,.18);
}

/* MAIN GRID */
.grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 16px;
}

@media (max-width: 900px){
  .header{ position: static; }
  .grid{ grid-template-columns: 1fr; }
}

/* CARD */
.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px var(--shadow);
  padding: 14px 14px 16px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

/* subtle CRT scanlines */
.card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.10;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,.035) 0px,
    rgba(255,255,255,.035) 1px,
    transparent 2px,
    transparent 4px
  );
}

.card h2{
  margin: 2px 0 10px;
  font-size: 18px;
  letter-spacing: .4px;
  font-family: var(--mono);
  text-transform: uppercase;
}

p{ margin: 10px 0; }

.small{
  color: var(--muted);
  font-size: 13px;
}

.hr{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42,52,64,.95), transparent);
  margin: 12px 0;
}

/* Article list (JS output) */
.article-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.article-list a{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(42,52,64,.9);
  background: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.08));
  color: var(--text);
  text-decoration:none;
  position: relative;
}

.article-list a:hover{
  border-color: rgba(124,255,139,.65);
  box-shadow: 0 0 0 2px rgba(124,255,139,.12);
}

.article-list a::before{
  content: "▶";
  font-family: var(--mono);
  color: rgba(124,255,139,.9);
  margin-right: 10px;
}

/* Badge */
.badge{
  display:inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,77,109,.55);
  color: rgba(255,77,109,.95);
  background: rgba(255,77,109,.08);
}

/* Footer */
.footer{
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 10px 0 2px;
  background: rgba(0,0,0,0.15);
  border-radius: 12px;
}

/* Hide your <br><br> spam inside main so it doesn't create huge gaps */
main.grid br{ display:none; }

/* Selection + scrollbar */
::selection{ background: rgba(124,255,139,.25); }

*::-webkit-scrollbar{ width: 10px; }
*::-webkit-scrollbar-track{ background: #07080a; }
*::-webkit-scrollbar-thumb{
  background: rgba(42,52,64,.95);
  border-radius: 10px;
  border: 2px solid #07080a;
}
*::-webkit-scrollbar-thumb:hover{
  background: rgba(124,255,139,.35);
}
