/* ═══════════════════════════════════════════════════
   sas.css — SkateArtStudio custom styles
   MkDocs Material 9.7.x · skateartstudio.eu
   ═══════════════════════════════════════════════════ */

/* ── Deck gallery grid ─────────────────────────────
   Used in exhibition/{year}.md and anywhere
   a .deck-grid div is present.
   Deck aspect ratio: 22 x 35 cm → 0.629
──────────────────────────────────────────────────── */
.deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.deck-grid img {
  width: 100%;
  aspect-ratio: 22 / 35;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.deck-grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ── Artist grid ───────────────────────────────────
   Used in exhibition/{year}.md artist list
──────────────────────────────────────────────────── */
.artist-grid ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0;
}

.artist-grid ul li {
  font-size: 0.95rem;
}

/* ── Deck detail page ──────────────────────────────
   Single deck page layout: image left, meta right
──────────────────────────────────────────────────── */
.deck-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
  margin: 2rem 0;
}

.deck-detail__image img {
  width: 100%;
  aspect-ratio: 22 / 35;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.deck-detail__meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.deck-detail__meta dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  font-size: 0.9rem;
}

.deck-detail__meta dt {
  font-weight: 600;
  color: var(--md-default-fg-color--light);
  white-space: nowrap;
}

/* ── Artist profile page ───────────────────────────
   Artist header: photo left, bio right
──────────────────────────────────────────────────── */
.artist-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  margin: 1.5rem 0 2.5rem;
}

.artist-header__photo img {
  width: 100%;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.artist-header__bio {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.artist-header__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.artist-header__links a {
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--md-default-fg-color--lighter);
  text-decoration: none;
  transition: background 0.15s;
}

.artist-header__links a:hover {
  background: var(--md-accent-fg-color);
  color: white;
  border-color: var(--md-accent-fg-color);
}

/* ── Pro bono badge ────────────────────────────────
   Shown on deck pages where pro_bono: true
──────────────────────────────────────────────────── */
.badge-probono {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  background: var(--md-accent-fg-color);
  color: white;
  text-transform: uppercase;
}

/* ── For sale badge ────────────────────────────────*/
.badge-forsale {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  background: #2e7d32;
  color: white;
  text-transform: uppercase;
}

.badge-sold {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  background: var(--md-default-fg-color--lighter);
  color: white;
  text-transform: uppercase;
}

/* ── Responsive breakpoints ────────────────────────*/
@media screen and (max-width: 640px) {
  .deck-detail {
    grid-template-columns: 1fr;
  }

  .deck-detail__image img {
    max-width: 240px;
    margin: 0 auto;
  }

  .artist-header {
    grid-template-columns: 1fr;
  }

  .artist-header__photo img {
    max-width: 140px;
    margin: 0 auto;
  }

  .deck-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
}
