/* =====================================================================
   Heart of Acheron — Staff page styles
   Linked from header.php. Uses the same CSS variables as main.css.
   ===================================================================== */

.staff-hero { text-align:center; padding-top:110px; }

.staff-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(290px, 1fr));
  align-items:stretch;
  gap:1.75rem;
  margin-top:2.5rem;
}

.staff-card {
  position:relative;
  display:flex;
  flex-direction:column;
  height:100%;
  background:linear-gradient(160deg, rgba(34,18,18,0.92) 0%, rgba(15,13,13,0.96) 100%);
  border:var(--border-rune);
  border-radius:16px;
  padding:2.25rem 1.5rem 1.75rem;
  text-align:center;
  transition:transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow:hidden;
}
.staff-card::before {
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(circle at 50% 0%, rgba(139,0,0,0.18), transparent 60%);
  pointer-events:none;
}
.staff-card:hover {
  transform:translateY(-6px);
  box-shadow:var(--shadow-blood);
  border-color:rgba(180,20,20,0.6);
}

/* Opacity-only reveal: the default .fade-in-up animates a transform, and a
   transform on a grid item breaks height:100%/stretch (footer collapses
   toward the roles ~0.6s after load). This keeps the fade without a transform. */
@keyframes staffFadeIn { from { opacity:0; } to { opacity:1; } }
.staff-card.fade-in-up { animation:staffFadeIn 0.5s ease forwards; }

/* highlighted card (e.g. featured / website creator) */
.staff-card.staff-featured { border-color:var(--gold); }
.staff-featured-tag {
  position:absolute; top:0; left:50%;
  transform:translate(-50%,-50%);
  background:linear-gradient(90deg, var(--gold-dim), var(--gold));
  color:#1a1208;
  font-family:var(--font-head);
  font-size:0.65rem; font-weight:700;
  letter-spacing:0.12em; text-transform:uppercase;
  padding:0.3rem 0.9rem; border-radius:999px;
  white-space:nowrap; box-shadow:0 2px 10px rgba(0,0,0,0.5);
  z-index:2;
}

.staff-portrait-wrap { position:relative; display:inline-block; align-self:center; margin-bottom:1.1rem; }
.staff-portrait {
  width:118px; height:118px; border-radius:50%;
  object-fit:cover;
  border:3px solid var(--blood);
  box-shadow:0 0 18px rgba(139,0,0,0.45);
  background:#000;
}
.staff-portrait-fallback {
  width:118px; height:118px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:#1a1414; border:3px solid var(--iron);
  font-family:var(--font-title); font-size:2.4rem; color:var(--bone-dim);
}

.staff-dot {
  position:absolute; bottom:6px; right:6px;
  width:22px; height:22px; border-radius:50%;
  border:4px solid var(--coal);
  box-sizing:border-box;
}
.staff-dot.online  { background:#3fb950; box-shadow:0 0 10px rgba(63,185,80,0.9); }
.staff-dot.offline { background:#6e7681; }

.staff-name {
  font-family:var(--font-head);
  font-size:1.35rem; color:var(--bone);
  letter-spacing:0.04em; margin-bottom:0.15rem;
}
.staff-tagline {
  font-family:var(--font-body); font-style:italic;
  color:var(--text-dim); font-size:0.85rem; margin-bottom:0.9rem;
}

.staff-roles {
  display:flex; flex-wrap:wrap; gap:0.5rem;
  justify-content:center; margin:0.6rem 0 1rem;
}

.role-badge {
  display:inline-flex; align-items:center; gap:0.35rem;
  font-family:var(--font-head);
  font-size:0.72rem; letter-spacing:0.05em;
  padding:0.32rem 0.7rem; border-radius:999px;
  white-space:nowrap;
}
.role-badge .role-icon { font-size:0.8rem; line-height:1; }

/* Role color palette */
.role-blood  { background:rgba(139,0,0,0.25);   border:1px solid rgba(180,20,20,0.45);  color:#e08c8c; }
.role-orange { background:rgba(204,68,0,0.20);  border:1px solid rgba(204,68,0,0.5);    color:#e8965a; }
.role-gold   { background:rgba(201,168,76,0.16);border:1px solid rgba(201,168,76,0.5);  color:#d8c070; }
.role-blue   { background:rgba(0,80,180,0.22);  border:1px solid rgba(40,120,255,0.45); color:#7aa8ff; }
.role-purple { background:rgba(120,60,180,0.22);border:1px solid rgba(150,90,220,0.5);  color:#c08af0; }
.role-green  { background:rgba(0,120,40,0.22);  border:1px solid rgba(0,180,70,0.45);   color:#5fd07f; }
.role-teal   { background:rgba(0,120,120,0.22); border:1px solid rgba(0,180,180,0.45);  color:#5fd0d0; }
.role-pink   { background:rgba(180,40,120,0.22);border:1px solid rgba(220,80,160,0.45); color:#f08ac0; }

.staff-footer { margin-top:auto; }

.staff-joined {
  font-family:var(--font-body); color:var(--text-dim);
  font-size:0.8rem; font-style:italic; margin-top:0.4rem;
}

.staff-socials { margin-top:0.9rem; display:flex; gap:0.75rem; justify-content:center; }
.staff-socials a {
  width:34px; height:34px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.05); border:1px solid var(--iron);
  color:var(--bone-dim); transition:all 0.2s ease;
}
.staff-socials a:hover { color:var(--bone); border-color:var(--blood); background:rgba(139,0,0,0.2); }

.staff-legend {
  display:flex; gap:1.5rem; justify-content:center;
  margin-top:1.25rem; font-family:var(--font-head);
  font-size:0.72rem; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--text-dim);
}
.staff-legend span { display:inline-flex; align-items:center; gap:0.4rem; }
.staff-legend .dot { width:11px; height:11px; border-radius:50%; }
.staff-legend .dot.online  { background:#3fb950; }
.staff-legend .dot.offline { background:#6e7681; }

/* Admin staff thumbnails */
.staff-thumb { width:44px; height:44px; border-radius:50%; object-fit:cover; border:2px solid var(--blood); }
.staff-thumb-fallback {
  width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:#1a1414; border:2px solid var(--iron); color:var(--bone-dim);
  font-family:var(--font-head);
}
