/* ma-quickcheck-mobile-fix.css
   Memory Anchor – Mobile Quick Check UI Refinements
   Complements ma-quickcheck-mobile-fix.js with soft fades and spacing polish.
*/

html { scroll-behavior: smooth; }

.ma-fade-focus {
  animation: maFadeInSoft 0.9s ease forwards;
}
@keyframes maFadeInSoft {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ma-path-buttons .ma-path-btn.is-active {
  background: rgba(59,130,246,0.25);
  border-color: rgba(59,130,246,0.85);
  color: #f8fafc;
  transition: all 0.25s ease;
}

.ma-path-buttons .ma-path-btn:hover {
  background: rgba(59,130,246,0.15);
}

#quick-check{
  position: relative;
}

/* Quick Check steps: inactive steps must NOT consume layout height (prevents cut-off / scroll gaps) */
#quick-check [id^="qc-step"] {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
#quick-check [id^="qc-step"].is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.qc-results, #qc-feedback {
  background: rgba(2,6,23,0.4);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1rem;
  margin-top: 0.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  animation: maFadeInSoft 0.8s ease;
}

@media (max-width: 600px) {
  .ma-path-buttons { gap: 0.4rem; justify-content: space-between; }
  .ma-path-btn {
    flex: 1 1 auto;
    min-width: 70px;
    font-size: 0.9rem;
    padding: 0.5rem 0.6rem;
  }
  #quick-check .card-body { padding-bottom: 2.2rem; }
}

button:focus, .ma-path-btn:focus, .btn:focus, input:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.45), 0 0 12px rgba(59,130,246,0.25);
  transition: box-shadow 0.25s ease;
}
button:focus-visible, .ma-path-btn:focus-visible, .btn:focus-visible, input:focus-visible {
  box-shadow: 0 0 0 3px rgba(96,165,250,0.65), 0 0 14px rgba(59,130,246,0.3);
}
