/* TOML Data Example Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

header {
    text-align: center;
    background: white;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 5px;
}

.version {
    font-size: 0.9rem;
    color: #999;
}

main {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 40px;
}

h2 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 15px;
}

h3 {
    color: #764ba2;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

h4 {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.lead {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.hero {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-radius: 8px;
    margin-bottom: 40px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.feature-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s;
}

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

/* Benefits List */
.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-list li {
    background: #f0f8ff;
    padding: 15px;
    margin: 10px 0;
    border-radius: 6px;
    border-left: 4px solid #764ba2;
}

/* How It Works Steps */
.step-box {
    background: #f8f9fa;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.step-box h4 {
    color: #667eea;
    margin-bottom: 15px;
}

pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    line-height: 1.5;
}

pre code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* When SSI includes a file inline inside <figure class="code-example">, the
   first line of the included <pre><code> lands right after the opening <code>
   tag (column 0) while continuation lines get the token line's leading
   whitespace prepended (2 spaces from the "  📁…" line in the page template).
   text-indent shifts the first line forward to match — so all lines appear
   aligned in the browser even though the HTML source shows them at different
   column positions. */
.code-example pre code {
    display: block;
    text-indent: 2ch;
}

code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
}

/* Example Note */
.example-note {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #fdcb6e;
}

.example-note h3 {
    color: #d63031;
    border: none;
}

/* Use Cases Grid */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.use-case {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.2s;
}

.use-case:hover {
    border-color: #667eea;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.use-case h4 {
    color: #667eea;
}

/* Footer */
footer {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    main {
        padding: 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    .feature-grid,
    .use-case-grid {
        grid-template-columns: 1fr;
    }
}
