/* ===== Global base (shared) ===== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg:#0b0c10; 
  --panel:#15171c; 
  --accent:#00d1b2; 
  --accent2:#ff6b6b;
  --text:#e5e7eb; 
  --muted:#9aa3af; 
  --tile:#1e222a; 
  --gold:#fbbf24;
}

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
}

/* Prevent header “jump” when pages with/without scrollbars swap */
html { overflow-y: scroll; }

/* Container helper */
.container { padding: 16px; max-width: 1200px; margin: 0 auto; }

/* ===== Header (shared) ===== */
.header {
  display: flex;
  justify-content: space-between;  /* keeps logo left, nav right */
  align-items: center;
  padding: 16px 24px;
  background: var(--panel);
  border-bottom: 1px solid #222;   /* subtle dark line (not white) */
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0; /* avoid shrinking logo too much */
}

.logo {
  height: 80px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right side toolbar (plain .btns elsewhere remain unaffected) */
.nav-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
}

/* ===== Generic buttons used across the app ===== */
.btn {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(0.98); }

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid #2a2f3a;
}
.btn.ghost:hover {
  background: var(--accent);
  color: #0b0c10;
  border-color: var(--accent);
}
.btn.primary { background: var(--accent); color: #0b0c10; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { background: var(--accent2); color: #fff; }
.btn.danger:hover { filter: brightness(1.05); }

/* ===== Fancy Uiverse-style buttons — ONLY for header nav buttons ===== */
.nav-toolbar .nav-btn {
  font-size: 0.9em;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  background: #183153;
  font-family: "Montserrat", sans-serif;
  box-shadow: 0px 6px 24px 0px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0; /* handled by inner <span> */
}

.nav-toolbar .nav-btn::after {
  content: "";
  width: 0%;
  height: 100%;
  background: #fbbf24;
  position: absolute;
  transition: all 0.4s ease-in-out;
  right: 0;
}

.nav-toolbar .nav-btn:hover::after {
  right: auto;
  left: 0;
  width: 100%;
}

.nav-toolbar .nav-btn span {
  text-align: center;
  text-decoration: none;
  width: 100%;
  padding: 12px 18px;
  color: #fff;
  font-size: 1.00em;
  font-weight: 800;
  letter-spacing: 0.12em; /* narrower tracking */
  z-index: 1;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.nav-toolbar .nav-btn:hover span {
  color: #183153;
  transform: scale(1.0);
}

/* Make header layout stable on small widths */
@media (max-width: 700px) {
  .site-title { display: none; }
}


/* Remove blue underline / link focus outlines from nav buttons */
.nav-toolbar .nav-btn {
  text-decoration: none;
  outline: none;
}

.nav-toolbar .nav-btn:focus,
.nav-toolbar .nav-btn:active {
  outline: none;
  box-shadow: none;
}



/* ===== Tight mobile nav layout ===== */
@media only screen and (max-width: 700px) {
  .nav-toolbar {
    gap: 0 !important;
    flex-wrap: wrap !important;
    justify-content: center;
  }

  .nav-toolbar .nav-btn {
    transform: scale(0.8) !important;
    margin: 0 !important;
    display: inline-block !important;
    line-height: 1 !important;
  }

  .nav-toolbar .nav-btn span {
    padding: 3px 4px !important;
    font-size: 0.75em !important;
    letter-spacing: 0.03em !important;
    display: inline-block !important;
  }

  .nav-toolbar a + a {
    margin-left: 0 !important; /* removes inline-gap from HTML whitespace */
  }

  .logo {
    height: 55px !important;
  }
}

