/**
 * EidOS Canonical Platform Navigation & Page Structure Styles
 * Unified across all EidOS SaaS Products, Portals, and Consoles.
 */

:root {
  --eidos-ink: #0f172a;
  --eidos-brand: #1f6feb;
  --eidos-brand-dark: #0b2545;
  --eidos-accent: #38bdf8;
  --eidos-amber: #f59e0b;
  --eidos-emerald: #10b981;
  --eidos-rose: #f43f5e;
  --eidos-purple: #8b5cf6;
  --eidos-card-bg: #ffffff;
  --eidos-border: #e2e8f0;
  --eidos-bg-page: #f8fafc;
  --eidos-radius: 8px;
  --eidos-radius-lg: 12px;
}

/* ── Line 1: Obsidian Global Platform Bar ── */
.eidos-platform-bar {
  background: #090d16;
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 6px 20px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 9999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background 0.2s ease, border-color 0.2s ease;
}

[data-theme="light"] .eidos-platform-bar {
  background: #ffffff;
  color: #334155;
  border-bottom: 1px solid #cbd5e1;
}
[data-theme="light"] .eidos-platform-bar a {
  color: #475569;
}
[data-theme="light"] .eidos-platform-bar a:hover {
  color: #0f172a;
}
[data-theme="light"] .eidos-badge-node {
  background: #e2e8f0;
  color: #0369a1;
}
[data-theme="light"] .eidos-auth-pill {
  color: #334155;
}
[data-theme="light"] .eidos-auth-btn {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

[data-theme="sepia"] .eidos-platform-bar {
  background: #fbf7ee;
  color: #433422;
  border-bottom: 1px solid #dcd0bf;
}
[data-theme="sepia"] .eidos-platform-bar a {
  color: #6b5c4d;
}
[data-theme="sepia"] .eidos-platform-bar a:hover {
  color: #291e14;
}
[data-theme="sepia"] .eidos-badge-node {
  background: #ede3d3;
  color: #b45309;
}
[data-theme="sepia"] .eidos-auth-pill {
  color: #433422;
}
[data-theme="sepia"] .eidos-auth-btn {
  background: rgba(180, 83, 9, 0.08);
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.25);
}

.eidos-platform-bar a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
  font-weight: 500;
}

.eidos-platform-bar a:hover {
  color: #ffffff;
}

.eidos-platform-bar-left,
.eidos-platform-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.eidos-badge-node {
  background: #1e293b;
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eidos-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.8rem;
}

.eidos-auth-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  display: inline-block;
}

.eidos-auth-dot.active {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.eidos-auth-btn {
  color: #38bdf8;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  text-decoration: none;
  transition: all 0.15s ease;
}

.eidos-auth-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
}

.eidos-auth-btn.btn-signout {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.3);
}

.eidos-auth-btn.btn-signout:hover {
  background: rgba(248, 113, 113, 0.25);
  color: #ffffff;
}

/* ── Line 2: Product / Service Header ── */
.eidos-service-header {
  background: #ffffff;
  border-bottom: 1px solid var(--eidos-border);
  padding: 14px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.eidos-service-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.eidos-service-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eidos-service-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--eidos-brand-dark), var(--eidos-brand));
  border-radius: var(--eidos-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.35rem;
  box-shadow: 0 2px 6px rgba(11, 37, 69, 0.2);
}

.eidos-service-title h1 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--eidos-brand-dark);
  letter-spacing: -0.02em;
}

.eidos-service-title span {
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 500;
}

.eidos-session-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.eidos-session-badge.sandbox {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

/* ── Line 3: Main Page Container ── */
.eidos-main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 180px);
}

/* ── Line 4: Canonical Platform Footer ── */
.eidos-platform-footer {
  background: #090d16;
  border-top: 1px solid #1e293b;
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 24px;
  margin-top: 40px;
  text-align: center;
  line-height: 1.6;
}

.eidos-platform-footer a {
  color: #38bdf8;
  text-decoration: none;
  margin: 0 8px;
}

.eidos-platform-footer a:hover {
  text-decoration: underline;
  color: #ffffff;
}
