/*!
 * ELYSIANGO Atlas Design System
 * assets/css/atlas.css
 * Global Pilgrimage Infrastructure Operating System
 * Structured • Ethical • Responsible
 */

/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */
:root{
  /* Brand */
  --atlas-emerald-950:#020706;
  --atlas-emerald-925:#020d0a;
  --atlas-emerald-900:#041712;
  --atlas-emerald-850:#06231d;
  --atlas-emerald-800:#083126;
  --atlas-emerald-700:#0a4437;
  --atlas-emerald-600:#006b5b;
  --atlas-emerald-500:#008471;

  --atlas-gold-50:#fff7d2;
  --atlas-gold-100:#fff1a7;
  --atlas-gold-200:#f4d779;
  --atlas-gold-300:#e5c568;
  --atlas-gold-400:#d6b45f;
  --atlas-gold-500:#b89243;

  --atlas-cream:#fff7e8;
  --atlas-cream-80:rgba(255,247,232,.80);
  --atlas-cream-66:rgba(255,247,232,.66);
  --atlas-cream-50:rgba(255,247,232,.50);
  --atlas-cream-35:rgba(255,247,232,.35);

  /* Status */
  --atlas-success:#b8fff1;
  --atlas-success-bg:rgba(0,132,113,.18);
  --atlas-warning:#f4d779;
  --atlas-warning-bg:rgba(244,215,121,.12);
  --atlas-danger:#ffb8b8;
  --atlas-danger-bg:rgba(255,138,138,.12);
  --atlas-info:#cfe8ff;
  --atlas-info-bg:rgba(100,180,255,.12);

  /* Surfaces */
  --atlas-bg:
    radial-gradient(circle at 82% 0,rgba(244,215,121,.14),transparent 30%),
    radial-gradient(circle at 8% 18%,rgba(0,132,113,.20),transparent 36%),
    linear-gradient(180deg,#020706,#041712,#020706);
  --atlas-surface:rgba(255,255,255,.045);
  --atlas-surface-strong:rgba(255,255,255,.065);
  --atlas-surface-soft:rgba(255,255,255,.032);
  --atlas-glass:rgba(2,13,10,.78);
  --atlas-line:rgba(244,215,121,.16);
  --atlas-line-soft:rgba(244,215,121,.10);
  --atlas-line-strong:rgba(244,215,121,.25);

  /* Typography */
  --atlas-font-sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  --atlas-font-serif:Georgia,"Times New Roman",serif;
  --atlas-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;

  /* Layout */
  --atlas-sidebar:304px;
  --atlas-topbar:74px;
  --atlas-container:1560px;
  --atlas-gap:20px;
  --atlas-radius-xs:10px;
  --atlas-radius-sm:14px;
  --atlas-radius-md:18px;
  --atlas-radius-lg:22px;
  --atlas-radius-xl:28px;
  --atlas-radius-2xl:34px;
  --atlas-pill:999px;

  /* Shadows */
  --atlas-shadow-soft:0 16px 40px rgba(0,0,0,.25);
  --atlas-shadow-card:0 28px 70px rgba(0,0,0,.34);
  --atlas-shadow-hero:0 28px 90px rgba(0,0,0,.36);

  /* Motion */
  --atlas-ease:cubic-bezier(.2,.8,.2,1);
  --atlas-fast:160ms var(--atlas-ease);
  --atlas-normal:260ms var(--atlas-ease);
  --atlas-slow:600ms var(--atlas-ease);
}

/* =========================================================
   02. RESET + BASE
   ========================================================= */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:var(--atlas-bg);
  color:var(--atlas-cream);
  font-family:var(--atlas-font-sans);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
img,svg,video{max-width:100%;display:block}
::selection{background:rgba(244,215,121,.28);color:var(--atlas-cream)}
:focus-visible{outline:2px solid var(--atlas-gold-200);outline-offset:3px}

/* =========================================================
   03. TYPOGRAPHY
   ========================================================= */
.atlas-brand,
.brand{
  font-family:var(--atlas-font-serif);
  font-size:28px;
  color:var(--atlas-gold-200);
  letter-spacing:.12em;
}
.atlas-display,h1{
  font-family:var(--atlas-font-serif);
  font-size:clamp(38px,5.6vw,72px);
  line-height:.92;
  margin:18px 0 0;
  letter-spacing:-.035em;
}
.atlas-heading,h2{
  font-family:var(--atlas-font-serif);
  font-size:clamp(28px,3vw,34px);
  line-height:1.05;
  margin:0 0 12px;
}
.atlas-subheading,h3{
  margin:0 0 10px;
  color:var(--atlas-gold-200);
  font-size:18px;
}
.atlas-muted,.muted{
  color:var(--atlas-cream-66);
  line-height:1.7;
}
.atlas-gold,.gold{color:var(--atlas-gold-200)}
.atlas-eyebrow,.eyebrow{
  display:inline-block;
  color:var(--atlas-gold-200);
  border:1px solid var(--atlas-line-strong);
  border-radius:var(--atlas-pill);
  padding:9px 14px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
}

/* =========================================================
   04. APPLICATION LAYOUT
   ========================================================= */
.atlas-app,.app{
  display:grid;
  grid-template-columns:var(--atlas-sidebar) 1fr;
  min-height:100vh;
}
.atlas-sidebar,.side{
  background:var(--atlas-emerald-925);
  border-right:1px solid var(--atlas-line);
  padding:22px;
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
}
.atlas-main,main{min-width:0}
.atlas-content,.content{
  max-width:var(--atlas-container);
  margin:auto;
  padding:30px;
}
.atlas-topbar,.top{
  min-height:var(--atlas-topbar);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:0 28px;
  background:rgba(2,13,10,.88);
  border-bottom:1px solid var(--atlas-line);
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(20px);
}
.atlas-topbar b,.top b{
  font-family:var(--atlas-font-serif);
  font-size:22px;
}

/* =========================================================
   05. SIDEBAR + NAVIGATION
   ========================================================= */
.atlas-workspace,.workspace{
  margin:18px 0;
  background:rgba(244,215,121,.08);
  border:1px solid var(--atlas-line);
  border-radius:var(--atlas-radius-lg);
  padding:18px;
}
.atlas-nav a,.nav a{
  display:block;
  padding:13px 14px;
  border-radius:var(--atlas-radius-sm);
  color:#d8d1bf;
  margin:6px 0;
  font-weight:800;
  transition:background var(--atlas-fast),border-color var(--atlas-fast),color var(--atlas-fast),transform var(--atlas-fast);
}
.atlas-nav a.active,.atlas-nav a:hover,
.nav a.active,.nav a:hover{
  background:rgba(244,215,121,.10);
  border:1px solid rgba(244,215,121,.12);
  color:#fff;
  transform:translateX(2px);
}
.atlas-nav-title,.nav-title{
  color:var(--atlas-gold-200);
  font-size:10px;
  letter-spacing:.2em;
  text-transform:uppercase;
  margin:18px 12px 8px;
  font-weight:900;
}

/* =========================================================
   06. HERO SYSTEM
   ========================================================= */
.atlas-hero,.hero{
  border-radius:var(--atlas-radius-2xl);
  padding:34px;
  background:
    radial-gradient(circle at 80% 10%,rgba(244,215,121,.19),transparent 30%),
    linear-gradient(145deg,var(--atlas-emerald-800),var(--atlas-emerald-925));
  border:1px solid rgba(244,215,121,.20);
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:28px;
  box-shadow:var(--atlas-shadow-hero);
  overflow:hidden;
}
.atlas-hero-visual{
  height:370px;
  border-radius:30px;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 50%,rgba(244,215,121,.16),transparent 18%),
    radial-gradient(circle at 50% 50%,rgba(0,132,113,.28),transparent 48%),
    rgba(255,255,255,.035);
  border:1px solid rgba(244,215,121,.13);
}
.atlas-hero-visual::before,
.atlas-grid-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:34px 34px;
  pointer-events:none;
}

/* =========================================================
   07. CARDS + PANELS
   ========================================================= */
.atlas-panel,.panel,
.atlas-card,.card,
.atlas-stat,.stat{
  background:var(--atlas-surface);
  border:1px solid var(--atlas-line);
  border-radius:var(--atlas-radius-lg);
  padding:18px;
}
.atlas-panel,.panel{
  background:linear-gradient(145deg,#071f1a,var(--atlas-emerald-925));
  margin-bottom:20px;
}
.atlas-card,.card{
  transition:transform var(--atlas-fast),border-color var(--atlas-fast),background var(--atlas-fast);
}
.atlas-card:hover,.card:hover{
  transform:translateY(-1px);
  border-color:rgba(244,215,121,.28);
  background:var(--atlas-surface-strong);
}
.atlas-item,.item{
  padding:16px;
  border-radius:20px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(244,215,121,.10);
  margin:10px 0;
}
.atlas-item b,.item b,
.atlas-card b,.card b{
  display:block;
  color:var(--atlas-gold-200);
}

/* =========================================================
   08. KPI CARDS
   ========================================================= */
.atlas-kpis,.kpis{
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:12px;
  margin:22px 0;
}
.atlas-stat b,.stat b{
  display:block;
  color:var(--atlas-gold-200);
  font-size:30px;
  line-height:1;
}
.atlas-stat span,.stat span{
  font-weight:800;
  color:#d8d1bf;
}
.atlas-delta,.delta{
  display:block;
  margin-top:8px;
  font-size:12px;
  color:var(--atlas-success);
}
.atlas-delta.down,.delta.down{color:var(--atlas-danger)}

/* =========================================================
   09. BUTTONS + CHIPS
   ========================================================= */
.atlas-btn,.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 18px;
  border-radius:var(--atlas-pill);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(244,215,121,.16);
  color:var(--atlas-cream);
  font-weight:900;
  margin:6px;
  transition:transform var(--atlas-fast),background var(--atlas-fast),border-color var(--atlas-fast);
}
.atlas-btn:hover,.btn:hover{
  transform:translateY(-1px);
  border-color:rgba(244,215,121,.30);
}
.atlas-btn.primary,.btn.primary{
  background:linear-gradient(180deg,var(--atlas-gold-100),var(--atlas-gold-400));
  color:#06100d;
  border:0;
}
.atlas-chip,.chip{
  display:inline-flex;
  min-height:42px;
  align-items:center;
  padding:0 14px;
  border-radius:var(--atlas-pill);
  border:1px solid rgba(244,215,121,.14);
  background:rgba(255,255,255,.045);
  font-weight:850;
  margin-left:8px;
}
.atlas-badge,.badge,
.atlas-tag,.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border-radius:var(--atlas-pill);
  font-size:11px;
  font-weight:900;
  margin:6px 5px 0 0;
}
.atlas-badge,.badge{
  background:var(--atlas-success-bg);
  color:var(--atlas-success);
  border:1px solid rgba(0,132,113,.28);
}
.atlas-badge.warn,.badge.warn,.warn{
  background:var(--atlas-warning-bg);
  color:var(--atlas-warning);
  border-color:rgba(244,215,121,.24);
}
.atlas-badge.danger,.badge.danger,.riskbadge{
  background:var(--atlas-danger-bg);
  color:var(--atlas-danger);
  border:1px solid rgba(255,138,138,.24);
}
.atlas-tag,.tag{
  background:rgba(255,255,255,.045);
  border:1px solid rgba(244,215,121,.09);
  color:#d8d1bf;
}

/* =========================================================
   10. FORMS + COMMAND BAR
   ========================================================= */
.atlas-label,label{
  display:block;
  color:var(--atlas-gold-200);
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.atlas-input,input,
.atlas-select,select,
.atlas-textarea,textarea{
  width:100%;
  border-radius:var(--atlas-radius-sm);
  border:1px solid rgba(244,215,121,.12);
  background:rgba(0,0,0,.18);
  color:var(--atlas-cream);
}
.atlas-input,input,
.atlas-select,select{
  height:42px;
  padding:0 12px;
}
.atlas-textarea,textarea{
  min-height:120px;
  padding:12px;
}
.atlas-command,.command{
  margin:22px 0;
  padding:20px;
  border-radius:32px;
  background:linear-gradient(145deg,#071f1a,var(--atlas-emerald-925));
  border:1px solid rgba(244,215,121,.16);
}
.atlas-command-row,.command-row{
  display:flex;
  gap:12px;
  padding:10px;
  border-radius:26px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(244,215,121,.16);
}
.atlas-command-row input,.command-row input{
  flex:1;
  height:58px;
  background:transparent;
  border:0;
  font-size:17px;
  outline:0;
}
.atlas-toolbar,.toolbar,
.atlas-suggestions,.suggestions{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.atlas-suggestions,.suggestions{justify-content:flex-start}
.atlas-tool,.tool,
.atlas-suggestions button,.suggestions button{
  padding:10px 14px;
  border-radius:var(--atlas-pill);
  background:rgba(255,255,255,.05);
  border:1px solid rgba(244,215,121,.12);
  color:#fff;
  font-weight:800;
}
.atlas-tool.active,.tool.active{
  background:linear-gradient(180deg,var(--atlas-gold-100),var(--atlas-gold-400));
  color:#06100d;
}

/* =========================================================
   11. TABLES
   ========================================================= */
.atlas-table-wrap,.table-wrap{overflow:auto}
.atlas-table,.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
  min-width:900px;
}
.atlas-table th,.table th{
  text-align:left;
  color:var(--atlas-gold-200);
  font-size:11px;
  letter-spacing:.13em;
  text-transform:uppercase;
  padding:0 12px;
}
.atlas-table td,.table td{
  padding:12px;
  background:rgba(255,255,255,.045);
  font-size:13px;
}
.atlas-table td:first-child,.table td:first-child{border-radius:14px 0 0 14px}
.atlas-table td:last-child,.table td:last-child{border-radius:0 14px 14px 0}

/* =========================================================
   12. GRIDS
   ========================================================= */
.atlas-grid-2,.grid2,.wide{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}
.atlas-grid-3,.grid3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.atlas-module-grid{
  display:grid;
  grid-template-columns:280px 1fr 400px;
  gap:20px;
}
.atlas-card-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}

/* =========================================================
   13. GRAPH + VISUAL COMPONENTS
   ========================================================= */
.atlas-graph,.graph{
  height:360px;
  border-radius:24px;
  position:relative;
  background:
    radial-gradient(circle at center,rgba(0,132,113,.24),transparent 44%),
    rgba(255,255,255,.035);
  border:1px solid rgba(244,215,121,.13);
  overflow:hidden;
}
.atlas-node,.node{
  position:absolute;
  padding:10px 13px;
  border-radius:var(--atlas-pill);
  background:var(--atlas-emerald-925);
  border:1px solid rgba(244,215,121,.22);
  font-weight:900;
  font-size:12px;
}
.atlas-node.main,.node.main,
.n0{
  background:linear-gradient(180deg,var(--atlas-gold-100),var(--atlas-gold-400));
  color:#06100d;
}
.atlas-icon,.icon{
  width:58px;
  height:58px;
  border-radius:20px;
  background:linear-gradient(145deg,rgba(244,215,121,.18),rgba(0,132,113,.14));
  border:1px solid rgba(244,215,121,.18);
  display:grid;
  place-items:center;
  color:var(--atlas-gold-200);
  font-size:20px;
  font-weight:900;
  margin-bottom:12px;
}

/* =========================================================
   14. AI COMPONENTS
   ========================================================= */
.atlas-ai-box{
  border-radius:24px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(244,215,121,.14);
  padding:16px;
}
.atlas-ai-prompt{
  font-family:var(--atlas-font-mono);
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(244,215,121,.10);
  margin:10px 0;
  color:#d8d1bf;
}
.atlas-ai-prompt span{color:var(--atlas-gold-200);font-weight:900}

/* =========================================================
   15. QUALITY RING + PROGRESS
   ========================================================= */
.atlas-quality,.quality{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:15px;
}
.atlas-ring,.ring{
  width:106px;
  height:106px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:conic-gradient(var(--atlas-gold-200) 0 94%,rgba(255,255,255,.08) 94% 100%);
  box-shadow:inset 0 0 0 11px var(--atlas-emerald-925);
}
.atlas-row,.row{
  display:grid;
  grid-template-columns:105px 1fr 44px;
  gap:8px;
  margin:8px 0;
  font-size:12px;
  color:#c9c1ae;
}
.atlas-progress,.progress{
  height:10px;
  border-radius:var(--atlas-pill);
  background:rgba(255,255,255,.08);
  overflow:hidden;
}
.atlas-fill,.fill{
  height:100%;
  background:linear-gradient(90deg,var(--atlas-gold-200),var(--atlas-emerald-600));
}

/* =========================================================
   16. ANIMATION LIBRARY
   ========================================================= */
@keyframes atlasFadeUp{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes atlasPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(244,215,121,.22)}
  50%{box-shadow:0 0 0 12px rgba(244,215,121,0)}
}
@keyframes atlasGlow{
  0%,100%{filter:drop-shadow(0 0 0 rgba(244,215,121,0))}
  50%{filter:drop-shadow(0 0 18px rgba(244,215,121,.25))}
}
.atlas-animate-in{animation:atlasFadeUp var(--atlas-slow) both}
.atlas-pulse{animation:atlasPulse 2.4s infinite}
.atlas-glow{animation:atlasGlow 3s infinite}

/* =========================================================
   17. FOOTER + FLOATING ACTIONS
   ========================================================= */
.atlas-footer,.footer{
  margin-top:26px;
  padding:20px;
  border-radius:var(--atlas-radius-lg);
  background:rgba(255,255,255,.035);
  border:1px solid rgba(244,215,121,.10);
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:#aaa;
}
.atlas-float,.float{
  position:fixed;
  right:24px;
  bottom:24px;
  width:64px;
  height:64px;
  border-radius:22px;
  background:var(--atlas-emerald-850);
  border:1px solid rgba(244,215,121,.18);
  color:var(--atlas-gold-200);
  font-weight:900;
  z-index:30;
}

/* =========================================================
   18. RESPONSIVE SYSTEM
   ========================================================= */
@media(max-width:1500px){
  .atlas-kpis,.kpis{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:1400px){
  .atlas-module-grid{grid-template-columns:1fr}
  .atlas-grid-3,.grid3{grid-template-columns:1fr}
}
@media(max-width:1100px){
  .atlas-app,.app,
  .atlas-hero,.hero{
    grid-template-columns:1fr;
  }
  .atlas-sidebar,.side{
    position:relative;
    height:auto;
  }
  .atlas-grid-2,.grid2,.wide,
  .atlas-card-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:700px){
  .atlas-content,.content{padding:14px}
  .atlas-topbar,.top{
    padding:12px;
    height:auto;
    align-items:flex-start;
    flex-direction:column;
  }
  .atlas-kpis,.kpis{grid-template-columns:1fr}
  .atlas-command-row,.command-row{display:grid}
  .atlas-footer,.footer{display:block}
  .atlas-hero,.hero{padding:22px}
  .atlas-hero-visual{height:300px}
}

/* =========================================================
   19. PRINT + ACCESSIBILITY
   ========================================================= */
@media print{
  body{background:#fff;color:#111}
  .atlas-sidebar,.side,.atlas-topbar,.top,.atlas-float,.float{display:none!important}
  .atlas-app,.app{display:block}
  .atlas-panel,.panel,.atlas-card,.card{box-shadow:none;border:1px solid #ddd;background:#fff;color:#111}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
  }
}

/* =========================================================
   20. UTILITY CLASSES
   ========================================================= */
.atlas-hidden{display:none!important}
.atlas-center{display:grid;place-items:center}
.atlas-flex{display:flex;gap:12px;align-items:center}
.atlas-between{display:flex;justify-content:space-between;gap:12px;align-items:center}
.atlas-wrap{flex-wrap:wrap}
.atlas-mt{margin-top:20px}
.atlas-mb{margin-bottom:20px}
.atlas-p-0{padding:0!important}
.atlas-text-right{text-align:right}
.atlas-text-center{text-align:center}
.atlas-max{max-width:var(--atlas-container);margin:auto}
