/* Ares Group - WARDOGS art background, black UI, discord-grey invite card, brand red accent */
:root {
  --ares-red: #F30D17;
  --ares-red-dark: #C40A12;
  --black: #000;
  --panel: rgba(0, 0, 0, .86);
  --line: #26272B;
  --discord-grey: #313338;
  --discord-grey-2: #2B2D31;
  --discord-grey-3: #1E1F22;
  --text: #DBDEE1;
  --text-strong: #F2F3F5;
  --muted: #949BA4;
  --blurple: #5865F2;
  --blurple-hover: #4752C4;
  --boost: #F47FFF;
  --ok: #23A55A;
  --radius: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--black) url("/img/bg.jpg") center / cover no-repeat fixed;
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: #00A8FC; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--text-strong); line-height: 1.2; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 4px; }
.nav-right { gap: 10px; }
.brand { display: flex; align-items: center; margin-right: 10px; }
.brand img { height: 30px; width: auto; display: block; }
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 4px;
}
a.nav-link:hover, a.nav-link[aria-current="page"] {
  color: var(--text-strong);
  background: #17181A;
  text-decoration: none;
}
.nav-link.soon { opacity: .45; cursor: default; }

.me-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  color: var(--text-strong);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.me-link:hover { background: #17181A; text-decoration: none; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; display: block; background: var(--discord-grey); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 7px 16px;
  font: 600 14px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-signin { background: #fff; color: #111214; }
.btn-signin:hover { background: #E3E5E8; }
.btn-signup { background: #000; color: #fff; border-color: #4E5058; }
.btn-signup:hover { border-color: #fff; }
.btn-discord { background: var(--blurple); color: #fff; padding: 13px 30px; font-size: 16px; }
.btn-discord:hover { background: var(--blurple-hover); }
.btn-red { background: var(--ares-red); color: #fff; }
.btn-red:hover { background: var(--ares-red-dark); }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- home ---------- */
main { flex: 1; width: 100%; }
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 64px;
}
.notice {
  max-width: 520px;
  width: 100%;
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--black);
  border-left: 4px solid var(--ares-red);
  font-size: 14px;
}
/* Discord invite card (matches Discord's own invite dialog) */
.invite {
  width: 100%;
  max-width: 565px;
  background: #242429;
  border-radius: 8px;
  padding: 32px 38px 40px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .6);
}
.invite-logo { width: 64px; height: auto; display: block; margin: 0 auto 16px; }
.invite-from { margin: 0 0 6px; color: #DBDEE1; font-size: 16px; }
.invite-name { margin: 0; color: #fff; font-size: 24px; font-weight: 700; line-height: 1.25; }
.invite-counts {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 0;
  color: #B5BAC1;
  font-size: 14px;
  line-height: 1;
}
.cnt { display: inline-flex; align-items: center; }
.cnt + .cnt { margin-left: 18px; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot-online { background: #23A55A; }
.dot-members { background: #DBDEE1; }
.invite-join {
  display: block;
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #5865F2;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s;
}
.invite-join:hover { background: #4752C4; text-decoration: none; }
.home-more { margin-top: 22px; }
.home-more a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--black);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.home-more a:hover { color: #fff; }

/* ---------- content pages ---------- */
.page { max-width: 820px; margin: 0 auto; padding: 40px 20px 64px; }
.sheet {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.page h1 { font-size: 30px; margin: 0 0 6px; }
.page h2 { font-size: 20px; margin: 32px 0 10px; }
.flush { margin-top: 0 !important; }
.lead { color: var(--muted); margin: 0 0 24px; }
.panel {
  background: #0D0D0F;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.values { padding-left: 22px; }
.values li { margin: 6px 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 12px 0 0;
}
.stats div { background: #0D0D0F; padding: 12px 16px; }
.stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stats dd { margin: 2px 0 0; color: var(--text-strong); font-weight: 600; }
.cta { margin-top: 36px; text-align: center; }
.cta p { color: var(--muted); }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #B5BAC1;
}
.field select, .field textarea {
  width: 100%;
  padding: 10px;
  background: #17181A;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-strong);
  font: 15px/1.4 var(--font);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--blurple); }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-error { color: #FA777C; font-size: 14px; min-height: 20px; margin: 0 0 8px; }
.form-ok { color: var(--ok); font-size: 14px; min-height: 20px; margin: 0 0 8px; }

/* ---------- profiles ---------- */
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.avatar { flex: none; width: 88px; height: 88px; border-radius: 50%; background: var(--discord-grey); overflow: hidden; color: transparent; }
.profile-head h1 { margin: 0; font-size: 28px; }
.handle { color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #17181A;
}
.badge-boost { color: var(--boost); border-color: rgba(244, 127, 255, .4); }
.badge-member { color: #fff; border-color: rgba(243, 13, 23, .55); background: rgba(243, 13, 23, .15); }
.badge-out { color: var(--muted); }
.bio { white-space: pre-wrap; margin: 0; }
.empty { color: var(--muted); font-style: italic; }
.small { font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
.footer {
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: var(--black);
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  body { background-image: url("/img/bg-small.jpg"); background-attachment: scroll; }
  .topbar { flex-wrap: wrap; padding: 10px 12px; }
  .nav-link.soon { display: none; }
  .me-name { display: none; }
  .invite { padding: 28px 20px 32px; }
  .sheet { padding: 22px 18px; }
}
