/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:            #0b1a0e;
  --surface:       #112016;
  --surface-mid:   #1a3021;
  --surface-high:  #233d2b;
  --border:        #2a4a34;

  --green:         #1e5c31;
  --green-mid:     #2d7d45;
  --green-bright:  #3d9e58;

  --gold:          #c9a227;
  --gold-light:    #e0b835;

  --text:          #ddeee2;
  --text-muted:    #7a9b82;
  --text-dim:      #4e7058;

  --red-bg:        #3d1010;
  --red-text:      #f87171;

  --nav-h:         64px;
  --radius:        10px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-top: var(--nav-h);
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 100;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.navbar-mascot {
  height: 44px;
  width: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(61, 158, 88, 0.4));
}

.navbar-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--surface-mid); }

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-btn:hover { background: var(--green-mid); }

.nav-btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.nav-btn-ghost:hover { background: var(--surface-mid); color: var(--text); }

/* ── Page layout ────────────────────────────────────────── */
.page-center {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 2rem;
}

/* ── Card ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

h1 { font-size: 1.75rem; margin-bottom: 0.5rem; color: var(--text); }
p  { color: var(--text-muted); line-height: 1.6; margin: 0.75rem 0; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: background 0.15s;
}
.btn:hover { background: var(--green-mid); }

.btn-gold {
  background: var(--gold);
  color: #0b1a0e;
}
.btn-gold:hover { background: var(--gold-light); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover { background: var(--surface-mid); color: var(--text); }

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}
.badge-green { background: #1a4731; color: #4ade80; }
.badge-red   { background: #4a1a1a; color: #f87171; }

/* ── Avatar ─────────────────────────────────────────────── */
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid var(--border);
}

/* ── Actions row ────────────────────────────────────────── */
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* ── Members grid ───────────────────────────────────────── */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.member-card:hover {
  background: var(--surface-high);
  border-color: var(--green-mid);
}

.member-card-icon  { font-size: 1.75rem; }
.member-card-title { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.member-card-desc  { font-size: 0.75rem; color: var(--text-muted); text-align: center; }

/* ── Full-page section layout ───────────────────────────── */
.page-full {
  height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.section-header h1 { font-size: 1.25rem; margin: 0; }

/* ── PDF viewer ─────────────────────────────────────────── */
.pdf-viewer {
  flex: 1;
  width: 100%;
  border: none;
  background: var(--bg);
}

.pdf-fallback {
  flex: 1;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Error / notice ─────────────────────────────────────── */
.error {
  background: var(--red-bg);
  color: var(--red-text);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
