/* GuildCore Commands Page — "Ultimate" modern design */
:root{
  --bg0:#0a1024;
  --bg1:#0b1330;
  --bgGlass:rgba(255,255,255,0.06);
  --line:rgba(255,255,255,0.08);
  --text:#e8eefc;
  --muted:#b9c4e6;
  --accent:#6ea8fe;
  --accent2:#9b8cff;
  --ok:#22c55e;
  --warn:#f59e0b;
  --bad:#ef4444;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

html,body{
  background: radial-gradient(1200px 800px at 10% 10%, #0b1740 0%, var(--bg0) 55%) fixed,
              radial-gradient(1200px 800px at 90% 20%, #132266 0%, var(--bg1) 60%) fixed;
  color:var(--text);
}

.hero--commands{
  padding: 48px 0 8px;
  position: relative;
}
.hero--commands .title{
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  margin: 0 0 12px;
}
.hero--commands .lead{
  color: var(--muted);
  margin: 0;
  max-width: 850px;
}

.glass{
  background: var(--bgGlass);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.controls{
  margin: 18px 0 26px;
  display: grid;
  gap: 12px;
}

.searchbar{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 10px 14px;
}
.searchbar input{
  flex:1;
  background: transparent;
  border: none;
  color: var(--text);
  outline: none;
  font-size: 15px;
}
.searchbar .kbd{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 6px;
}

.pills{
  display:flex; flex-wrap: wrap; gap:8px;
}
.pills .pill{
  padding:8px 12px; border-radius:999px; border:1px solid var(--line);
  color:var(--text); text-decoration:none; cursor:pointer; user-select:none;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.pills .pill[data-active="true"]{ border-color: color-mix(in lab, var(--accent) 60%, white 0%); box-shadow: 0 0 0 2px rgba(110,168,254,.15) inset; }
.pills .pill:hover{ transform: translateY(-1px); }

.grid{ display:grid; gap:16px; }
.grid-cols-3{ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.cat-card{
  padding: 18px; position: relative; overflow: hidden;
}
.cat-card .head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.cat-card .head h3{ margin:0; font-size:18px; letter-spacing:.2px; }
.cat-card .head .badge{ font-size:12px; color:var(--muted); border:1px solid var(--line); padding:3px 8px; border-radius:999px; }

.command{
  border:1px solid var(--line); border-radius:12px;
  overflow:hidden; margin:10px 0; background:rgba(255,255,255,.02);
}
.command summary{
  list-style:none;
  cursor:pointer; padding:12px 14px; position:relative;
  display:flex; align-items:center; gap:10px;
}
.command summary::-webkit-details-marker{ display:none; }
.command .name{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(110,168,254,.12); border:1px solid rgba(110,168,254,.25); padding:2px 8px; border-radius:8px; }
.command .desc{ color:var(--muted); }
.command .meta{ margin-left:auto; display:flex; align-items:center; gap:10px; color:var(--muted); font-size:12px; }
.command .meta .perm{ color: var(--warn); }
.command .meta .admin{ color: var(--bad); }
.command .content{ padding:12px 14px 14px; border-top:1px solid var(--line); }
.command .row{ display:flex; gap:12px; flex-wrap:wrap; }
.command .chip{ border:1px solid var(--line); padding:4px 8px; border-radius:8px; color:var(--muted); font-size:12px; }
.command .actions{ margin-left:auto; display:flex; gap:8px; }
.button{ background: linear-gradient(180deg, var(--accent), var(--accent2)); color:white; border:none; border-radius:8px; padding:8px 12px; cursor:pointer; }
.button.ghost{ background:transparent; border:1px solid var(--line); color:var(--text); }
.button:hover{ transform: translateY(-1px); }

.section-divider{ height:1px; background:linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); margin:26px 0; }

.footer-note{ color:var(--muted); font-size:13px; text-align:center; margin-top:18px; }

@media (prefers-reduced-motion: no-preference){
  .cat-card{ transition: transform .2s ease; }
  .cat-card:hover{ transform: translateY(-2px); }
}
