/* ═══════════════════════════════════════════════════════════
   HUB.CSS — Vignette Master Hub (index.html)
   Page-specific styles. Requires main.css.
   ═══════════════════════════════════════════════════════════ */

/* ─── PAGE HERO ──────────────────────────────────────────── */
.hub-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.hub-hero-left { display: flex; flex-direction: column; gap: 8px; }
.hub-game-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}
.hub-game-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hub-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

/* ─── PROGRESS OVERVIEW ──────────────────────────────────── */
.progress-overview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.progress-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.progress-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  font-family: var(--mono);
}
.progress-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.progress-bar-wrap { flex: 1; }
.progress-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ─── NEXT STEP CALLOUT ──────────────────────────────────── */
.next-step {
  background: linear-gradient(135deg, rgba(232,255,61,0.06) 0%, rgba(232,255,61,0.02) 100%);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.next-step-icon { font-size: 22px; flex-shrink: 0; }
.next-step-body { flex: 1; }
.next-step-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}
.next-step-title { font-size: 15px; font-weight: 700; color: var(--text); }
.next-step-desc  { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.next-step-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: opacity 0.12s;
}
.next-step-action:hover { opacity: 0.85; text-decoration: none; }

/* ─── VIGNETTE GRID ──────────────────────────────────────── */
.vignette-section { margin-bottom: 36px; }
.vignette-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.vignette-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.vignette-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
  color: inherit;
}
.vignette-card:hover { border-color: rgba(255,255,255,0.15); background: var(--bg-card-hi); text-decoration: none; }
.vignette-card.complete { border-color: rgba(54,211,153,0.2); }
.vignette-card.active   { border-color: var(--border-hi); background: rgba(232,255,61,0.03); }
.vignette-card.locked   { opacity: 0.4; cursor: not-allowed; }

.vignette-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.vignette-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
}
.vignette-name { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; }
.vignette-area { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.vignette-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.vignette-status { font-size: 11px; color: var(--text-dim); }
.vignette-card.complete .vignette-status { color: var(--green); }

/* ─── RELATED GUIDES ──────────────────────────────────────── */
.guides-section { margin-bottom: 36px; }
.guides-row {
  display: flex;
  gap: 12px;
}
.guide-link-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s, background 0.12s;
}
.guide-link-card:hover { border-color: rgba(255,255,255,0.14); background: var(--bg-card-hi); text-decoration: none; }
.guide-link-icon { font-size: 22px; flex-shrink: 0; }
.guide-link-body { flex: 1; }
.guide-link-title { font-size: 14px; font-weight: 700; color: var(--text); }
.guide-link-desc  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.guide-link-arrow { font-size: 16px; color: var(--text-dim); flex-shrink: 0; }

/* ─── DEAL / AFFILIATE PLACEHOLDER ───────────────────────── */
.deal-section { margin-bottom: 0; }
.deal-card {
  background: var(--bg-card);
  border: 1px dashed rgba(255,197,50,0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.deal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.deal-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.deal-disclaimer { font-size: 10px; color: var(--text-dim); }
.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.deal-item {
  background: var(--bg-card-hi);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.deal-item-icon { font-size: 20px; }
.deal-item-name { font-size: 13px; font-weight: 600; color: var(--text); }
.deal-item-desc { font-size: 11px; color: var(--text-muted); }
.deal-item-cta {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.deal-item-cta::after { content: " →"; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .vignette-grid { grid-template-columns: repeat(2, 1fr); }
  .deal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hub-hero { flex-direction: column; }
  .hub-hero-right { align-items: flex-start; }
  .progress-overview { flex-direction: column; align-items: flex-start; gap: 16px; }
  .progress-bar-wrap { width: 100%; }
  .next-step { flex-direction: column; }
  .next-step-action { width: 100%; justify-content: center; }
  .vignette-grid { grid-template-columns: 1fr; }
  .guides-row { flex-direction: column; }
  .deal-grid { grid-template-columns: 1fr; }
}
