/* base.css — v3.0 — 2026-04-01 */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --fuchsia:       #C858A0;
  --fuchsia-dim:   #A03C80;
  --fuchsia-glow:  rgba(200,88,160,0.12);
  --blue:          #6688CC;
  --blue-dim:      #4A68AA;

  --bg:            #0A0A0A;
  --bg2:           #111111;
  --bg3:           #181818;
  --border:        rgba(255,255,255,0.07);
  --border-accent: rgba(200,88,160,0.3);

  --text:          #E8E3D8;
  --text-dim:      #888880;
  --text-dimmer:   #555550;

  --error:         #e05a5a;
  --success:       #4caf7d;
  --warning:       #c8a42a;

  --trust-0: #555550;
  --trust-1: #6688CC;
  --trust-2: #4caf7d;
  --trust-3: #c8a42a;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --max-width: 1100px;
  --radius: 4px;
}

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

html { font-size: 15px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: var(--fuchsia); text-decoration: none; }
a:hover { color: var(--fuchsia-dim); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
}
h1 { font-size: 22px; color: var(--blue); margin-bottom: 20px; }
h2 { font-size: 16px; color: var(--blue); margin-bottom: 14px; }
h3 { font-size: 14px; color: var(--text); margin-bottom: 10px; }

p { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 0.75rem; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg3);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
pre {
  background: var(--bg3);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 0.75rem;
}
pre code { background: none; padding: 0; }

blockquote {
  border-left: 3px solid var(--border-accent);
  padding-left: 1rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

main {
  flex: 1;
  padding: 28px 0;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 8px;
}
.site-header .logo:hover { text-decoration: none; }

.logo-img { height: 30px; width: auto; }

.logo-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.logo-az {
  background: linear-gradient(90deg, var(--blue) 0%, var(--fuchsia) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-header .header-section {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dimmer);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header .header-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.site-header .header-user .username {
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────────── */
.breadcrumb {
  padding: 8px 0;
  font-size: 12px;
  color: var(--text-dimmer);
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--fuchsia); text-decoration: none; }
.breadcrumb .sep { margin: 0 6px; color: var(--text-dimmer); }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-dimmer);
  font-family: var(--font-mono);
  margin-top: auto;
}
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--fuchsia); text-decoration: none; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--fuchsia);
  color: #fff;
  border-color: var(--fuchsia);
}
.btn-primary:hover { background: var(--fuchsia-dim); border-color: var(--fuchsia-dim); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--text-dim);
  border-color: rgba(255,255,255,0.12);
}
.btn-secondary:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

.btn-danger {
  background: transparent;
  color: #d09090;
  border-color: rgba(200,80,80,0.4);
}
.btn-danger:hover { background: #7a2020; color: #fff; border-color: #7a2020; }

.btn-outline {
  background: transparent;
  color: var(--fuchsia);
  border-color: var(--fuchsia);
}
.btn-outline:hover { background: var(--fuchsia); color: #fff; }

.btn-sm { padding: 4px 10px; font-size: 12px; }

/* ── Forms ──────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 7px 10px;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--fuchsia);
  box-shadow: 0 0 0 3px var(--fuchsia-glow);
}
textarea { resize: vertical; min-height: 120px; }

.form-hint  { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--error); margin-top: 4px; }

/* ── Alerts ─────────────────────────────────────────────────────────────────── */
.alert {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.alert-error   { background: #2a1010; border-color: #5a2020; color: #e08080; }
.alert-success { background: #0e2a1a; border-color: #1a5a30; color: #6dd09a; }
.alert-info    { background: #0e0e22; border-color: rgba(102,136,204,0.3); color: #8899e0; }

/* ── Trust badges ───────────────────────────────────────────────────────────── */
.trust-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 6px;
  letter-spacing: 0.03em;
}
.trust-0 { color: var(--trust-0); border: 1px solid var(--trust-0); }
.trust-1 { color: var(--trust-1); border: 1px solid var(--trust-1); }
.trust-2 { color: var(--trust-2); border: 1px solid var(--trust-2); }
.trust-3 { color: var(--trust-3); border: 1px solid var(--trust-3); }

/* ── Pagination ─────────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}
.pagination a, .pagination span {
  padding: 5px 12px;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}
.pagination .current { background: var(--fuchsia); color: #fff; border-color: var(--fuchsia); }

/* ── Loading / empty states ─────────────────────────────────────────────────── */
.loading, .empty {
  color: var(--text-dim);
  font-size: 13px;
  padding: 32px 0;
  text-align: center;
  font-family: var(--font-mono);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  h1 { font-size: 18px; }
  .site-header .container { flex-wrap: wrap; gap: 10px; }
  .site-header .header-user { margin-left: 0; width: 100%; justify-content: flex-end; }
}
