/* ============================================================================
   GUIDE PAGES - Long-form educational articles
   ============================================================================ */

/* Keep global site header above guide content on guide pages */
body > header {
    z-index: 1000;
    background: #ffffff;
}

/* Guide hero should scroll with the article, not stick */
.guide-header {
    position: static;
    top: auto;
    z-index: auto;
}

/* Guide container - readable width with proper padding */
.guide-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

/* Guide header - ensure it scrolls naturally (no sticky positioning) */
.guide-header {
    margin-bottom: 48px;
    padding: 32px;
    background: white;
    border-bottom: 3px solid #2563eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.guide-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.guide-description {
    font-size: 20px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
}

.guide-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #6b7280;
    margin-top: 16px;
}

.guide-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-meta-label {
    font-weight: 600;
    color: #374151;
}

/* Guide content - prose styling */
.guide-content {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
}

.guide-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 56px;
    margin-bottom: 24px;
    line-height: 1.3;
}

.guide-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.guide-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-top: 32px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.guide-content p {
    margin-bottom: 20px;
}

.guide-content p:last-child {
    margin-bottom: 0;
}

.guide-content strong {
    font-weight: 600;
    color: #1a1a1a;
}

.guide-content em {
    font-style: italic;
}

/* Lists in guide content */
.guide-content ul,
.guide-content ol {
    margin: 20px 0 20px 32px;
    line-height: 1.8;
}

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

.guide-content li:last-child {
    margin-bottom: 0;
}

/* Links */
.guide-content a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.guide-content a:hover {
    color: #1d4ed8;
}

.guide-content a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Blockquotes */
.guide-content blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    background: #f9fafb;
    border-left: 4px solid #2563eb;
    font-style: italic;
    color: #4b5563;
}

.guide-content blockquote p {
    margin-bottom: 12px;
}

.guide-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code and technical terms */
.guide-content code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    font-size: 0.9em;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    color: #1f2937;
}

/* Visual figures (SVG diagrams) */
.guide-visual {
    margin: 48px 0;
    text-align: center;
}

.guide-visual svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.guide-visual figcaption {
    margin-top: 16px;
    font-size: 15px;
    color: #6b7280;
    font-style: italic;
    line-height: 1.6;
}

/* Quick answer box (green - for TL;DR sections) */
.guide-quick-answer {
    margin: 40px 0;
    padding: 28px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
}

.guide-quick-answer-title {
    font-size: 20px;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 16px;
}

.guide-quick-answer p {
    color: #065f46;
    margin-bottom: 16px;
}

.guide-quick-answer p:last-child {
    margin-bottom: 0;
}

.guide-quick-answer ul {
    margin: 16px 0 16px 24px;
    color: #065f46;
}

/* Reality Check box (amber - for setting realistic expectations) */
.guide-reality-check {
    margin: 32px 0;
    padding: 24px;
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-left: 6px solid #f59e0b;
    border-radius: 8px;
}

.guide-reality-check-title {
    font-size: 18px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-reality-check-title::before {
    content: "⚠️";
    font-size: 20px;
}

.guide-reality-check p {
    color: #92400e;
    margin-bottom: 12px;
}

.guide-reality-check p:last-child {
    margin-bottom: 0;
}

.guide-reality-check ul {
    margin: 12px 0 12px 24px;
    color: #92400e;
}

/* Pro Tip box (blue - for helpful advice) */
.guide-pro-tip {
    margin: 32px 0;
    padding: 24px;
    background: #dbeafe;
    border: 2px solid #3b82f6;
    border-left: 6px solid #3b82f6;
    border-radius: 8px;
}

.guide-pro-tip-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-pro-tip-title::before {
    content: "💡";
    font-size: 20px;
}

.guide-pro-tip p {
    color: #1e40af;
    margin-bottom: 12px;
}

.guide-pro-tip p:last-child {
    margin-bottom: 0;
}

.guide-pro-tip ul {
    margin: 12px 0 12px 24px;
    color: #1e40af;
}

/* Example box (grey with indigo accent - for real-world examples) */
.guide-example {
    margin: 32px 0;
    padding: 24px;
    background: #f9fafb;
    border-left: 4px solid #6366f1;
    border-radius: 6px;
}

.guide-example-title {
    font-size: 18px;
    font-weight: 700;
    color: #4338ca;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-example-title::before {
    content: "📍";
    font-size: 20px;
}

.guide-example p {
    color: #4b5563;
    margin-bottom: 12px;
}

.guide-example p:last-child {
    margin-bottom: 0;
}

.guide-example ul {
    margin: 12px 0 12px 24px;
    color: #4b5563;
}

.guide-example strong {
    color: #4338ca;
}

/* Common Mistake box (red - for warnings) */
.guide-mistake {
    margin: 32px 0;
    padding: 24px;
    background: #fee2e2;
    border: 2px solid #ef4444;
    border-left: 6px solid #ef4444;
    border-radius: 8px;
}

.guide-mistake-title {
    font-size: 18px;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-mistake-title::before {
    content: "❌";
    font-size: 20px;
}

.guide-mistake p {
    color: #991b1b;
    margin-bottom: 12px;
}

.guide-mistake p:last-child {
    margin-bottom: 0;
}

.guide-mistake ul {
    margin: 12px 0 12px 24px;
    color: #991b1b;
}

/* Table of contents (if needed) */
.guide-toc {
    margin: 40px 0;
    padding: 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.guide-toc-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.guide-toc a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.guide-toc a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Related guides section */
.guide-related {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 2px solid #e5e7eb;
}

.guide-related-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.guide-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.guide-related-card {
    display: block;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.guide-related-card:hover {
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.guide-related-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.guide-related-card-desc {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .guide-container {
        padding: 24px 20px 60px;
    }
    
    .guide-header {
        margin-bottom: 32px;
        padding: 24px 20px;
    }
    
    .guide-title {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .guide-description {
        font-size: 18px;
    }
    
    .guide-meta {
        gap: 16px;
        font-size: 13px;
    }
    
    .guide-content {
        font-size: 17px;
        line-height: 1.7;
    }
    
    .guide-content h2 {
        font-size: 24px;
        margin-top: 40px;
        margin-bottom: 20px;
    }
    
    .guide-content h3 {
        font-size: 20px;
        margin-top: 32px;
        margin-bottom: 14px;
    }
    
    .guide-content h4 {
        font-size: 17px;
        margin-top: 24px;
        margin-bottom: 10px;
    }
    
    .guide-content ul,
    .guide-content ol {
        margin-left: 24px;
    }
    
    .guide-visual {
        margin: 32px 0;
    }
    
    .guide-visual figcaption {
        font-size: 14px;
    }
    
    .guide-quick-answer,
    .guide-reality-check,
    .guide-pro-tip,
    .guide-example,
    .guide-mistake {
        margin: 24px 0;
        padding: 20px;
    }
    
    .guide-related {
        margin-top: 48px;
    }
    
    .guide-related-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .guide-related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Print styles */
@media print {
    .guide-container {
        max-width: 100%;
        padding: 0;
    }
    
    .guide-header {
        border-bottom-color: #000;
        box-shadow: none;
    }
    
    .guide-visual svg {
        max-width: 80%;
    }
    
    .guide-related,
    .guide-toc {
        display: none;
    }
}

/* ============================================================================
   GUIDES LANDING PAGE
   ============================================================================ */

.guides-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

.guides-header {
    text-align: center;
    margin-bottom: 56px;
}

.guides-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.guides-intro {
    font-size: 20px;
    line-height: 1.6;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
}

/* Guides grid */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.guide-card {
    display: block;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.guide-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}

.guide-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.3;
}

.guide-card-desc {
    font-size: 17px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
}

.guide-card-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #9ca3af;
}

.guide-card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Mobile responsive - landing page */
@media (max-width: 768px) {
    .guides-container {
        padding: 32px 20px 60px;
    }
    
    .guides-header {
        margin-bottom: 40px;
    }
    
    .guides-title {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .guides-intro {
        font-size: 18px;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .guide-card {
        padding: 24px;
    }
    
    .guide-card-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .guide-card-desc {
        font-size: 16px;
        margin-bottom: 16px;
    }
}
