/* Bucky public site — shared DARK shell (base, nav, footer, buttons).
   Used by the landing + legal/support pages. Depends on css/tokens.css.
   Replaces the old light index reset and the deprecated style-old.css chrome. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--bk-text);
  background:
    radial-gradient(circle at 12% -5%, rgba(139, 30, 63, 0.20), transparent 55%),
    radial-gradient(circle at 92% 6%, rgba(139, 30, 63, 0.10), transparent 50%),
    linear-gradient(160deg, var(--bk-bg-1), var(--bk-bg-2));
  background-attachment: fixed; -webkit-font-smoothing: antialiased; min-height: 100vh;
}
img { max-width: 100%; display: block; }

/* Navbar */
.site-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: var(--z-topbar);
  backdrop-filter: blur(14px); background: rgba(11, 15, 22, 0.55);
  border-bottom: 1px solid var(--bk-border);
  transition: background var(--dur) var(--ease), padding var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-nav.scrolled { background: rgba(11, 15, 22, 0.9); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.nav-inner { max-width: 1240px; margin: auto; padding: 15px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; color: var(--bk-text); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--bk-red), var(--bk-red-500)); box-shadow: var(--bk-glow);
}
#nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
#nav-menu li a {
  color: var(--bk-muted); text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 8px 12px; border-radius: 9px; transition: color .2s var(--ease), background .2s var(--ease);
}
#nav-menu li a:hover { color: var(--bk-text); background: var(--bk-panel-2); }
/* JS-injected auth CTAs (ids come from nav-auth.js) */
#dashboard-link, #login-link, #logout-btn, #discord-login-button {
  display: inline-flex; align-items: center; justify-content: center; min-width: 104px; padding: 9px 18px;
  border-radius: 999px; font-weight: 700; font-size: 14px; font-family: inherit; color: #fff !important;
  text-decoration: none; cursor: pointer; border: none;
  background: linear-gradient(135deg, var(--bk-red), var(--bk-red-500)); box-shadow: var(--bk-glow); transition: all .25s var(--ease);
}
#login-link { padding: 0; background: linear-gradient(135deg, var(--bk-red), var(--bk-red-500)); }
#login-link button { all: unset; padding: 9px 18px; cursor: pointer; color: #fff; font-weight: 700; }
#dashboard-link:hover, #login-link:hover, #logout-btn:hover { transform: translateY(-2px); box-shadow: var(--bk-glow-lg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; border-radius: 999px; font-weight: 700;
  font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; font-family: inherit; transition: all .25s var(--ease); }
.btn-primary { background: linear-gradient(135deg, var(--bk-red), var(--bk-red-500)); color: #fff; box-shadow: var(--bk-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--bk-glow-lg); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--bk-border-strong); color: var(--bk-text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

/* Footer */
.site-footer { border-top: 1px solid var(--bk-border); background: rgba(11, 15, 22, 0.5); position: relative; z-index: 2; }
.footer-inner { max-width: 1240px; margin: auto; padding: 48px 24px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--bk-muted); max-width: 340px; line-height: 1.7; font-size: 14px; margin: 0; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--bk-muted); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--bk-text); opacity: .85; text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: opacity .2s, color .2s; }
.footer-col a:hover { opacity: 1; color: var(--bk-red-300); }
.footer-bottom { border-top: 1px solid var(--bk-border); text-align: center; color: var(--bk-muted); font-size: 13px; padding: 18px; position: relative; z-index: 2; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; justify-content: space-between; width: 26px; height: 19px; background: none; border: 0; cursor: pointer; padding: 0; z-index: calc(var(--z-topbar) + 1); }
.hamburger span { width: 100%; height: 2px; background: var(--bk-text); border-radius: 2px; transition: .3s; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Focus */
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--bk-red-300); outline-offset: 2px; border-radius: 8px; }

@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hamburger { display: flex; }
  #nav-menu { position: absolute; top: 100%; right: 16px; width: 230px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bk-panel); border: 1px solid var(--bk-border-strong); border-radius: 14px; box-shadow: var(--shadow);
    padding: 0; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease), padding .35s var(--ease); }
  #nav-menu.open { padding: 8px; max-height: 440px; }
  #nav-menu li { width: 100%; }
  #nav-menu li a { display: block; width: 100%; padding: 11px 12px; }
  #dashboard-link, #login-link, #logout-btn { width: 100%; margin-top: 4px; }
}
