/* Expert Mode Stylesheet */

/* Mode Toggle Wrapper */
.mode-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-secondary, #555);
}

.mode-label {
  font-weight: 500;
  transition: color 0.2s ease;
}

body:not(.expert-mode) .mode-label:first-child {
  color: var(--accent, #007acc);
  font-weight: 600;
}

body.expert-mode .mode-label:last-child {
  color: var(--accent, #007acc);
  font-weight: 600;
}

/* Toggle Switch Styles */
.mode-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.mode-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.mode-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}

.mode-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

input:checked + .mode-slider {
  background-color: var(--accent, #007acc);
}

input:checked + .mode-slider:before {
  transform: translateX(20px);
}

/* Hide elements when Expert Mode is active */
body.expert-mode #explainCard,
body.expert-mode #tut-panel,
body.expert-mode .ct-mode-hint,
body.expert-mode .ct-target-warn,
body.expert-mode .ct-newcastle-header p,
body.expert-mode .ct-newcastle-header span {
  display: none !important;
}
