/* MotorHub easter eggs — footer speedometer + dark redline flash */

.mh-copyright {
  position: relative;
  cursor: default;
}

.mh-egg-gauge {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: 72px;
  height: 44px;
  pointer-events: none;
  opacity: 0;
  z-index: 40;
}

.mh-egg-gauge.is-on {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.mh-egg-gauge__arc {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  opacity: 0.45;
}

.mh-egg-gauge__needle {
  stroke: #e10600;
  stroke-width: 2.5;
  stroke-linecap: round;
  transform-origin: 36px 36px;
  transform: rotate(-110deg);
}

.mh-egg-gauge.is-on .mh-egg-gauge__needle {
  animation: mh-egg-needle 1.1s ease-out forwards;
}

.mh-egg-toast {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 58px);
  transform: translateX(-50%);
  max-width: min(280px, 70vw);
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  background: rgba(18, 18, 18, 0.92);
  color: #f2f2f2;
  font-size: 0.72rem;
  line-height: 1.35;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 41;
}

.mh-egg-toast.is-on {
  opacity: 1;
  transition: opacity 0.2s ease;
}

html[data-mh-theme="light"] .mh-egg-toast {
  background: rgba(30, 30, 30, 0.92);
}

/* Redline: brief tachometer-red accent while dark theme is on */
html.mh-redline[data-mh-theme="dark"] {
  --accent: #e10600;
  --mh-accent: #e10600;
  --mh-link: #ff4d4d;
  --mh-cta-border: #e10600;
}

html.mh-redline[data-mh-theme="dark"] a {
  transition: color 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
  .mh-egg-gauge.is-on .mh-egg-gauge__needle {
    animation: none;
    transform: rotate(110deg);
  }

  .mh-egg-gauge,
  .mh-egg-toast,
  html.mh-redline[data-mh-theme="dark"] a {
    transition: none;
  }
}

@keyframes mh-egg-needle {
  from {
    transform: rotate(-110deg);
  }
  to {
    transform: rotate(110deg);
  }
}
