/*##############################################################################
# Script:        greatgallery.css    (stylesheet, loaded by frontend/pages/greatgallery.html)
# Created by:    Matthew Boucher
# Start date:    2026-10-13
# Location:      <project root>/frontend/css/greatgallery.css   (main script: <project root>/aiacolyte.py; subscripts: <project root>/subscripts/aiacolyte/)
# Description:   The look of The Great Gallery hub on top of styles.css and admin.css. It is deliberately plain and
#                matches the other pages: no images and no custom backdrop, just the site's standard admin
#                colouring and a grid of simple card links styled like the Forge/Server cards (the shared
#                gradient panel, a gold eyebrow label, a display-font title, a dim blurb and an ENTER cue, lifting
#                on hover). Works with the main script, which serves it as /static/css/greatgallery.css;
#                aiacolyte.py --checkup confirms it is in place.
# Reads:         the tokens and classes of styles.css and admin.css; ../assets/img/gg-patreon.webp (the Patreon plate)
# Writes:        nothing
# Sensitive:     none needed
# Arguments:     none (a stylesheet cannot take flags)
##############################################################################*/

/* The hub uses the site's standard admin colouring (.admin-body from admin.css) with no backdrop or images.
   The two showcase cards split the full page width (two equal columns), stacking to one on small screens. */
.gg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.8vw, 26px);
  margin-top: clamp(20px, 3vw, 34px);
}

@media (max-width: 680px) {
  .gg-grid {
    grid-template-columns: 1fr;
  }
}

/* each showcase is a card link in the shared card style (the Forge/Server card look) */
.gg-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 20px 20px 18px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(43, 39, 102, 0.22), transparent 60%), linear-gradient(180deg, #1b1612, #120f0c);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.gg-card:hover,
.gg-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(246, 216, 139, 0.5);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(227, 176, 75, 0.12);
  outline: none;
}

/* an image-plate card: a picture fills the card edge to edge with its caption laid over the foot,
   shown as uploaded (no colour/brightness filter); the other cards stay plain text cards */
.gg-card--plate {
  display: block;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.gg-plate {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--ink-0);
  transition: transform 0.35s ease;
}

.gg-card--plate:hover .gg-plate,
.gg-card--plate:focus-visible .gg-plate {
  transform: scale(1.015);
}

.gg-card--plate .gg-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(14px, 1.8vw, 22px);
  background: linear-gradient(180deg, rgba(10, 8, 7, 0) 0%, rgba(10, 8, 7, 0.55) 45%, rgba(10, 8, 7, 0.9) 100%);
  pointer-events: none;
}

.gg-cap__eyebrow {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.gg-cap__eyebrow span {
  margin-right: 3px;
}

.gg-cap__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--parchment);
}

.gg-cap__blurb {
  font-size: 1rem;
  color: var(--text-dim);
}

.gg-cap__enter {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.greatgallery-foot {
  margin-top: clamp(22px, 3vw, 34px);
}

.greatgallery-foot a {
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .gg-card,
  .gg-plate {
    transition: none;
  }
  .gg-card:hover,
  .gg-card:focus-visible {
    transform: none;
  }
  .gg-card--plate:hover .gg-plate,
  .gg-card--plate:focus-visible .gg-plate {
    transform: none;
  }
}

/*##############################################################################
# End of greatgallery.css
##############################################################################*/
