@import url('/static/tokens.css');

:root {
  --bg: var(--viewer-canvas);          /* #141416 — very dark base */
  --surface: var(--glass-bg-base);     /* #1a1a1c — card/panel surface */
  --surface-raised: var(--viewer-scene-bg); /* #262626 — elevated elements */
  --border: var(--glass-border);       /* rgba(255,255,255,0.1) */
  --text: var(--glass-fg);             /* #faf8f5 warm white */
  --muted: var(--neutral-gray);        /* #6b6b6b */
  --accent: var(--solar-gold);         /* #ffc527 — ONEPlan brand gold */
  --accent-hover: #e6b020;             /* darkened gold for hover */
  --error: var(--error-red);           /* #b0463c */
  --success: var(--success);           /* #16a34a */
  --warning: var(--warning);           /* #d97706 */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); min-height: 100vh; }

/* ── Floating glass pill header ──────────────────────────────── */
.lg-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  height: 50px;
  border-radius: 25px;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: max-content;
  z-index: 300;
  min-width: 200px;
  max-width: calc(100vw - 28px);
  background: var(--glass-fill, rgba(26, 26, 28, 0.65));
  backdrop-filter: var(--viewer-glass-filter, blur(28px) saturate(140%));
  -webkit-backdrop-filter: var(--viewer-glass-filter, blur(28px) saturate(140%));
  border: var(--viewer-glass-border, 1px solid rgba(250, 248, 245, 0.12));
  box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.45));
  cursor: default;
  user-select: none;
}

/* ── Wordmark ────────────────────────────────────────────────── */
.wordmark-name {
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--warm-white, #faf8f5);
  white-space: nowrap;
  display: inline-flex;
  align-items: flex-start;
}
.wordmark-light { font-weight: 300; }
.wordmark-bold  { font-weight: 800; }
.wordmark-tm {
  font-size: 10px;
  font-weight: 600;
  margin-top: 1px;
  margin-left: 2px;
  letter-spacing: 0;
  color: var(--solar-gold, #ffc527);
}

/* ── Powered-by tagline ──────────────────────────────────────── */
.viewer-tagline {
  position: fixed;
  right: 24px;
  bottom: 18px;
  z-index: 100;
  font-size: 13px;
  color: rgba(250, 248, 245, 0.45);
  letter-spacing: 0.01em;
  pointer-events: none;
}
.viewer-tagline-tekton {
  color: rgba(250, 248, 245, 0.75);
  font-weight: 600;
}
.viewer-tagline-accent {
  color: var(--solar-gold, #ffc527);
  font-weight: 800;
}

/* ── Hidden old header ───────────────────────────────────────── */
.portal-header {
  display: none;
}

/* ── Main content layout ─────────────────────────────────────── */
.portal-main {
  padding: 100px 40px 80px;
  max-width: 960px;
  margin: 0 auto;
}

.portal-intro {
  text-align: center;
  margin-bottom: 48px;
}

.portal-tagline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.portal-sub {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.6;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tool-card:hover {
  border-color: var(--accent);
  background: var(--surface-raised);
}

.tool-card-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.tool-card-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.tool-card-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.empty { padding: 64px 32px; text-align: center; color: var(--muted); }

/* ── Recent Activity ─────────────────────────────────────────── */
.recent-section {
  margin-top: 48px;
}

.recent-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recent-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.1s ease;
}

.recent-item:hover {
  background: var(--surface);
}

.recent-title {
  font-size: 14px;
  font-weight: 500;
}

.recent-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.recent-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 14px;
}
