/* Media Manager - 01-base.css (shell + sidebar + cards + modal)  (Base)


[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Subtle animated “mist” background (C1) */
/* Subtle “mist” background (preset-controlled) */
body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(111, 212, 255, calc(.08 * var(--aurora-mist-strength))), transparent 62%),
    radial-gradient(820px 520px at 86% 18%, rgba(124, 136, 255, calc(.07 * var(--aurora-mist-strength))), transparent 64%),
    radial-gradient(980px 620px at 48% 110%, rgba(111, 212, 255, calc(.05 * var(--aurora-mist-strength))), transparent 62%);
  filter: blur(var(--aurora-mist-blur)) saturate(var(--aurora-mist-sat));
  transform: translate3d(0, 0, 0);
  animation: bgDrift var(--aurora-mist-duration) var(--ease) infinite alternate;
}

/* Deeper, slower aurora layer (C1) */
/* Deeper aurora layer (preset-controlled) */
body::after {
  content: "";
  position: fixed;
  inset: -35%;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(1100px 680px at 20% 25%, rgba(124, 136, 255, calc(.07 * var(--aurora-glow-strength))), transparent 64%),
    radial-gradient(1050px 720px at 85% 20%, rgba(111, 212, 255, calc(.06 * var(--aurora-glow-strength))), transparent 66%),
    radial-gradient(1200px 780px at 55% 110%, rgba(99, 102, 241, calc(.05 * var(--aurora-glow-strength))), transparent 64%);
  filter: blur(var(--aurora-glow-blur)) saturate(var(--aurora-glow-sat));
  transform: translate3d(0, 0, 0);
  animation: auroraDrift var(--aurora-glow-duration) var(--ease) infinite alternate;
}

/* Fine grain overlay (very subtle)
   Keep BEHIND UI to avoid washing out small accents (like 10px dots) */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: .06;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .14) 1px, transparent 1.6px);
  background-size: 6px 6px;
  mix-blend-mode: overlay;
}

@keyframes bgDrift {
  from {
    transform: translate3d(calc(-1 * var(--aurora-mist-shift)), calc(-.8 * var(--aurora-mist-shift)), 0) scale(var(--aurora-mist-scale-from));
  }
  to {
    transform: translate3d(var(--aurora-mist-shift), calc(.9 * var(--aurora-mist-shift)), 0) scale(var(--aurora-mist-scale-to));
  }
}

@keyframes auroraDrift {
  from {
    transform: translate3d(var(--aurora-glow-shift), calc(.8 * var(--aurora-glow-shift)), 0) scale(var(--aurora-glow-scale-from));
  }
  to {
    transform: translate3d(calc(-1 * var(--aurora-glow-shift)), calc(-.9 * var(--aurora-glow-shift)), 0) scale(var(--aurora-glow-scale-to));
  }
}

code {
  color: #d7d7d7;
}

/* ===========================
   TYPOGRAPHY SYSTEM
   Plus Jakarta Sans (UI)
   DM Sans (Headings)
   =========================== */

/* Headings & structural labels */
.h1,
.h2,
.h3,
.homeSection__title,
.sidebarGroup__title,
.sidebar__sectionTitle,
.tool__label {
  font-family: var(--font-head);
}

/* Page / modal headings */
.h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.h2 {
  font-size: 20px;
  font-weight: 600;
}

.h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
}

/* Section / rail labels */
.homeSection__title,
.sidebarGroup__title,
.sidebar__sectionTitle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
}

/* Primary UI text */
.card__title,
.card-info h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

/* Secondary / meta text */
.card__sub,
.card-info p,
.muted,
.badge,
.chip {
  font-family: var(--font-body);
  font-weight: 400;
}

.card__sub {
  white-space: pre-line;
}

/* Inputs & buttons */
.input,
.select,
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .01em;
}

/* Modal body text */
#modalOverview {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
}
