/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #2563eb;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: #f59e0b;
    color: white;
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
}

.features {
    padding: 4rem 0;
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.7;
}

/* Quick links */
.quick-links {
    padding: 4rem 0;
    background: #f1f5f9;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.quick-link {
    display: block;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #2563eb;
}

.quick-link h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.quick-link p {
    color: #64748b;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Content pages */
.content {
    padding: 3rem 0;
    background: white;
    min-height: 60vh;
}

.content-header {
    margin-bottom: 3rem;
    text-align: center;
}

.content-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.content-subtitle {
    font-size: 1.25rem;
    color: #64748b;
}

.prose {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.prose h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
    color: #1e293b;
}

.prose h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem 0;
    color: #374151;
}

.prose p {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.prose ul, .prose ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

/* Code blocks and highlights */
.code-block {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.highlight {
    background: #fef3c7;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.warning {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.tip {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.success {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

/* Navigation breadcrumbs */
.breadcrumb {
    background: #f8fafc;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.breadcrumb-item a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: #64748b;
}

/* Image and screenshot styling */
.screenshot {
    max-width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.screenshot-small {
    max-width: 400px;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin: 0.5rem 0;
    display: inline-block;
}

.screenshot-large {
    width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-caption {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Page Layout */
.page-layout {
    background: #f8fafc;
    min-height: calc(100vh - 80px);
}

.page-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* Side Menu */
.side-menu {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.side-menu-content {
    padding: 1.5rem;
}

/* Table of Contents */
.toc {
    margin-bottom: 2rem;
}

.toc-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.toc-nav {
    margin: 0;
}

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

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.toc-link:hover {
    color: #2563eb;
    background: #f1f5f9;
    border-left-color: #2563eb;
}

.toc-sublist {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding-left: 1rem;
}

.toc-subitem {
    margin-bottom: 0.25rem;
}

.toc-sublink {
    display: block;
    padding: 0.25rem 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.toc-sublink:hover {
    color: #2563eb;
    background: #f8fafc;
}

/* Quick Actions */
.quick-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.quick-actions-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.quick-action-btn:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.quick-action-icon {
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.page-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.page-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.last-updated {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.last-updated::before {
    content: "🕒";
    font-size: 0.8rem;
}

/* Content Sections */
.content-sections {
    padding: 2rem;
}

.content-section {
    margin-bottom: 3rem;
    scroll-margin-top: 120px;
}

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

.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

.section-content {
    line-height: 1.8;
}

.section-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 0.75rem 0;
}

.section-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4b5563;
    margin: 1.25rem 0 0.5rem 0;
}

.section-content p {
    margin-bottom: 1.25rem;
    color: #4b5563;
}

.section-content ul, .section-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.section-content li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.info-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.info-card-content {
    color: #64748b;
    line-height: 1.6;
}

/* Steps */
.steps {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.step-number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.step-description {
    color: #64748b;
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .side-menu {
        position: static;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .nav {
        display: none;
    }
    
    .feature-grid,
    .link-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .screenshot-small {
        max-width: 100%;
    }
    
    .page-header {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    
    .content-sections {
        padding: 1.5rem 1rem;
    }
    
    .side-menu-content {
        padding: 1rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}