/*
 * RSG Game Hub — Shared Tool Page Styles
 * ============================================================================
 * Drop-in stylesheet for tool/survey HTML pages under public/assets/.
 * Matches the Asset Gallery palette (index.html). Edit shared/tool-styles.css
 * and release.sh syncs it into <game>/public/assets/_tool-styles.css on build.
 * Do NOT edit _tool-styles.css directly — it is overwritten.
 */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg:         #0a0608;
  --surface:    #12090d;
  --card:       #1a1218;
  --card-h:     #241a20;
  --accent:     #e8a020;
  --accent-b:   #f0c060;
  --ember1:     #c04030;
  --gold:       #e8a020;
  --gold-bright:#f8d880;
  --text:       #f0e8d8;
  --muted:      #8a7a6a;
  --border:     rgba(232,160,32,0.2);
  --border-hi:  rgba(232,160,32,0.45);
  --radius:     10px;
  --font-display:'Cinzel',Georgia,serif;
  --font-ui:'Inter','Segoe UI',sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  padding: 24px 16px 64px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  margin-left: auto;
  margin-right: auto;
}

h1 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.1em;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 40%, var(--ember1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 16px;
}
h2 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent-b);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin: 32px 0 14px;
  letter-spacing: 0.05em;
}
h3 { font-family: var(--font-display); font-size: 16px; color: var(--gold-bright); margin: 0 0 6px; }
p { margin: 0 0 10px; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.88em; color: var(--accent-b); background: rgba(232,160,32,0.06); padding: 1px 5px; border-radius: 3px; }
a { color: var(--accent-b); }

.intro {
  background: linear-gradient(180deg, rgba(232,160,32,0.05), rgba(192,64,48,0.04));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 20px;
}

.affix, .card, .tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 12px 0;
  transition: border-color 0.15s, background 0.15s;
}
.affix:hover, .card:hover, .tool-card:hover { background: var(--card-h); border-color: var(--border-hi); }
.new-affix { border-style: dashed; border-color: rgba(140,200,120,0.35); background: rgba(40,60,35,0.25); }

.meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.meta code { color: var(--accent-b); }

.status {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 6px;
  border: 1px solid transparent;
}
.status.ok       { background: rgba(90,180,110,0.15); color: #9fe2a8; border-color: rgba(90,180,110,0.35); }
.status.partial  { background: rgba(232,160,32,0.15); color: var(--gold-bright); border-color: rgba(232,160,32,0.4); }
.status.broken   { background: rgba(192,64,48,0.18); color: #f0a090; border-color: rgba(192,64,48,0.45); }

label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 10px 0 4px;
}

input[type=text], input[type=number], select, textarea {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.15s, background 0.15s;
}
input[type=text]:focus, input[type=number]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #160c11;
}
textarea { min-height: 56px; resize: vertical; line-height: 1.5; }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 120px; }

button, .btn {
  background: linear-gradient(180deg, var(--accent) 0%, #b87018 100%);
  color: #1a0f05;
  border: 1px solid rgba(0,0,0,0.4);
  padding: 10px 20px;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 10px;
  transition: filter 0.15s, transform 0.1s;
}
button:hover, .btn:hover { filter: brightness(1.1); }
button:active, .btn:active { transform: translateY(1px); }
button.secondary, .btn.secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}
button.secondary:hover, .btn.secondary:hover { background: var(--card-h); border-color: var(--border-hi); }

#output, pre.output {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 14px;
  white-space: pre-wrap;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--text);
  display: none;
}

.callout {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  body { padding: 16px 12px 48px; }
  h2 { margin-top: 24px; }
  .row { flex-direction: column; }
  .row > * { min-width: 0; }
}
