/* Dexes branding for voc-server sub-apps.
 *
 * Reuses the look of gen2.dexes.eu/status: design tokens, Sora/DM Sans fonts,
 * the .site-header and .site-footer components, and the off-white background.
 * Loaded AFTER the app's own styles.css so it remaps the existing semantic
 * tokens (--accent, --bg, --fg, …) onto the Dexes palette — existing
 * components (cards, buttons, badges, the concept viewer) inherit the theme
 * with no per-component changes.
 *
 * Assets are self-hosted in each app's public/images/ folder (logo-black.svg,
 * logo-white-payoff.svg, DexesWaveGray.svg) — no runtime dependency on gen2.
 * The cube logo-mark stays inline (matches the status-page lockup).
 */

:root {
  /* Dexes brand tokens (from the shared catalog stylesheet) */
  --primary:        #5C3FA5;
  --primary-light:  #7B5FCA;
  --primary-dark:   #3D2875;
  --primary-pale:   #EDE8F9;
  --dexes-accent:   #E05210;
  --dark:           #140F2A;
  --dark2:          #2D2450;
  --off-white:      #F8F6FD;
  --gray:           #6B7A8D;
  --gray-mid:       #9AA3AF;
  --gray-light:     #E8E4F0;
  --gray-pale:      #F4F2F8;
  --white:          #FFFFFF;
  --green:          #2E7D32;
  --green-pale:     #E8F5E9;
  --amber:          #E65100;
  --amber-pale:     #FFF3E0;
  --red:            #C62828;
  --red-pale:       #FCE4EC;
  --font-head:      'Sora', sans-serif;
  --font-body:      'DM Sans', sans-serif;
  --radius:         16px;
  --radius-sm:      8px;
  --shadow:         0 4px 24px rgba(92,63,165,.08);
  --shadow-md:      0 8px 40px rgba(92,63,165,.12);
  --tr:             .28s cubic-bezier(.4,0,.2,1);

  /* Remap the app's existing semantic tokens onto the Dexes palette */
  --fg:        var(--dark);
  --muted:     var(--gray);
  --bg:        var(--off-white);
  --card:      var(--white);
  --border:    var(--gray-light);
  --accent:    var(--primary);
  --accent-fg: #ffffff;
  --danger:    var(--red);
  --ok:        var(--green);
  --code-bg:   var(--gray-pale);
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--off-white);
  /* Dexes wave, self-hosted in public/images/ (served at /images for both apps). */
  background-image: url('/images/DexesWaveGray.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.01em; }

/* ── Header (mirrors .site-header on the status page) ─────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 12px rgba(92,63,165,.06);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 41px; height: 41px; background: var(--primary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-mark svg {
  width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.logo-text {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700;
  color: var(--dark); letter-spacing: -0.02em;
}
.logo-text em { color: var(--primary); font-style: normal; }
.logo-img { height: 26px; width: auto; display: block; }

.header-tag {
  background: var(--primary-pale); color: var(--primary);
  font-size: 0.68rem; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 0.07em;
  white-space: nowrap;
}
.header-spacer { flex: 1; }
.header-nav-link {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.83rem; font-weight: 600; color: var(--dark);
  text-decoration: none; padding: 7px 14px; border-radius: var(--radius-sm);
  transition: color var(--tr), background var(--tr);
  white-space: nowrap;
}
.header-nav-link:hover {
  color: var(--primary); background: var(--primary-pale); text-decoration: none;
}
.header-user { font-size: 0.8rem; color: var(--gray); }

/* ── Footer (mirrors .site-footer on the status page) ────────── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.55); font-size: .8rem; }
.site-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 40px; align-items: flex-start;
  padding: 28px 24px 20px;
}
.footer-col { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.footer-col-brand { flex: 0 0 auto; min-width: 150px; gap: 8px; }
.footer-powered {
  font-size: .7rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
}
.footer-wordmark {
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem;
  color: #fff; letter-spacing: -0.02em;
}
.footer-col-title {
  font-size: .7rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 2px;
}
.footer-col a {
  color: rgba(255,255,255,.65); text-decoration: none; font-size: .8rem;
  transition: color var(--tr);
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.site-footer-bottom-wrap { background: var(--white); border-top: 1px solid var(--gray-light); }
.site-footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 12px 24px;
  font-size: .78rem; color: var(--gray);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  justify-content: space-between;
}
.site-footer-bottom a { color: var(--primary); }

/* ── Responsive (mirrors the status page breakpoints) ────────── */
@media (max-width: 1024px) { .header-tag { display: none; } }
@media (max-width: 680px) {
  .site-footer-inner { flex-direction: column; gap: 20px; padding: 24px 20px 16px; }
  .footer-col-brand {
    flex-direction: row; align-items: center; gap: 12px;
    padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1); width: 100%;
  }
  .footer-col { width: 100%; }
}
@media (max-width: 480px) {
  .header-inner { padding: 0 12px; gap: 6px; }
  .logo-mark { width: 34px; height: 34px; }
}
