/* ══════════════════════════════════════════
   Shared — detail pages (Artwork, Book, etc.)
   ══════════════════════════════════════════ */

:root {
  --bg: #faf8f6;
  --card: #ffffff;
  --surface: #f0ebe6;
  --border: #e5ddd6;
  --text: #2c2520;
  --text-2: #5d5347;
  --text-3: #8b7e74;
  --placeholder: #a89b8e;
  --accent: #c44536;
  --accent-2nd: #d4a574;
  --liked: #ff5f6d;
  --shadow-c: 44, 37, 32;
  --card-radius: 24px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.25s;
}

/* ── UserAvatar ── */

.ua {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.ua__img {
  border-radius: 50%;
  object-fit: cover;
}
.ua__ph {
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2nd));
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
}

.ua--xs .ua__img,
.ua--xs .ua__ph {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.ua--sm .ua__img,
.ua--sm .ua__ph {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.ua--md .ua__img,
.ua--md .ua__ph {
  width: 42px;
  height: 42px;
  font-size: 16px;
}
.ua--lg .ua__img,
.ua--lg .ua__ph {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

/* ── Back link ── */

.back-row {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 32px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.back-link:hover {
  color: var(--text);
}
.back-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Sections (shared between artwork info, book info) ── */

.section {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-child {
  border-bottom: none;
}
.section__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
  margin-bottom: 12px;
}
.section__value {
  font-size: 15px;
  color: var(--text);
}

/* ── Zoom hint (lightbox image overlay) ── */

.zoom-hint {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  color: var(--text);
  opacity: 0;
  transform: scale(0.85);
  transition: all var(--dur) var(--ease);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

/* ── Shared animation ── */

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive shared ── */

@media (max-width: 700px) {
  .back-row {
    padding: 12px 16px;
  }
}
