/* Steven-Systems — shared styles for status.php, changelog.php, admin/ */
:root {
  --bg: #0b0d10;
  --bg-2: #14171c;
  --surface: #181c22;
  --surface-hi: #1e232a;
  --border: #23282f;
  --border-hi: #313842;
  --text: #e6e8eb;
  --text-mute: #8a929c;
  --text-faint: #5a6069;
  --accent: #4dd4ff;
  --accent-hover: #6de0ff;
  --accent-dim: rgba(77, 212, 255, 0.12);
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; font-size: 15px; min-height: 100vh; }
h1, h2, h3, h4 { letter-spacing: -0.015em; line-height: 1.25; font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

nav.top { position: sticky; top: 0; z-index: 50; background: rgba(11,13,16,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
nav.top .row { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 24px; max-width: 1080px; margin: 0 auto; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.brand img { width: 28px; height: 28px; }
nav .links { display: flex; gap: 24px; }
nav .links a { color: var(--text-mute); font-size: 14px; transition: color 0.12s; }
nav .links a:hover, nav .links a.active { color: var(--text); }
nav .links a.active { color: var(--accent); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text-mute); transition: background 0.12s; }
.user-chip:hover { background: var(--surface-hi); color: var(--text); }
.user-chip img { width: 22px; height: 22px; border-radius: 50%; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 6px; font-weight: 500; font-size: 14px; transition: background 0.12s, border-color 0.12s, transform 0.08s; border: 1px solid transparent; cursor: pointer; white-space: nowrap; font-family: inherit; }
.btn-primary { background: var(--accent); color: #001820; font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-hi); }
.btn-ghost:hover { background: var(--surface); border-color: #3d4552; }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(248,113,113,0.3); }
.btn-danger:hover { background: rgba(248,113,113,0.1); border-color: var(--red); }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

main { padding: 50px 0 80px; }
.page-head { margin-bottom: 36px; max-width: 720px; }
.page-head .kicker { font-size: 13px; color: var(--accent); font-weight: 500; margin-bottom: 10px; }
.page-head h1 { font-size: clamp(28px, 3.5vw, 36px); margin-bottom: 12px; }
.page-head p { color: var(--text-mute); font-size: 16px; }

/* Cards & surfaces */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.card-head h3 { font-size: 16px; }

/* Status dots */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.dot.ok { background: var(--green); box-shadow: 0 0 10px rgba(74,222,128,0.5); }
.dot.warn { background: var(--amber); box-shadow: 0 0 10px rgba(251,191,36,0.5); }
.dot.err { background: var(--red); box-shadow: 0 0 10px rgba(248,113,113,0.5); }

/* Status page */
.status-overall { padding: 28px; border-radius: 8px; margin-bottom: 24px; display: flex; align-items: center; gap: 16px; font-size: 20px; font-weight: 600; }
.status-overall.ok { background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.25); }
.status-overall.warn { background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.25); }
.status-overall.err { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.25); }
.status-list { display: flex; flex-direction: column; gap: 10px; }
.status-row { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.status-row .label { font-weight: 500; }
.status-row .meta { color: var(--text-faint); font-size: 13px; font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Changelog */
.cl-entry { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.cl-entry:last-child { border-bottom: 0; }
.cl-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.cl-version { font-size: 22px; font-weight: 600; font-family: 'JetBrains Mono', monospace; letter-spacing: -0.01em; }
.cl-date { color: var(--text-faint); font-size: 13px; font-family: 'JetBrains Mono', monospace; }
.cl-tag { font-size: 11px; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.cl-tag.feature { background: rgba(77,212,255,0.12); color: var(--accent); }
.cl-tag.bugfix { background: rgba(74,222,128,0.12); color: var(--green); }
.cl-tag.breaking { background: rgba(248,113,113,0.12); color: var(--red); }
.cl-tag.maintenance { background: rgba(138,146,156,0.12); color: var(--text-mute); }
.cl-desc { color: var(--text-mute); margin-bottom: 14px; }
.cl-section { margin-top: 14px; }
.cl-section h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 8px; font-weight: 500; }
.cl-section ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cl-section li { color: var(--text); font-size: 14.5px; padding-left: 18px; position: relative; }
.cl-section li::before { content: '•'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.cl-section.added li::before { color: var(--green); }
.cl-section.changed li::before { color: var(--accent); }
.cl-section.fixed li::before { color: var(--amber); }
.cl-section.removed li::before { color: var(--red); }
.cl-actions { display: flex; gap: 8px; margin-top: 14px; }

/* Forms */
.form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-field label { font-size: 12.5px; color: var(--text-mute); font-weight: 500; }
.form-field input, .form-field textarea, .form-field select { background: var(--bg); border: 1px solid var(--border); border-radius: 5px; padding: 10px 12px; color: var(--text); font-family: inherit; font-size: 14px; transition: border-color 0.12s; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 90px; font-family: 'JetBrains Mono', monospace; font-size: 13.5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert { padding: 12px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 20px; }
.alert.ok { background: rgba(74,222,128,0.08); color: var(--green); border: 1px solid rgba(74,222,128,0.25); }
.alert.err { background: rgba(248,113,113,0.08); color: var(--red); border: 1px solid rgba(248,113,113,0.25); }

/* Admin dashboard */
.admin-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.commit { padding: 14px 0; border-bottom: 1px solid var(--border); }
.commit:last-child { border-bottom: 0; }
.commit-msg { font-weight: 500; margin-bottom: 4px; font-size: 14.5px; }
.commit-meta { color: var(--text-faint); font-size: 12.5px; font-family: 'JetBrains Mono', monospace; display: flex; gap: 10px; align-items: center; }
.commit-sha { color: var(--accent); }
.commit-actions { margin-top: 8px; }

footer { border-top: 1px solid var(--border); padding: 32px 0 24px; margin-top: 40px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--text-faint); font-size: 12.5px; }

/* Changelog section grid (admin editor) */
.sec-editor { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 18px; margin-bottom: 14px; }
.sec-editor h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 10px; font-weight: 500; }
.sec-editor textarea {
  width: 100%;
  min-height: 70px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px 12px;
  color: var(--text);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13.5px;
  resize: vertical;
  transition: border-color 0.12s;
}
.sec-editor textarea:focus { outline: none; border-color: var(--accent); }
.sec-editor textarea::placeholder { color: var(--text-faint); }

/* Login page */
.login-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 36px; max-width: 400px; width: 100%; text-align: center; }
.login-card img { width: 56px; height: 56px; margin: 0 auto 20px; }
.login-card h1 { font-size: 22px; margin-bottom: 10px; }
.login-card p { color: var(--text-mute); margin-bottom: 24px; font-size: 14px; }
.btn-discord { background: #5865F2; color: white; width: 100%; justify-content: center; padding: 12px; font-weight: 600; }
.btn-discord:hover { background: #4752C4; }

/* Rechtstexte (bot-privacy.html, bot-terms.html) */
.legal { max-width: 760px; }
.legal h2 { font-size: 19px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--text-mute); font-size: 15px; line-height: 1.7; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 14px 20px; display: flex; flex-direction: column; gap: 6px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal .note { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin: 14px 0; }
.legal .legal-foot { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-faint); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }

@media (max-width: 820px) {
  nav .links { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
