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

html {
    scroll-behavior: smooth;
}

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

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

/* Header */
.header {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 20px;
}

.logo-icon i {
    color: white;
}

.logo-text {
    font-size: 16px;
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.version {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid #e1e5e9;
    padding: 20px 0;
    height: calc(100vh - 60px);
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 2px;
}

.nav-link {
    display: block;
    padding: 8px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #ff6b35;
}

.nav-link.active {
    background: #fff3f0;
    color: #ff6b35;
    border-right: 3px solid #ff6b35;
}

/* Content Area */
.content {
    flex: 1;
    padding: 30px 40px;
    background: white;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: calc(100% - 290px);
}

/* Table of Contents */
.toc {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.toc h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.toc ul {
    list-style: none;
}

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

.toc a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: block;
    padding: 4px 0;
    border-radius: 4px;
}

.toc a:hover {
    color: #ff6b35;
    background-color: #fff3f0;
    padding-left: 8px;
}

/* Sections */
section {
    scroll-margin-top: 20px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumb i {
    margin-right: 6px;
    color: #ff6b35;
}

/* Typography */
h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 20px 0 30px 0;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f3f4;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px 0;
}

.intro-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.description {
    font-size: 16px;
    color: #444;
    margin-bottom: 30px;
    line-height: 1.7;
}

.description strong {
    color: #333;
    font-weight: 600;
}

/* Features List */
.features-list {
    list-style: none;
    margin: 20px 0;
}

.features-list li {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.features-list li i {
    color: #4CAF50;
    margin-right: 8px;
}

.features-list strong {
    color: #333;
    font-weight: 600;
}

/* Ordered Lists for Contributing */
ol.features-list {
    list-style: decimal;
    padding-left: 20px;
}

ol.features-list li {
    margin-bottom: 10px;
}

.additional-info {
    margin: 15px 0;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

.additional-info strong {
    color: #333;
    font-weight: 600;
}

.note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    font-size: 14px;
    color: #856404;
}

/* Links */
.link {
    color: #ff6b35;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* Demo Section */
.demo-section {
    margin: 30px 0;
    scroll-margin-top: 20px;
}

.video-container {
    margin: 20px 0;
}

.demo-video {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #000;
}

.video-caption {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    text-align: center;
}

.demo-description {
    font-size: 16px;
    color: #666;
    font-style: italic;
}

/* Code blocks */
pre {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
}

code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    color: #d73a49;
}

pre code {
    background: none;
    padding: 0;
    color: #333;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px 0;
}

/* Footer */
.footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
    font-size: 14px;
    color: #666;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.sidebar.mobile-hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .sidebar.mobile-hidden {
        display: none;
    }
    
    .nav-menu {
        padding: 10px 0;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 16px;
        border-bottom: 1px solid #f1f3f4;
    }
    
    .nav-link:hover {
        background: #f8f9fa;
    }
    
    .content {
        max-width: 100%;
        margin: 10px;
        padding: 20px;
    }
    
    .header {
        padding: 10px 15px;
    }
    
    .header-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .logo-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 15px;
        margin: 5px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    .toc {
        padding: 15px;
    }
    
    .header {
        padding: 8px 12px;
    }
    
    .logo-text {
        font-size: 13px;
    }
    
    .header-info {
        font-size: 12px;
    }
    
    .demo-video {
        border-radius: 4px;
    }
    
    pre {
        font-size: 12px;
        padding: 10px;
    }
}