/*
File: styles.css
Author: Jason Lamb (generated with ChatGPT)
Created: 2026-02-27
Modified: 2026-02-27
Revision: 2.0
*/

:root{
  --bg: #000;
  --tileRadius: 22px;
  --tileSizeMin: 160px;
  --gap: 18px;

  --glowA: rgba(255, 255, 255, 0.25);
  --glowB: rgba(0, 200, 255, 0.25);
  --glowC: rgba(255, 0, 150, 0.20);
}

* { box-sizing: border-box; }

body{
  margin:0;
  min-height:100vh;
  background: radial-gradient(circle at 25% 20%, #111, #000 50%, #000);
  font-family: "Patrick Hand", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#fff;
}

.wrap{
  width:min(980px, 92vw);
  margin: 0 auto;
  padding: 24px 0 18px;
}

.top{
  padding: 10px 6px 18px;
}

.top h1{
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: 0.5px;
  line-height: 1.05;
}

.subtitle{
  margin: 6px 0 0;
  font-size: clamp(16px, 2.2vw, 20px);
  opacity: 0.85;
}

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--tileSizeMin), 1fr));
  gap: var(--gap);
  align-items: stretch;
}

.card{
  position: relative;
  display: grid;
  place-items: end start;
  aspect-ratio: 1 / 1;
  border-radius: var(--tileRadius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  isolation: isolate;

  /* background image set inline by JS */
  background-size: cover;
  background-position: center;

  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

.card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.12), transparent 55%),
    linear-gradient(to top, rgba(0,0,0,0.65) 25%, rgba(0,0,0,0.15) 70%, rgba(0,0,0,0.05));
  z-index: 0;
}

.card::after{
  /* animated glow layer */
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(circle at 30% 30%, var(--glowB), transparent 55%),
    radial-gradient(circle at 70% 70%, var(--glowC), transparent 60%),
    radial-gradient(circle at 55% 35%, var(--glowA), transparent 60%);
  opacity: 0;
  transform: rotate(0deg);
  filter: blur(22px);
  transition: opacity 220ms ease;
  animation: glowSpin 5.5s linear infinite;
  z-index: 0;
}

@keyframes glowSpin{
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.card:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.6),
    0 0 22px rgba(255,255,255,0.14),
    inset 0 0 0 1px rgba(255,255,255,0.10);
}

.card:hover::after{
  opacity: 1;
}

.card:focus-visible{
  outline: 3px solid rgba(255,255,255,0.6);
  outline-offset: 4px;
}

.label{
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 14px 14px 12px;
}

.label .name{
  display:block;
  font-size: 22px;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.label .hint{
  display:block;
  margin-top: 2px;
  font-size: 16px;
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0,0,0,0.75);
}

.badge{
  position:absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 15px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.footer{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 10px 6px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0.85;
  font-size: 16px;
}

.footer-left, .footer-right{
  display:flex;
  gap: 10px;
  align-items:center;
}

.small{
  opacity: 0.75;
}

/* Mobile tap feel */
@media (hover:none) {
  .card:hover{
    transform:none;
    box-shadow:
      0 10px 30px rgba(0,0,0,0.55),
      inset 0 0 0 1px rgba(255,255,255,0.06);
  }
  .card:hover::after{ opacity: 0; }
}