/* Mark as Complete Button — study page completion control */

.mark-complete-wrapper {
  max-width: 56rem;
  margin: 2rem auto 0;
  padding: 0 1rem 2rem;
}

.mark-complete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--primary);
  color: var(--primary-on);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.mark-complete-btn:hover:not(.mark-complete-btn--done) {
  filter: brightness(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mark-complete-btn:active:not(.mark-complete-btn--done) {
  transform: scale(0.98);
}

.mark-complete-btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Completed state */
.mark-complete-btn--done {
  background: var(--status-success);
  color: #fff;
  cursor: default;
}

.mark-complete-btn--done:focus-visible {
  outline-color: var(--status-success);
}

/* Next page link */
.mark-complete-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background 0.15s ease;
}

.mark-complete-next:hover {
  background: var(--bg-secondary, rgba(0, 0, 0, 0.05));
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .mark-complete-wrapper {
    padding: 0 0.75rem 1.5rem;
  }
}
