/* shared.css — Design tokens, body, and shared navbar for all public SFC pages */

:root {
  --bg: #0d0f12;
  --bg-raised: #141820;
  --bg-subtle: #1a1f28;
  --card: #1a1f28;
  --border: #1e2530;
  --border-focus: #8b0000;
  --text: #f0f0f0;
  --text-secondary: #a0a8b4;
  --text-muted: #7a8494;
  --red: #ff4c4c;
  --deep: #8b0000;
  --yellow: #ffd700;
  --green: #4CFF4C;
  --blue: #4c8cff;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 12px 24px;
  z-index: 20;
  background: rgba(13, 15, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

.nav-brand {
  font-weight: 900;
  font-size: 1.3em;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9em;
  transition: color 0.15s;
  padding: 4px 0;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--red); border-bottom: 2px solid var(--red); }

/* Account control */
.nav-account {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85em;
  cursor: pointer;
  transition: border-color 0.15s;
}
.nav-account-btn:hover { border-color: var(--text-muted); }

.nav-account-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 0;
  min-width: 140px;
  z-index: 30;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.nav-account-menu.open { display: block; }

.nav-account-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85em;
}
.nav-account-menu a:hover { color: var(--red); background: var(--bg-subtle); }

.nav-login-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9em;
}
.nav-login-link:hover { color: var(--text); }

/* Mobile nav */
@media (max-width: 768px) {
  .navbar {
    grid-template-columns: auto auto;
    gap: 8px;
    padding: 10px 16px;
  }
  .nav-links {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    background: rgba(13, 15, 18, 0.95);
    backdrop-filter: blur(8px);
    padding: 12px;
    display: flex;
    justify-content: center;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-account { display: none; }
}

/* ===== PAGE LAYOUT ===== */
.page-content {
  padding-top: 70px;
  min-height: 100vh;
}

/* ===== EMPTY STATES ===== */
.empty-state {
  color: var(--text-muted);
  font-weight: 700;
  padding: var(--space-md);
  font-size: 0.95em;
}

/* Page header accent — one thin red line beneath page titles */
.page-header {
  border-bottom: 2px solid var(--deep);
  padding-bottom: 12px;
  margin-bottom: var(--space-lg);
}

/* ===== FOCUS STATES ===== */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
