/* ===== GUIDE PAGE ===== */

.guide-page {
  padding-top: 100px;
  padding-bottom: 60px;
  min-height: 100vh;
}

.guide-container {
  max-width: 760px;
}

.guide-header {
  margin-bottom: 3rem;
}

.guide-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.guide-header p {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 520px;
}

/* Sections */
.guide-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.guide-section:last-of-type {
  border-bottom: none;
}

.guide-section h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.guide-section p {
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.guide-section a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(74,222,128,0.3);
  transition: text-decoration-color 0.2s;
}

.guide-section a:hover {
  text-decoration-color: var(--accent);
}

/* Code blocks */
.code-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  overflow-x: auto;
  line-height: 1.6;
}

.code-block.code-output {
  color: var(--text-dim);
  border-color: rgba(74,222,128,0.15);
}

.code-block code {
  font-family: inherit;
}

/* Lists */
.guide-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.guide-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.guide-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.guide-list.numbered {
  counter-reset: steps;
}

.guide-list.numbered li {
  counter-increment: steps;
}

.guide-list.numbered li::before {
  content: counter(steps) '.';
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.guide-list li code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(255,255,255,0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent);
}

.guide-list li strong {
  color: var(--text);
}

.site-list li a {
  color: var(--accent);
  text-decoration: none;
}

.site-list li a:hover {
  text-decoration: underline;
}

/* Note callout */
.guide-note {
  background: rgba(74,222,128,0.06);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 0 6px 6px 0;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.guide-note code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(255,255,255,0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent);
}

/* Hotkeys grid */
.hotkeys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.hotkey-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}

.hotkey-item kbd {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(255,255,255,0.08);
  padding: 0.25em 0.55em;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--accent);
  white-space: nowrap;
}

.hotkey-item span {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* FAQ / Troubleshooting */
.guide-faq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.guide-faq details {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}

.guide-faq summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.guide-faq summary:hover {
  background: rgba(255,255,255,0.03);
}

.guide-faq summary::before {
  content: '+';
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.guide-faq details[open] summary::before {
  content: '−';
}

.guide-faq summary::-webkit-details-marker {
  display: none;
}

.guide-faq details p {
  padding: 0 1rem 0.85rem;
  margin: 0;
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 0.9rem;
}

.guide-faq details p code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(255,255,255,0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent);
}

/* CTA */
.guide-cta {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 600px) {
  .guide-page {
    padding-top: 80px;
  }

  .hotkeys-grid {
    grid-template-columns: 1fr;
  }

  .code-block {
    font-size: 0.82rem;
    padding: 0.75rem 1rem;
  }
}
