/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.header-content {
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo i {
    font-size: 2.5rem;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Navigation Styles */
.nav {
    background-color: #2c3e50;
    padding: 0;
    position: relative;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ecf0f1;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background-color: #34495e;
    color: #3498db;
    border-bottom-color: #3498db;
}

.nav-link i {
    font-size: 1.1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
}

/* Table of Contents */
.toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.toc h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: #555;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.toc a:hover {
    background-color: #e9ecef;
    color: #2c3e50;
    padding-left: 0.5rem;
}

.toc .toc-level-1 {
    font-weight: 600;
    color: #2c3e50;
}

.toc .toc-level-2 {
    padding-left: 1rem;
    color: #666;
}

.toc .toc-level-3 {
    padding-left: 2rem;
    color: #777;
    font-size: 0.85rem;
}

/* Content Layout with TOC */
.content-with-toc {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Desktop TOC styling */
@media (min-width: 769px) {
    .toc {
        position: sticky;
        top: 20px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .mobile-toc-toggle {
        display: none;
    }
}

/* Mobile TOC Toggle */
.mobile-toc-toggle {
    display: none;
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.mobile-toc-toggle:hover {
    background: #2980b9;
}

.mobile-toc-toggle i {
    margin-right: 0.5rem;
}

/* Doc sections wrapper */
.doc-sections {
    flex: 1;
}

/* Main Content */
.main {
    padding: 2rem;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Quick Start Section */
.quick-start {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.quick-start h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.quick-steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 250px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Documentation Content Styles */
.doc-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.doc-section {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.doc-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-section h3 {
    color: #34495e;
    margin: 2rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-section h4 {
    color: #2c3e50;
    margin: 1.5rem 0 0.5rem 0;
}

.doc-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555;
}

.doc-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.doc-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.step-list {
    counter-reset: step-counter;
}

.step-list li {
    counter-increment: step-counter;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.highlight-box {
    background: #e8f4fd;
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.tip-box {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-link {
        justify-content: flex-start;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #34495e;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .content-with-toc {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .toc {
        position: static;
        max-height: none;
        margin-bottom: 1rem;
    }
    
    .mobile-toc-toggle {
        display: block;
    }
    
    .toc {
        display: none;
    }
    
    .toc.active {
        display: block;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-steps {
        flex-direction: column;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .main {
        padding: 1rem;
    }
    
    .doc-content {
        padding: 1rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .logo {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}
