/**
 * Threads Sticker 模拟器与贴纸预览卡片样式 (Simulator & Sticker Card)
 * 职责：交互演练卡片、进度指示器、真实动图回放、贴纸操作栏与最近历史
 */

.simulator-card {
  padding: 24px;
  background-color: var(--surface-card);
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.simulator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: var(--border-thin);
}

.simulator-window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-border);
}

.window-dot.red { background-color: #FF5F56; }
.window-dot.yellow { background-color: #FFBD2E; }
.window-dot.green { background-color: #27C93F; }

.simulator-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.simulator-input {
  flex: 1;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  border: var(--border-thick);
  border-radius: var(--radius-md);
  background-color: var(--surface-card-subtle);
  color: var(--ink-primary);
  outline: none;
  transition: all 0.15s ease;
}

.simulator-input:focus {
  background-color: var(--surface-card);
  border-color: var(--color-accent);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.sample-link-btn {
  background: none;
  border: 1px dashed var(--ink-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  color: var(--ink-primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sample-link-btn:hover {
  background-color: var(--color-sun);
  border-style: solid;
}

/* 进度条指示 */
.progress-container {
  width: 100%;
  height: 6px;
  background-color: var(--surface-card-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--ink-border);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

/* 预览卡片区域 */
.simulator-preview-area {
  min-height: 220px;
  border: 2px dashed var(--ink-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  background-color: var(--surface-card-subtle);
  position: relative;
  overflow: hidden;
}

.preview-status {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.preview-status .status-icon {
  font-size: 2.2rem;
}

.preview-result {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.preview-result.active {
  display: flex;
  animation: fadeInPop 0.25s ease-out forwards;
}

.sticker-display-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-sticker-img {
  max-width: 160px;
  max-height: 160px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(2px 3px 0 var(--shadow-color));
}

.nav-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: var(--border-thick);
  background: var(--surface-card);
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--shadow-color);
  font-weight: 900;
}

.sticker-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* 最近提取历史卡片 (Recent Stash) */
.recent-stash-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: var(--border-thin);
}

.recent-stash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-primary);
}

.recent-stash-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.recent-sticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink-border);
  background-color: var(--surface-card);
  cursor: pointer;
  box-shadow: 1px 1px 0 var(--shadow-color);
  transition: transform 0.1s ease;
  font-size: 0.75rem;
  font-weight: 700;
}

.recent-sticker-pill:hover {
  transform: translate(-1px, -1px);
}

.recent-sticker-thumb {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}

@keyframes fadeInPop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
