/* ══════════════════════════════════════════════════════════════
   TEMPLATE PREVIEW — template-specific pieces only.
   The modal itself is the shared deck-preview shell
   (assets/css/dashboard/deck-preview.css), so the my-decks preview
   and the explore-templates preview stay identical by construction.
   ══════════════════════════════════════════════════════════════ */

/* Template favourite (star) / like (heart) active states in the shared header. */
.preview-header .action-circle-btn.tpl-fav-on svg polygon {
  fill: #F04438;
  stroke: #F04438;
}
.preview-header .action-circle-btn.tpl-like-on svg path {
  fill: #F04438;
  stroke: #F04438;
}

.tpl-page-badge {
  background: rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}



.template-preview-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.template-preview-native {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.template-preview-native__frame,
.template-preview-native__image {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #fff;
}

/* ── THUMBNAIL CAROUSEL ── */
.tpl-thumbnails-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 0;
  overflow-x: auto;
  overflow-y: visible;
  flex-shrink: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: flex-start;
}
.tpl-thumbnails-container::-webkit-scrollbar {
  display: none;
}

.tpl-thumb-btn {
  width: 110px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
  overflow: visible;
  padding: 0;
  transition: border-color 160ms cubic-bezier(0.2, 0, 0, 1), transform 160ms cubic-bezier(0.2, 0, 0, 1), box-shadow 160ms cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.tpl-thumb-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}
.tpl-thumb-btn.active {
  border-color: #2966F4;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(41, 102, 244, 0.4);
}

.tpl-thumb-badge {
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #374151;
  color: #FFFFFF;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
}
.tpl-thumb-badge.active {
  background: #2966F4;
}


