/* help.css */
/* Help & Documentation Styles */

/* ===============================
   PAGE LAYOUT
   =============================== */

.help-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  color: var(--text-primary, #e6e6e6);
}

.help-header {
  text-align: center;
  margin-bottom: 24px;
}

.help-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--accent, #d18b3c);
}

.help-subtitle {
  font-size: 16px;
  color: var(--text-secondary, #888);
  margin: 0;
}

/* ===============================
   PLATFORM STATS
   =============================== */

.help-stats {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border, #4b4b50);
}

.help-stats-loading {
  text-align: center;
  color: var(--text-tertiary, #666);
  font-size: 13px;
  padding: 16px;
}

.stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  background: var(--bg-panel, #242428);
  border-radius: 12px;
  padding: 20px 32px;
  border: 1px solid var(--border, #4b4b50);
}

.stat-item {
  text-align: center;
  padding: 8px 24px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent, #d18b3c);
  line-height: 1.2;
  font-family: "Unbounded", sans-serif;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary, #888);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border, #4b4b50);
}

@media (max-width: 700px) {
  .stats-row {
	padding: 16px;
	gap: 8px;
  }
  
  .stat-item {
	padding: 8px 12px;
	min-width: 80px;
  }
  
  .stat-value {
	font-size: 22px;
  }
  
  .stat-label {
	font-size: 10px;
  }
  
  .stat-divider {
	display: none;
  }
}

/* ===============================
   CONTENT LAYOUT
   =============================== */

.help-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
}

@media (max-width: 800px) {
  .help-content {
	grid-template-columns: 1fr;
  }
  
  .help-nav {
	position: static;
	margin-bottom: 24px;
  }
}

/* ===============================
   NAVIGATION
   =============================== */

.help-nav {
  position: sticky;
  top: 24px;
  align-self: start;
}

.help-nav-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary, #888);
  margin-bottom: 12px;
  font-weight: 600;
}

.help-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.help-nav li {
  margin-bottom: 8px;
}

.help-nav a {
  color: var(--text-secondary, #888);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
  display: block;
  padding: 4px 0;
}

.help-nav a:hover {
  color: var(--accent, #d18b3c);
}

/* ===============================
   SECTIONS
   =============================== */

.help-section {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border, #4b4b50);
}

.help-section:last-child {
  border-bottom: none;
}

.help-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text-primary, #e6e6e6);
}

.help-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 12px 0;
  color: var(--text-primary, #e6e6e6);
}

.help-section h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 8px 0;
  color: var(--text-primary, #e6e6e6);
}

.help-section p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 12px 0;
  color: var(--text-secondary, #aaa);
}

.help-section ul,
.help-section ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.help-section li {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 6px;
  color: var(--text-secondary, #aaa);
}

.help-section li strong {
  color: var(--text-primary, #e6e6e6);
}

/* ===============================
   GETTING STARTED STEPS
   =============================== */

.help-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.help-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-panel, #242428);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border, #4b4b50);
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--accent, #d18b3c);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
}

.step-content p {
  margin: 0;
  font-size: 13px;
}

/* ===============================
   TIPS
   =============================== */

.help-tip {
  display: flex;
  gap: 12px;
  background: rgba(209, 139, 60, 0.1);
  border: 1px solid rgba(209, 139, 60, 0.3);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
}

.tip-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tip-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent, #d18b3c);
}

.tip-content {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary, #aaa);
}

.tip-content strong {
  color: var(--accent, #d18b3c);
}

.help-tip-block {
  background: var(--bg-panel, #242428);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border, #4b4b50);
}

.help-tip-block h4 {
  margin: 0 0 8px 0;
  color: var(--accent, #d18b3c);
}

.help-tip-block p {
  margin: 0;
  font-size: 13px;
}

/* ===============================
   KEYBOARD SHORTCUTS
   =============================== */

kbd {
  display: inline-block;
  padding: 3px 7px;
  font-size: 11px;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  background: var(--bg-elevated, #2a2a32);
  border: 1px solid var(--border, #4b4b50);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  color: var(--text-primary, #e6e6e6);
}

.shortcuts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px 0;
}

.shortcuts-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border, #4b4b50);
  font-size: 13px;
}

.shortcuts-table td:first-child {
  width: 180px;
  white-space: nowrap;
}

.shortcuts-table td:last-child {
  color: var(--text-secondary, #aaa);
}

.shortcuts-table tr:last-child td {
  border-bottom: none;
}

/* ===============================
   CATEGORIES DISPLAY
   =============================== */

.help-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: var(--cat-color);
  color: #fff;
}

/* ===============================
   FOOTER
   =============================== */

.help-footer {
  text-align: center;
  padding-top: 32px;
}

.help-footer h2 {
  font-size: 18px;
}

.help-version {
  font-size: 12px;
  color: var(--text-tertiary, #666);
  margin-top: 16px;
}

/* ===============================
   CODE ELEMENTS
   =============================== */

code {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 12px;
  background: var(--bg-elevated, #2a2a32);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent, #d18b3c);
}

/* ===============================
   PRINT STYLES
   =============================== */

@media print {
  .help-page {
	max-width: none;
	padding: 0;
  }
  
  .help-nav {
	display: none;
  }
  
  .help-content {
	display: block;
  }
  
  .help-header {
	border-bottom-color: #ccc;
  }
  
  .help-header h1 {
	color: #333;
  }
  
  .help-section {
	border-bottom-color: #ccc;
  }
  
  .help-section h2,
  .help-section h3,
  .help-section h4,
  .help-section p,
  .help-section li {
	color: #333;
  }
  
  .help-step,
  .help-tip,
  .help-tip-block {
	border-color: #ccc;
	background: #f9f9f9;
  }
  
  kbd {
	background: #f0f0f0;
	border-color: #ccc;
	color: #333;
  }
}
