/**
 * Development work by David Lane
 */
/**
 * Worksheets calculator shell — shared with Unit Tests visual language
 * Tokens: /shared/design-tokens.css (via /shared/styles.css or direct link)
 */
@import url('/shared/design-tokens.css');

body.worksheets-shell {
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.6;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--zen-surface) 0%, var(--zen-surface-muted) 100%);
  position: relative;
  overflow-x: hidden;
}

body.worksheets-shell::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, var(--ice-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(46, 204, 113, 0.05) 0%, transparent 50%);
  animation: worksheetsShellBgFloat 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes worksheetsShellBgFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-10px, -10px) scale(1.05);
  }
  50% {
    transform: translate(10px, -5px) scale(0.95);
  }
  75% {
    transform: translate(-5px, 10px) scale(1.02);
  }
}

body.worksheets-shell .navbar:not(.navbar-dark) {
  background: var(--white) !important;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  position: relative;
  overflow: hidden;
}

body.worksheets-shell .navbar:not(.navbar-dark)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--ice-glow), transparent);
  animation: worksheetsShellHeaderShine 3s ease-in-out infinite;
}

@keyframes worksheetsShellHeaderShine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

body.worksheets-shell .navbar:not(.navbar-dark) .navbar-brand {
  color: var(--text-dark) !important;
  font-weight: 600;
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
}

body.worksheets-shell .navbar:not(.navbar-dark) .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

body.worksheets-shell .navbar:not(.navbar-dark) .nav-link:hover {
  color: var(--primary-blue) !important;
}

body.worksheets-shell .main-content {
  padding: 1rem 0;
}

body.worksheets-shell .main-content .container {
  max-width: 1200px;
}

/* Match unit-tests tool-pills */
body.worksheets-shell .tool-pills {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
}

body.worksheets-shell .tool-pills .nav {
  flex-wrap: wrap;
  gap: 0.25rem;
}

body.worksheets-shell .tool-pills .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

body.worksheets-shell .tool-pills .nav-link:hover {
  color: var(--primary-blue);
  background: var(--ice-light);
}

body.worksheets-shell .tool-pills .nav-link.active {
  background: var(--primary-blue);
  color: var(--white);
}

/* Calculator cards on zen background (prefer stack wrapper per Worksheet calculators) */
body.worksheets-shell .worksheets-calculator-stack .calculator-card {
  border-radius: 16px;
  border: 1px solid var(--zen-border);
  background: var(--zen-card-bg);
  box-shadow: var(--shadow-md);
}
