/* Signature view styles */
.signature-view { padding: 16px 12px; display: grid; gap: 12px; }
.sig-toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 0; border: none; border-radius: 0; background: var(--background-white); }
.sig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .sig-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sig-card { position: relative; border: none; border-radius: 0; overflow: visible; background: transparent; box-shadow: none; }
.sig-card { touch-action: manipulation; }
.sig-card:hover { z-index: 50; cursor: pointer; }
.sig-album { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: transparent; border-radius: 6px; box-shadow: 0 0 0 1px var(--border-gray) inset, 0 2px 6px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.10); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.sig-card:hover .sig-album { box-shadow: 0 0 0 2px rgba(133,114,238,0.14) inset, 0 10px 26px rgba(133,114,238,0.25); transform: scale(1.04); }
.sig-album img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.28s ease; transform-origin: center center; }
.sig-album .sig-ph { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; color: var(--text-gray); font-size: 0.95rem; z-index: 1; }
.sig-album.is-placeholder { background: #e9ecef; border-radius: 6px; }
.sig-card[aria-hidden="true"] .sig-info { display: none; }
.sig-album.is-placeholder .sig-ph { display: flex; }
.sig-album.is-placeholder { position: relative; overflow: hidden; }
.sig-album.is-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.6) 45%, transparent 80%);
  transform: translateX(-100%);
  animation: sigShimmer 1.1s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
}
@keyframes sigShimmer { to { transform: translateX(100%); } }
.sig-info { padding: 1px; display: flex; align-items: center; justify-content: flex-start; gap: 0; background: transparent; text-align: left; margin-top: 4px; }
.sig-title { margin-top: 0; color: var(--text-primary); font-size: 0.92rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; text-align: left; }
.sig-price {
  color: var(--main-purple);
  background: rgba(133,114,238,0.10);
  border: 1px solid rgba(133,114,238,0.35);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
  flex: none;
  margin-right: 0.5ch;
  padding: 1px 2px;
  border-radius: 4px;
}
body.dark-mode .sig-price {
  color: #fff;
  background: rgba(133,114,238,0.22);
  border-color: rgba(133,114,238,0.5);
}
body.dark-mode .sig-album { box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 1px 3px rgba(0,0,0,0.5), 0 6px 18px rgba(0,0,0,0.45); }
@media (max-width: 767px) { .sig-card .sig-album .sig-combined-badge { left: 0; right: 0; max-width: none; border-radius: 0; font-size: 0.7rem; } }

/* Dark mode: signature skeleton colors */
body.dark-mode .sig-album.is-placeholder { background: #2a2e34; }
body.dark-mode .sig-album.is-placeholder::after {
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.22) 45%, transparent 80%);
}
