/* Guide article page styles — owns: article layout, typography, reading experience */
/* Does NOT own: nav, badges, theme tokens (those are in theme.css) */

.guide-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Back link in nav */
.back-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent-light); }

/* Nav extras (duplicated from library for standalone page) */
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-user { font-size: 14px; color: var(--fg-muted); }
.btn-logout {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 14px; font-family: var(--font-body); font-size: 13px;
  color: var(--fg-muted); cursor: pointer; transition: all 0.2s;
}
.btn-logout:hover { border-color: var(--fg-muted); color: var(--fg); }

/* Article header */
.guide-header {
  background: var(--bg-dark);
  color: #fff;
  padding: 48px 0 56px;
}
.guide-header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Breadcrumb */
.guide-breadcrumb {
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-breadcrumb a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.15s;
}
.guide-breadcrumb a:hover { color: #fff; }
.bc-sep { opacity: 0.4; }

/* Title */
.guide-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 20px;
}

/* Summary (the lead paragraph) */
.guide-summary {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  margin-bottom: 28px;
}

/* Meta badges row */
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Reuse badge styles from library.css */
.badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.badge-save-time { background: #e8f5e9; color: #2e7d32; }
.badge-career { background: #e3f2fd; color: #1565c0; }
.badge-understand-ai { background: #fce4ec; color: #c62828; }
.badge-best-tools { background: var(--accent-bg); color: var(--accent); }
.badge-beginner { background: #f3f4f6; color: #374151; }
.badge-intermediate { background: #fdf6ec; color: #92400e; }
.badge-advanced { background: #ede9fe; color: #5b21b6; }

.meta-tag {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 4px 12px;
  border-radius: 6px;
}

/* Article body */
.guide-body {
  flex: 1;
  padding: 56px 0 80px;
  background: var(--bg);
}

.guide-article {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 32px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--fg);
}

/* Article typography */
.guide-article h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--fg);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.guide-article h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--fg);
  margin-top: 36px;
  margin-bottom: 12px;
  line-height: 1.35;
}

.guide-article p {
  margin-bottom: 20px;
  color: var(--fg-light);
}

.guide-article strong {
  color: var(--fg);
  font-weight: 600;
}

.guide-article ul, .guide-article ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.guide-article li {
  margin-bottom: 10px;
  color: var(--fg-light);
  line-height: 1.7;
}

.guide-article li strong {
  color: var(--fg);
}

.guide-article blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--bg-warm);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: normal;
}

.guide-article blockquote p {
  margin-bottom: 0;
  color: var(--fg);
  font-weight: 500;
}

.guide-article blockquote p:not(:last-child) {
  margin-bottom: 12px;
}

.guide-article code {
  font-size: 14px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'DM Mono', monospace;
}

.guide-article pre {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.88);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

.guide-article pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

/* Horizontal rule for section breaks */
.guide-article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Footer */
.guide-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.guide-footer-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-back {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-back:hover { color: var(--accent-light); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .guide-header { padding: 36px 0 40px; }
  .guide-header-inner, .guide-article, .guide-footer-inner { padding: 0 20px; }
  .guide-body { padding: 40px 0 60px; }
  .guide-article h2 { font-size: 21px; margin-top: 36px; }
  .nav-user { display: none; }
  .nav-actions { gap: 12px; }
}

@media (max-width: 480px) {
  .guide-meta { gap: 8px; }
  .guide-title { font-size: 24px; }
  .guide-summary { font-size: 16px; }
}
