/* =========================================
   Atlas Tutorial System Styles
   Brand: navy #0A1F44, blue #2563EB, teal #0EA5E9, gold #F59E0B
========================================= */

/* ---------- Shepherd.js custom theme ---------- */
.shepherd-atlas.shepherd-element {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 440px;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(10,31,68,0.35), 0 0 0 1px rgba(255,255,255,0.06);
  background: #fff;
  border: none;
}
.shepherd-element.shepherd-atlas .shepherd-header,
.shepherd-atlas .shepherd-header {
  background-color: #0A1F44 !important;
  background: linear-gradient(135deg, #0A1F44 0%, #122B5C 100%) !important;
  padding: 18px 22px !important;
  border-radius: 14px 14px 0 0 !important;
}
.shepherd-element.shepherd-atlas .shepherd-title,
.shepherd-atlas .shepherd-title {
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}
.shepherd-element.shepherd-atlas .shepherd-cancel-icon,
.shepherd-atlas .shepherd-cancel-icon {
  color: rgba(255,255,255,0.85) !important;
  font-size: 22px;
  transition: color 0.15s;
}
.shepherd-element.shepherd-atlas .shepherd-cancel-icon:hover,
.shepherd-atlas .shepherd-cancel-icon:hover { color: #fff !important; }
.shepherd-atlas .shepherd-text {
  padding: 20px 22px 8px;
  color: #1F2937;
  font-size: 14.5px;
  line-height: 1.55;
}
.shepherd-atlas .shepherd-text p { margin: 0 0 10px 0; }
.shepherd-atlas .shepherd-text strong { color: #0A1F44; font-weight: 700; }
.shepherd-atlas .shepherd-text a { color: #2563EB; font-weight: 600; text-decoration: none; }
.shepherd-atlas .shepherd-text a:hover { text-decoration: underline; }
.shepherd-atlas .shepherd-footer {
  padding: 12px 22px 18px;
  border-top: 1px solid #F1F5F9;
  background: #F8FAFC;
  border-radius: 0 0 14px 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.shepherd-atlas .shepherd-button {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: -0.005em;
}
.shepherd-atlas .shepherd-button-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.shepherd-atlas .shepherd-button-primary:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E3A8A 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}
.shepherd-atlas .shepherd-button-secondary {
  background: #fff;
  color: #64748B;
  border: 1px solid #E2E8F0;
}
.shepherd-atlas .shepherd-button-secondary:hover {
  background: #F8FAFC;
  color: #0A1F44;
  border-color: #CBD5E1;
}
.shepherd-modal-overlay-container {
  background: rgba(10,31,68,0.55);
  backdrop-filter: blur(2px);
}

/* ---------- (i) info icon trigger on sub-nav buttons ---------- */
.atlas-info-icon-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: #2563EB;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  vertical-align: middle;
  line-height: 1;
}
.atlas-info-icon-trigger:hover {
  background: #2563EB;
  color: #fff;
  transform: scale(1.15);
}
.intel-sub-btn.active .atlas-info-icon-trigger {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.intel-sub-btn.active .atlas-info-icon-trigger:hover {
  background: #fff;
  color: #2563EB;
}

/* ---------- (i) info icon on AI Superpowers (killer) hub cards ---------- */
.killer-card {
  position: relative;
}
.atlas-info-icon-killer {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  color: #2563EB;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
  z-index: 2;
  border: none;
  padding: 0;
}
.atlas-info-icon-killer:hover {
  background: #2563EB;
  color: #fff;
  transform: scale(1.15);
}

/* ---------- Info panel (slide-in from right) ---------- */
#atlas-info-panel {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99998;
  pointer-events: none;
}
#atlas-info-panel .atlas-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 68, 0);
  transition: background 0.25s ease;
  pointer-events: none;
}
#atlas-info-panel.open .atlas-info-backdrop {
  background: rgba(10, 31, 68, 0.45);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}
#atlas-info-panel .atlas-info-card {
  position: absolute;
  top: 0; right: 0;
  width: min(440px, 92vw);
  height: 100%;
  background: #fff;
  box-shadow: -20px 0 60px rgba(10,31,68,0.25);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  padding: 30px 28px 28px;
  overflow-y: auto;
  font-family: 'Inter', sans-serif;
  pointer-events: auto;
}
#atlas-info-panel.open .atlas-info-card {
  transform: translateX(0);
}
.atlas-info-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #F1F5F9;
  color: #64748B;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.atlas-info-close:hover {
  background: #0A1F44;
  color: #fff;
  transform: rotate(90deg);
}
.atlas-info-icon {
  font-size: 44px;
  margin-bottom: 8px;
  line-height: 1;
}
.atlas-info-badge {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.atlas-info-title {
  font-size: 26px;
  font-weight: 800;
  color: #0A1F44;
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.atlas-info-section {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #F1F5F9;
}
.atlas-info-section:last-of-type {
  border-bottom: none;
}
.atlas-info-label {
  font-size: 11px;
  font-weight: 700;
  color: #2563EB;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.atlas-info-section p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #1F2937;
}
.atlas-info-footer {
  margin-top: 12px;
  padding-top: 18px;
  border-top: 2px solid #F1F5F9;
}
.atlas-info-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #0A1F44 0%, #122B5C 100%);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
}
.atlas-info-link:hover {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  transform: translateX(2px);
}

/* ---------- Floating help button (bottom-right) ---------- */
#atlas-help-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99997;
}
.atlas-fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245,158,11,0.45), 0 0 0 4px rgba(245,158,11,0.12);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.atlas-fab-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 28px rgba(245,158,11,0.55), 0 0 0 6px rgba(245,158,11,0.18);
}
.atlas-fab-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* Pulse hint for first-time visitors */
@keyframes atlas-fab-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(245,158,11,0.45), 0 0 0 0 rgba(245,158,11,0.4); }
  50%      { box-shadow: 0 6px 20px rgba(245,158,11,0.45), 0 0 0 14px rgba(245,158,11,0); }
}
.atlas-fab-btn {
  animation: atlas-fab-pulse 2.4s ease-in-out 3;
}

/* Mobile */
@media (max-width: 640px) {
  #atlas-help-fab { bottom: 16px; right: 16px; }
  .atlas-fab-btn { width: 46px; height: 46px; font-size: 22px; }
  #atlas-info-panel .atlas-info-card { padding: 24px 20px; }
  .atlas-info-title { font-size: 22px; }
}
