/* ============================================================
   START.CSS — WCL
   MAIN / SEARCH / HERO
   CLEAN · ZONE-BASED · CANONICAL
   ============================================================ */


:root {
  --bg: #050505;
  --panel: #0a0a0a;
  --border: rgba(255,255,255,0.12);

  /* Global system colour (RGB raw for rgba support) */
  --global: 115, 98, 75;

  --text: #f5f5f5;
}

/* ================= RESET ================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body.static-page {
  background: #f6f4f1;
  color: #1a1a1a;
}
.container {
  display: flex;
  min-height: 100vh;
}

/* ================= GLOBAL UTILITIES ================= */

/* 🔒 Måste vinna ALLTID */
.hidden {
  display: none !important;
}

/* ================= MAIN LAYOUT ================= */

.main {
  margin-left: 260px;
  padding: 4.2rem 2.5rem 2.5rem; /* 🔑 mer top padding */
  width: calc(100% - 260px);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;                 /* 🔥 viktigt för signature */
  max-width: 1390px;
  margin: 2.8rem auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================================
   AUTH LOCK (PUBLIC MODE) — SAFE STACKING
   ============================================================ */

body.auth-locked {
  overflow: hidden;
}

/* Blur ONLY the app parts (avoids container stacking bugs) */
body.auth-locked .sidebar,
body.auth-locked .main {
  filter: blur(6px);
  pointer-events: none;
}

/* Optional: dim as well (nicer) */
body.auth-locked .sidebar,
body.auth-locked .main {
  opacity: 0.85;
}

/* ============================================================
   LOGIN OVERLAY — ABSOLUTE TOP LAYER
============================================================ */

.login-popup {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);

  z-index: 9999;   /* 🔥 above EVERYTHING */
}

/* ================= COOKIE BANNER ================= */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(8px);
}

.cookie-inner {
  width: min(1100px, 100%);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.cookie-text {
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  line-height: 1.35;
}

.cookie-text a {
  color: rgb(115, 98, 75);
  text-decoration: none;
  font-weight: 600;
}

.cookie-btn {
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.9);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn:hover {
  background: rgba(255,255,255,0.10);
}

/* ================= LEGAL / ABOUT PAGE ================= */

.legal-page {
  background: #f6f4f1;
  min-height: 100vh;
  padding: 120px 20px 90px; /* top / sides / bottom */
}

.legal-inner {
  max-width: 860px;
  margin: 0 auto;
  font-family: 'DM Sans', sans-serif;
  color: #1a1a1a;
}

.legal-inner h1 {
  font-size: 40px;
  margin-bottom: 30px;
  font-weight: 700;
}

.legal-inner h2 {
  font-size: 26px;
  margin-top: 55px;
  margin-bottom: 16px;
  font-weight: 600;
}

.legal-inner p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.legal-inner ul {
  margin: 20px 0 30px 20px;
}

.legal-inner li {
  margin-bottom: 8px;
}

.legal-inner .highlight {
  font-weight: 600;
  color: #111;
}

.page-brand,
.page-brand:visited {
  color: #766148;
}

.page-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #766148;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.page-brand:hover {
  opacity: 0.7;
}

/* ================= STATIC PAGE NAV ================= */

.page-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-left: 48px;
  padding-right: 48px;

  background: #f6f4f1;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 1000;
  position: relative;
}

.page-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 36px;
}

.page-nav a {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(0,0,0,0.45);
  transition: color 0.2s ease;
}

.page-nav a:hover {
  color: #766148;
}

.page-nav a.active {
  color: #111;
  font-weight: 600;
}


