/* LUXE COMMAND — Design System */

:root {
  /* Colors */
  --bg-deep: #0a0a0f;
  --bg-surface: #12121a;
  --bg-elevated: #1a1a24;
  --bg-hover: #22222e;
  
  --gold: #c9a962;
  --gold-dim: #9a7d4a;
  --gold-glow: rgba(201, 169, 98, 0.15);
  
  --blue: #4a90d9;
  --blue-dim: #3a70a9;
  
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(201, 169, 98, 0.5);
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--gold-glow);
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.3s var(--ease-out);
}

.card:hover {
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-glow);
}

.card-elevated {
  background: var(--bg-elevated);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: var(--bg-deep);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--gold-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--gold);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.1rem;
}

/* Inputs */
.input {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.2s var(--ease-out);
}

.input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.input::placeholder {
  color: var(--text-muted);
}

textarea.input {
  min-height: 120px;
  resize: vertical;
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.tag-gold {
  background: var(--gold-glow);
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* Agent Card */
.agent-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dim));
  opacity: 0;
  transition: opacity 0.3s;
}

.agent-card:hover::before {
  opacity: 1;
}

.agent-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--gold-glow), var(--bg-elevated));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.agent-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
}

.agent-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

.agent-status.hibernating::before {
  background: var(--warning);
  animation: none;
}

.agent-status.restricted::before {
  background: var(--danger);
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Onboarding */
.onboard-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
}

.onboard-card {
  width: 100%;
  max-width: 600px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-lg);
}

.onboard-progress {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.onboard-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-hover);
  transition: all 0.3s;
}

.onboard-progress-dot.active {
  width: 24px;
  border-radius: var(--radius-full);
  background: var(--gold);
}

.onboard-progress-dot.complete {
  background: var(--gold-dim);
}

.onboard-question {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: var(--space-xl);
}

.onboard-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.onboard-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.onboard-option:hover {
  background: var(--bg-hover);
  border-color: var(--gold-dim);
}

.onboard-option.selected {
  background: var(--gold-glow);
  border-color: var(--gold);
}

.onboard-option-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.onboard-option-content h4 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.onboard-option-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Idea Inbox */
.idea-capture {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 100;
}

.idea-capture-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--bg-deep);
  font-size: 1.75rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transition: all 0.3s var(--ease-out);
}

.idea-capture-btn:hover {
  transform: scale(1.1);
}

.idea-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
  z-index: 200;
}

.idea-modal.open {
  opacity: 1;
  visibility: visible;
}

.idea-modal-content {
  width: 100%;
  max-width: 500px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-out);
}

.idea-modal.open .idea-modal-content {
  transform: translateY(0);
}

/* Permission Slider */
.permission-slider {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.permission-slider-track {
  height: 8px;
  background: var(--bg-deep);
  border-radius: var(--radius-full);
  position: relative;
}

.permission-slider-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--success), var(--warning), var(--danger));
  transition: width 0.3s var(--ease-out);
}

.permission-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s var(--ease-out) forwards;
}

.animate-slide-in {
  animation: slideIn 0.5s var(--ease-out) forwards;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  
  .onboard-card {
    padding: var(--space-xl);
  }
  
  .onboard-question {
    font-size: 1.5rem;
  }
}
