/*
 * Frontend styles extracted from des-html/certificate-standalone*.html.
 * Theme tokens (fonts, ink/crimson colors) live in layouts/partials/head.blade.php
 * because the Tailwind browser build only reads <style type="text/tailwindcss">.
 */

.bg-grid {
  background-color: #fafafa;
  background-image:
    linear-gradient(#eeeeee 1px, transparent 1px),
    linear-gradient(90deg, #eeeeee 1px, transparent 1px);
  background-size: 40px 40px;
}

/* "Perfect" interview grade: gold card with a pulsing halo, a shimmer sweep and twinkling sparkles. */
.grade-perfect {
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #b45309 0%, #f59e0b 45%, #fcd34d 60%, #d97706 100%);
  text-shadow: 0 1px 2px rgb(120 53 15 / 0.45);
  animation: grade-halo 2.4s ease-in-out infinite;
}

.grade-perfect::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: grade-shimmer 3s ease-in-out infinite;
}

.grade-sparkle {
  position: absolute;
  font-size: 0.7rem;
  line-height: 1;
  color: #fffbeb;
  opacity: 0;
  animation: grade-twinkle 1.8s ease-in-out infinite;
}

@keyframes grade-halo {
  0%, 100% { box-shadow: 0 0 0 0 rgb(245 158 11 / 0.55), 0 0 18px 2px rgb(251 191 36 / 0.45); }
  50% { box-shadow: 0 0 0 8px rgb(245 158 11 / 0), 0 0 32px 8px rgb(251 191 36 / 0.7); }
}

@keyframes grade-shimmer {
  0%, 40% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

@keyframes grade-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(45deg); }
}

@media (prefers-reduced-motion: reduce) {
  .grade-perfect,
  .grade-perfect::after,
  .grade-sparkle {
    animation: none;
  }

  .grade-perfect {
    box-shadow: 0 0 22px 4px rgb(251 191 36 / 0.55);
  }

  .grade-sparkle {
    opacity: 0.9;
  }
}
