/*!
 * Awards — shared card, stat, coming-soon and laurels styles.
 * Used by the home page (Awards tab) and matches the About page awards section.
 * Colours come from Bootstrap tokens (--bs-warning for gold, --bs-primary for the page accent),
 * so each page keeps its own look in light and dark themes.
 */

/* the laurels particle canvas sits behind the awards content */
.aw-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.aw-wrap { position: relative; z-index: 1; }

.aw-stats li b { font-size: 1.5rem; }

.am-award {
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.am-award:hover {
  border-color: rgba(var(--bs-warning-rgb), 0.6) !important;
}
.am-award-cert {
  width: 105px;
  aspect-ratio: 560 / 793;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(var(--bs-warning-rgb), 0.35);
  transform: rotate(-3deg);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}
.am-award:nth-child(even) .am-award-cert {
  transform: rotate(3deg);
}
.am-award:hover .am-award-cert {
  transform: rotate(0) scale(1.04);
  box-shadow: 0 16px 40px -12px rgba(var(--bs-warning-rgb), 0.55), 0 0 0 1px rgba(var(--bs-warning-rgb), 0.6);
}
.am-award-cert img { object-fit: cover; }
.am-award-zoom {
  position: absolute;
  inset: auto 8px 8px auto;
  padding: 4px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.am-award-cert:hover .am-award-zoom,
.am-award-cert:focus-visible .am-award-zoom { opacity: 1; transform: none; }

/* a gold sheen sweeps across the card */
.am-award-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(var(--bs-warning-rgb), 0.16) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  background-position: 120% 0;
  animation: am-award-shine 6s ease-in-out infinite;
}
.am-award:nth-child(even) .am-award-shine { animation-delay: -3s; }
@keyframes am-award-shine {
  0%, 55% { background-position: 120% 0; }
  85%, 100% { background-position: -20% 0; }
}
.am-award-title {
  background: linear-gradient(90deg, var(--bs-warning), #fff3c4, var(--bs-warning));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: am-award-gold 5s linear infinite;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 700;
}
@keyframes am-award-gold { to { background-position: -200% 0; } }
.am-award-meta dt { font-size: inherit; }
.am-award-link { transition: background-color 0.25s ease, border-color 0.25s ease; }
.am-award-link:hover { background-color: rgba(var(--bs-warning-rgb), 0.4) !important; }

/* "more coming soon" placeholder card */
.aw-soon {
  border-style: dashed !important;
  min-height: 160px;
}
.aw-soon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bs-warning);
  box-shadow: 0 0 0 0 rgba(var(--bs-warning-rgb), 0.5);
  animation: aw-pulse 1.8s ease-out infinite;
}
@keyframes aw-pulse { to { box-shadow: 0 0 0 10px rgba(var(--bs-warning-rgb), 0); } }

@media (max-width: 575.98px) {
  .am-award-cert { width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .am-award-shine,
  .am-award-title,
  .aw-soon-dot {
    animation: none;
  }
}

/* per-card ambient effect canvas — fills the card's empty side, sits behind the content */
.am-award > .awc-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.am-award > .am-award-cert,
.am-award > .d-flex { position: relative; z-index: 1; }
/* hide the per-card hologram/particle effect on phones; keep it on tablet & desktop */
@media (max-width: 767.98px) {
  .am-award > .awc-fx { display: none !important; }
}

/* award platform logo in the card eyebrow */
.am-award-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
/* square badge used in place of a certificate thumbnail (e.g. Astonishing Awards) */
.am-award-cert-badge {
  width: 105px;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}
.am-award-cert-badge img {
  width: 82%;
  height: auto;
  object-fit: contain;
}
@media (max-width: 575.98px) {
  .am-award-cert-badge { width: 110px; }
}
