/* ATMAN — Global Styles */
:root {
  /* Core Background */
  --bg-primary: #0F0E0D;
  --bg-secondary: #1A1918;
  --bg-tertiary: #252321;
  --bg-hover: #2D2B28;
  --bg-active: #353230;

  /* Warm Earth Tones */
  --accent-primary: #C8956C;
  --accent-secondary: #A67C52;
  --accent-gold: #D4A853;
  --accent-amber: #E8A849;

  /* Text */
  --text-primary: #F5F0EB;
  --text-secondary: #A09A93;
  --text-tertiary: #6B665F;
  --text-accent: #C8956C;

  /* Sphere Colors */
  --sphere-health: #4CAF50;
  --sphere-confidence: #FF9800;
  --sphere-finances: #2196F3;
  --sphere-relationships: #E91E63;
  --sphere-career: #9C27B0;
  --sphere-love: #F44336;
  --sphere-growth: #00BCD4;
  --sphere-hobbies: #FFEB3B;
  --sphere-spirit: #7C4DFF;
  --sphere-legacy: #009688;

  /* Functional */
  --success: #4CAF50;
  --warning: #FF9800;
  --error: #F44336;
  --info: #2196F3;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.20);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(200, 149, 108, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* Selection */
::selection { background: rgba(200, 149, 108, 0.3); color: var(--text-primary); }

/* Links */
a { color: var(--accent-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-gold); }

/* Headings */
h1, h2, h3, h4, h5, h6 { color: var(--text-primary); line-height: 1.2; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* App Shell Layout */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

.app-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  transition: width var(--transition-base);
}

.app-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.app-header {
  height: 64px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.app-content { flex: 1; overflow-y: auto; padding: 24px; }

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(26, 25, 24, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 16px 0;
}

/* Hide on mobile / desktop */
@media (max-width: 1023px) {
  .app-sidebar { display: none; }
  .app-content { padding: 16px; padding-bottom: 80px; }
  .hide-mobile { display: none !important; }
}

@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
  .bottom-nav { display: none !important; }
}
