/* ===== Vault Hero ===== */
/* vault-hero: see scgc-styles.css */
/* vault-hero::after: see scgc-styles.css */
@keyframes vaultShine{
  0% { transform: translateX(-34%) rotate(8deg); opacity: 0; }
  12% { opacity: .95; }
  65% { opacity: .25; }
  100% { transform: translateX(34%) rotate(8deg); opacity: 0; }
}
/* vault-inner: see scgc-styles.css */
/* vault-eyebrow: see scgc-styles.css */
/* vault-tag: see scgc-styles.css */
/* vault-pill: see scgc-styles.css */
/* vault-title: see scgc-styles.css */
/* vault-subtitle: see scgc-styles.css */

/* ===== Buttons (not Bootstrap sad) ===== */
.btn-vault{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  text-decoration:none;
  font-weight: 950;
  cursor: pointer;
  border: 1px solid rgba(var(--theme-surface-rgb), .14);
  background: rgba(var(--theme-surface-rgb), .10);
  color: rgba(var(--theme-ink-rgb), .92);
}
.btn-vault:hover{ background: rgba(var(--theme-surface-rgb), .14); }

.btn-vault-solid{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  text-decoration:none;
  font-weight: 950;
  cursor: pointer;
  border: 0;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), .95), rgba(var(--theme-accent-ink-rgb), .88));
  color: var(--theme-ink);
}
.btn-vault-solid:hover{ filter: brightness(1.03); }

/* ===== Command Bar ===== */
.vault-command{ margin-top: 6px; display:grid; gap: 12px; }
.vault-search{
  display:flex; gap: 10px; align-items:center;
  padding: 12px 12px;
  border-radius: var(--radius-xl);
  background: rgba(var(--theme-surface-rgb), .10);
  border: 1px solid rgba(var(--theme-surface-rgb), .14);
  backdrop-filter: blur(10px);
}
.vault-search i{ color: rgba(var(--theme-ink-rgb), .82); }
.vault-search input{
  flex: 1;
  border:0; outline:none;
  background: transparent;
  color: var(--theme-ink);
  font-weight: 900;
}
.vault-search input::placeholder{ color: rgba(var(--theme-ink-rgb), .62); }

.vault-filters{ display:flex; flex-wrap:wrap; gap: 10px; }
.filter-chip{
  padding: 10px 12px;
  border-radius: var(--radius-full);
  font-weight: 950;
  text-decoration:none;
  background: rgba(var(--theme-surface-rgb), .10);
  border: 1px solid rgba(var(--theme-surface-rgb), .14);
  color: rgba(var(--theme-ink-rgb), .90);
}
.filter-chip:hover{ background: rgba(var(--theme-surface-rgb), .14); }
.filter-chip.is-active{
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), .95), rgba(var(--theme-accent-ink-rgb), .88));
  color: var(--theme-ink);
  border-color: transparent;
}

/* ===== Page Wrap ===== */
.history-wrap{ padding: var(--space-xl) 0; }
.history-stack{ display:grid; gap: var(--space-lg); max-width: 980px; margin: 0 auto; }

/* ===== Featured Card (fixed overlap) ===== */
.history-feature{
  position: relative;
  display:grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  align-items: stretch;
  padding: 18px;
  border-radius: var(--radius-2xl);
  text-decoration:none;
  background:
    radial-gradient(900px 280px at 12% 0%, rgba(var(--theme-accent-ink-rgb), .22), transparent 60%),
    radial-gradient(900px 320px at 82% 20%, rgba(var(--theme-primary-rgb), .18), transparent 55%),
    linear-gradient(135deg, rgba(var(--theme-midnight-rgb), .94), rgba(var(--theme-midnight-rgb), .78));
  border: 1px solid rgba(var(--theme-midnight-rgb), .16);
  box-shadow: var(--shadow-medium);
  overflow:hidden;
  transition: var(--transition-base);
}
.history-feature:hover{ transform: translateY(-2px); box-shadow: var(--shadow-strong); }
@media (max-width: 860px){
  .history-feature{ grid-template-columns: 1fr; }
  .history-feature__right{ display:none; }
}
.history-feature__badge{
  position:absolute; top: 14px; left: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-weight: 950;
  background: rgba(var(--theme-surface-rgb), .12);
  border: 1px solid rgba(var(--theme-surface-rgb), .16);
  color: rgba(var(--theme-ink-rgb), .92);
}
.history-feature__left{ padding-top: 28px; min-width:0; }
.history-feature h2{
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 950;
  color: var(--theme-ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.history-feature__meta{ display:flex; flex-wrap:wrap; gap: 10px; }
.history-feature__meta .pill{
  display:inline-flex; align-items:center; gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: rgba(var(--theme-surface-rgb), .10);
  border: 1px solid rgba(var(--theme-surface-rgb), .14);
  color: rgba(var(--theme-ink-rgb), .9);
  font-weight: 950;
  font-size:.82rem;
}
.pill-hot{ background: rgba(var(--theme-primary-rgb), .18); border-color: rgba(var(--theme-primary-rgb), .22); }
.history-feature p{
  margin: 10px 0 0;
  color: rgba(var(--theme-ink-rgb), .78);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.history-feature__cta{
  margin-top: 14px;
  color: rgba(var(--theme-ink-rgb), .92);
  font-weight: 950;
  display:inline-flex;
  align-items:center;
  gap: 8px;
}
.history-feature__right{ display:flex; align-items:center; justify-content:center; }
.history-feature__poster{
  width: 100%;
  min-height: 170px;
  border-radius: var(--radius-xl);
  background: rgba(var(--theme-surface-rgb), .08);
  border: 1px solid rgba(var(--theme-surface-rgb), .14);
  display:grid;
  place-items:center;
}
.history-feature__poster i{ font-size: 3rem; color: rgba(var(--theme-ink-rgb), .85); }

/* ===== Timeline Rail ===== */
.history-timeline{
  position: relative;
  display:grid;
  gap: 12px;
  padding-left: 18px;
}
.history-timeline::before{
  content:"";
  position:absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    rgba(var(--theme-primary-rgb), .35),
    rgba(var(--theme-accent-ink-rgb), .25),
    rgba(var(--theme-primary-rgb), .10),
    rgba(var(--theme-midnight-rgb), .05)
  );
  border-radius: 2px;
}

/* ===== Story cards ===== */
.history-card{
  position: relative;
  display:flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-base);
  text-decoration:none;
}
.history-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow-medium); border-color: rgba(var(--theme-primary-rgb), .22); }
.history-card::before{
  content:"";
  position:absolute;
  left: -18px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), .95), rgba(var(--theme-accent-ink-rgb), .88));
  box-shadow: 0 10px 24px rgba(var(--theme-black-rgb), .18);
}
.history-card__icon{
  width: 54px; height: 54px;
  display:grid; place-items:center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), .14), rgba(var(--theme-accent-ink-rgb), .12));
  border: 1px solid rgba(var(--theme-midnight-rgb), .10);
  flex: 0 0 auto;
  color: var(--scgc-copper);
}
.history-card__body{ flex:1; min-width:0; }
.history-card__top{ display:flex; flex-wrap:wrap; gap: 10px; align-items:center; margin-bottom: 8px; }
.history-card__title{
  font-family: var(--font-display);
  font-weight: 950;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 0;
}
.history-pill{
  display:inline-flex; align-items:center; gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 950;
  font-size: .82rem;
}
.history-desc{ color: var(--text-secondary); line-height: 1.55; margin: 0; }
.history-card__cta{
  margin-left:auto;
  display:flex; align-items:center; gap: 8px;
  color: var(--text-muted);
  font-weight: 950;
  white-space: nowrap;
}

/* ===== Video mode ===== */
.video-bar{
  display:grid;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-2xl);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}
.video-bar__top{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:flex-start;
  justify-content: space-between;
}
.year-chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.year-chip{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  font-weight: 950;
  color: var(--text-primary);
}
.year-chip:hover{ border-color: rgba(var(--theme-primary-rgb), .22); background:var(--theme-surface); }
.year-chip.is-active{
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), .95), rgba(var(--theme-accent-ink-rgb), .88));
  border-color: transparent;
  color: var(--theme-ink);
}
.year-chip small{ opacity:.7; font-weight:900; }

.vault-select, .vault-input{
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(var(--theme-surface-rgb), .75);
  font-weight: 900;
  color: var(--text-primary);
  outline: none;
}
.vault-select:focus, .vault-input:focus{
  border-color: rgba(var(--theme-primary-rgb), .22);
  box-shadow: 0 0 0 4px rgba(var(--theme-primary-rgb), .10);
}

.video-grid{
  display:grid;
  gap: 12px;
}
.video-card{
  position: relative;
  display:grid;
  grid-template-columns: 136px 1fr;
  gap: 12px;
  text-decoration:none;
  border-radius: var(--radius-2xl);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  overflow:hidden;
  transition: var(--transition-base);
}
.video-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow-medium); border-color: rgba(var(--theme-primary-rgb), .22); }
.video-thumb{
  width: 136px;
  background: var(--theme-midnight);
  display:grid;
  place-items:center;
}
.video-thumb img{ width:100%; height:100%; object-fit: cover; }
.video-body{ padding: 12px 12px 12px 0; min-width:0; }
.video-title{
  margin: 0;
  font-family: var(--font-display);
  font-weight: 950;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.2;
}
.video-meta{
  margin-top: 8px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
}
.video-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 950;
  font-size: .82rem;
}
.video-cta{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 950;
  white-space: nowrap;
}

/* Empty + pager */
.history-empty{
  text-align:center;
  padding: 46px 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}
.history-empty i{ font-size: 2.8rem; opacity: .35; }
.pager{
  display:flex;
  gap: 10px;
  justify-content: space-between;
  align-items:center;
  padding-top: 8px;
}
.pager a{ text-decoration:none; }
.pager .pager-btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  font-weight: 950;
  color: var(--text-primary);
}
.pager .pager-btn:hover{ border-color: rgba(var(--theme-primary-rgb), .22); }
.pager .pager-meta{ color: var(--text-secondary); font-weight: 900; }
