/* ========================================
   JWTLens Guide Pages - Styles
   ======================================== */

.guide-article {
    padding: 120px 0 80px;
    position: relative;
    z-index: 1;
}

.guide-header {
    max-width: 800px;
    margin: 0 auto 48px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.back-link:hover { color: var(--accent-cyan); }

.guide-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 14px;
    background: var(--accent-orange-dim);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 100px;
    margin-bottom: 16px;
}

.guide-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.guide-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Content */
.guide-content {
    max-width: 800px;
    margin: 0 auto;
}

.guide-content section {
    padding: 0 0 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.guide-content section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.guide-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.guide-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--accent-cyan);
}

.guide-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.guide-content ul,
.guide-content ol {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    padding-left: 24px;
    margin-bottom: 20px;
}

.guide-content li {
    margin-bottom: 8px;
}

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

.guide-content a {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(6, 214, 160, 0.3);
    transition: border-color 0.2s;
}

.guide-content a:hover {
    border-bottom-color: var(--accent-cyan);
}

.guide-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88em;
    background: rgba(6, 214, 160, 0.08);
    color: var(--accent-cyan);
    padding: 2px 6px;
    border-radius: 4px;
}

.guide-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Code blocks in guides */
.guide-code {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
    overflow-x: auto;
}

.guide-code pre {
    margin: 0;
}

.guide-code code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.8;
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.c-red { color: var(--accent-red); }
.c-purple { color: var(--accent-purple); }
.c-cyan { color: var(--accent-cyan); }

/* Table of Contents */
.guide-toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 48px;
}

.guide-toc h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.guide-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}

.guide-toc li {
    counter-increment: toc;
    margin-bottom: 6px;
}

.guide-toc li::before {
    content: counter(toc) ".";
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    margin-right: 10px;
    font-weight: 600;
}

.guide-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s;
    border-bottom: none;
}

.guide-toc a:hover {
    color: var(--accent-cyan);
}

/* Guide CTA */
.guide-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-article { padding: 100px 0 60px; }
    .guide-header h1 { font-size: 1.8rem; }
    .guide-content h2 { font-size: 1.3rem; }
    .guide-cta { flex-direction: column; }
    .guide-cta .btn { text-align: center; justify-content: center; }
}
