/* FontReport - Shared Styles */

/* CSS Variables */
:root {
  --bg: #0b0c10;
  --panel: #101217;
  --panel-2: #0e1117;
  --text: #f5f7fb;
  --muted: #a7adbb;
  --stroke: #162639;
  --brand: #e11d48;
  --brand-2: #f43f5e;
  --accent: #8cc63f;
  --accent-2: #6fa030;
  --ok: #22c55e;
  --ok-bg: rgba(34, 197, 94, .08);
  --ok-border: rgba(34, 197, 94, .35);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, .08);
  --warn-border: rgba(251, 191, 36, .35);
  --review: #3b82f6;
  --review-bg: rgba(59, 130, 246, .08);
  --review-border: rgba(59, 130, 246, .35);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, .08);
  --danger-border: rgba(239, 68, 68, .35);
  --chip: #141926;
  --chip-border: #1e2635;
  --radius: 12px;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1400px 800px at 60% 0px, rgba(125, 211, 252, .15), rgba(125,211,252,0) 70%),
    radial-gradient(1000px 600px at -5% 40%, rgba(59, 130, 246, .08), rgba(59,130,246,0) 65%),
    var(--bg);
  font: 14px/1.5 'TASA Explorer', system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

/* Navigation */
.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0 20px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand .logo {
  width: 120px;
  height: 28px;
  background-image: url('/static/img/fr-header-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 16px;
}

.nav a:hover {
  color: var(--accent);
}

.nav a:hover {
  color: var(--accent);
}

.nav a.active {
  color: var(--text);
  position: relative;
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Header */
.header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 20px 20px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.header h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left:18px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  color: var(--text);
  text-decoration: none;
  transition: all .15s ease;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.btn:hover {
  background: var(--panel-2);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-color: var(--accent);
  color: white;
}

/* Actions */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  max-width: 1200px;
  margin: 40px auto 30px auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

/* Utilities */
.muted {
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

/* Code */
code {
  background: var(--chip);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid var(--chip-border);
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* Details styling */
details {
  cursor: pointer;
}

details summary {
  font-weight: 500;
  color: var(--text);
  user-select: none;
}

details summary:hover {
  color: var(--accent);
}

details[open] summary {
  margin-bottom: 12px;
}

/* Dashboard button in nav */
.nav .btn.dashboard {
  background: #4981a5;
  border-color: var(--review-border);
  margin-left: 24px;
  color:#fff;
  padding:4px 12px;
  font-size:13px;
}

.nav .btn.dashboard:hover {
  background: var(--review);
  border-color: var(--review);
  transform: translateY(-1px);
}

.nav .btn.dashboard.active {
  background: var(--panel);
  border-color: var(--stroke);
  color: var(--text);
  cursor: default;
}

.nav .btn.dashboard.active:hover {
  transform: none;
}

/* Content pages */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.content h2 {
  margin: 32px 0 16px 0;
  font-size: 20px;
  font-weight: 600;
}

.content h3 {
  margin: 24px 0 12px 0;
  font-size: 16px;
  font-weight: 600;
}

.content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.content li {
  margin: 8px 0;
  line-height: 1.6;
}