/* ============================================================================
   Next Step Prompts
   Contextual banners that suggest the next learning activity.
   ============================================================================ */

.next-step-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 56rem;
  margin: 1.5rem auto;
  padding: 0.85rem 1.25rem;
  background: var(--card, #1e293b);
  border: 1px solid var(--border, rgba(148, 163, 184, 0.2));
  border-left: 4px solid var(--accent, #ff8a5b);
  border-radius: 0.75rem;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  animation: next-step-slide-in 0.4s ease-out;
}

@keyframes next-step-slide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.next-step-banner-text {
  font-size: 0.92rem;
  color: var(--text, #e2e8f0);
  font-weight: 500;
  line-height: 1.45;
}

.next-step-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  background: var(--accent, #ff8a5b);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.next-step-banner-link:hover {
  background: var(--accent-strong, #e87a4f);
  transform: translateY(-1px);
}

.next-step-banner-dismiss {
  background: none;
  border: none;
  color: var(--muted, #94a3b8);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.next-step-banner-dismiss:hover {
  opacity: 1;
}

/* Study page variant: appears below the mark-complete wrapper */
.next-step-banner.next-step-study {
  border-left-color: var(--accent-2, #60a5fa);
}

.next-step-banner.next-step-study .next-step-banner-link {
  background: var(--accent-2, #60a5fa);
}

.next-step-banner.next-step-study .next-step-banner-link:hover {
  background: #4b92e0;
}

/* Responsive */
@media (max-width: 600px) {
  .next-step-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
  }

  .next-step-banner-link {
    justify-content: center;
  }

  .next-step-banner-dismiss {
    align-self: flex-end;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
  }

  .next-step-banner {
    position: relative;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .next-step-banner {
    animation-duration: 0.01ms !important;
  }

  .next-step-banner-link {
    transition-duration: 0.01ms !important;
  }
}
