/* cards-base.css — minimal layout for Phase 2 (theming replaces most of this in Phase 4) */

.stack-backdrop {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.stack-backdrop-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: -1;
}

.card {
  max-width: 960px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border: 2px solid #222;
  box-shadow: 4px 4px 0 #222;
}

.card__header {
  margin-bottom: 1.5rem;
}

.card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.card__title {
  margin: 0;
  font-size: 1.75rem;
}

.card__body {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card__body img {
  max-width: 100%;
  height: auto;
}

.card__nav {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 2px solid #222;
  font-size: 0.9rem;
}

.card__nav a {
  color: #222;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
}

.card__nav a:hover {
  text-decoration: underline;
}

/* Layout: place — fullbleed, no header */
.card--layout-place {
  padding: 0;
  position: relative;
}

.card__body--fullbleed {
  margin: 0;
}

.card__nav--overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1rem;
  border-top: 2px solid #222;
}

/* Layout: image — larger images */
.card--layout-image .card__body img {
  width: 100%;
}

/* Layout: index — grid of links */
.card__index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* Block: card link */
.card-link {
  display: inline-block;
  color: #222;
  text-decoration: none;
}

.card-link--button {
  padding: 0.5rem 1rem;
  border: 2px solid #222;
  background: #f5f5f0;
  cursor: pointer;
}

.card-link--button:hover {
  background: #222;
  color: #fff;
}

.card-link--text {
  text-decoration: underline;
}

.card-link--hotspot {
  position: absolute;
  opacity: 0;
}

/* Block: hotspot image */
.hotspot-image {
  position: relative;
  display: inline-block;
  margin: 0;
}

.hotspot-image img {
  display: block;
  max-width: 100%;
}

.hotspot {
  position: absolute;
  cursor: pointer;
}

.hotspot__label {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}

.hotspot:hover .hotspot__label {
  opacity: 1;
}

/* Block: catalog entry */
.catalog-entry {
  border: 2px solid #222;
  padding: 1rem;
  margin-bottom: 1rem;
}

.catalog-entry__subtitle {
  font-style: italic;
  margin: 0.25rem 0;
}

.catalog-entry__meta {
  font-size: 0.85rem;
  color: #666;
}

.catalog-entry__image {
  float: right;
  max-width: 200px;
  margin: 0 0 1rem 1rem;
}

.catalog-entry__access {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #555;
  border-top: 1px solid #ccc;
  padding-top: 0.5rem;
}

/* Block: margin note */
.margin-note {
  width: 40%;
  padding: 0.75rem;
  font-size: 0.85rem;
  background: #f5f5f0;
  border: 1px solid #ccc;
}

.margin-note--right {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.margin-note--left {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

/* Block: dither divider */
.dither-divider {
  border: none;
  height: 8px;
  margin: 1.5rem 0;
  background-repeat: repeat-x;
  background-size: 8px 8px;
}

.dither-divider--50 {
  background-image: repeating-conic-gradient(#222 0% 25%, transparent 0% 50%);
  background-size: 8px 8px;
}

.dither-divider--25 {
  background-image: repeating-conic-gradient(#222 0% 25%, transparent 0% 50%);
  background-size: 16px 16px;
}

.dither-divider--lines {
  background: repeating-linear-gradient(
    transparent,
    transparent 2px,
    #222 2px,
    #222 4px
  );
}

.dither-divider--checker {
  background-image: repeating-conic-gradient(#222 0% 25%, transparent 0% 50%);
  background-size: 16px 16px;
}

/* Empty state */
.card--empty {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.card--empty a {
  color: #222;
}
