/* Documentation Styles - Shared across all docs pages */

body {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
}

.docs-page {
    min-height: 100vh;
    background: var(--bg-body);
}

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 100px;
}

.docs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-body);
    z-index: 100;
}

.docs-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--text-main);
}

.docs-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

.docs-sidebar {
    width: 280px;
    min-width: 280px;
    padding: 2rem;
    border-right: 1px solid var(--border);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    flex-shrink: 0;
}

.docs-nav-section {
    margin-bottom: 2rem;
}

.docs-nav-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.docs-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.docs-nav-link:hover,
.docs-nav-link.active {
    background: var(--bg-panel);
    color: var(--text-main);
}

.docs-content {
    flex: 1;
    padding: 3rem;
    max-width: 900px;
}

.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.docs-content h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

.docs-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.docs-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.docs-content ul, .docs-content ol {
    color: var(--text-muted);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.docs-content li {
    margin-bottom: 0.5rem;
}

.docs-content code {
    background: var(--bg-panel);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--accent-orange);
}

.docs-content pre {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.docs-content pre code {
    background: none;
    padding: 0;
    color: var(--text-main);
    font-size: 0.85rem;
    line-height: 1.6;
}

.callout {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.callout-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
}

.callout-warning {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--accent-orange);
}

.callout-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--accent-green);
}

.callout p {
    margin: 0;
}

.file-tree {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
}

.file-tree .folder {
    color: var(--accent-blue);
}

.file-tree .file {
    color: var(--text-muted);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent-orange);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 0.75rem;
}

@media (max-width: 900px) {
    .docs-sidebar {
        display: none;
    }

    .docs-content {
        padding: 1.5rem;
    }
}

/* Core Concepts Grid */
.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.concept-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.concept-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.concept-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.concept-card h3 a {
    color: var(--text-main);
    text-decoration: none;
}

.concept-card h3 a:hover {
    color: var(--accent-blue);
}

.concept-card p {
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.concept-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.concept-link:hover {
    text-decoration: underline;
}

/* Bundle-specific styles */
.bundle-structure {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.bundle-structure h4 {
    margin: 0 0 1rem 0;
    color: var(--text-main);
    font-size: 1rem;
}

.bundle-diagram {
    text-align: center;
    margin: 2rem 0;
}

.bundle-diagram .bundle-icon {
    display: inline-block;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 16px;
    margin-bottom: 1rem;
}

.bundle-diagram .bundle-label {
    font-weight: 600;
    color: var(--text-main);
}

.service-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}

.service-icon {
    text-align: center;
}

.service-icon .icon {
    width: 48px;
    height: 48px;
    background: var(--accent-green);
    border-radius: 12px;
    margin: 0 auto 0.5rem auto;
}

.service-icon .label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lifecycle-diagram {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.lifecycle-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    position: relative;
}

.lifecycle-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.lifecycle-step {
    background: var(--bg-body);
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

.lifecycle-step.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.lifecycle-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.lifecycle-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex: 1;
}

.yaml-example {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
}

.yaml-example .comment {
    color: var(--text-muted);
    font-style: italic;
}

.yaml-example .key {
    color: var(--accent-blue);
}

.yaml-example .value {
    color: var(--accent-green);
}

.yaml-example .string {
    color: var(--accent-orange);
}

.best-practices {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.best-practices h4 {
    margin: 0 0 1rem 0;
    color: var(--text-main);
}

.best-practices ul {
    margin: 0;
    padding-left: 1.5rem;
}

.best-practices li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.nav-breadcrumb {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.nav-breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
}

.nav-breadcrumb a:hover {
    text-decoration: underline;
}

.nav-breadcrumb .separator {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.concept-navigation {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.concept-navigation h4 {
    margin: 0 0 1rem 0;
    color: var(--text-main);
}

.concept-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.concept-nav-item {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s;
}

.concept-nav-item:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
}

.concept-nav-item .title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.concept-nav-item .description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.highlight-box h3 {
    margin: 0 0 1rem 0;
    color: var(--text-main);
}

.highlight-box p {
    margin: 0 0 1.5rem 0;
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 16px;
    margin: 0 auto 1rem auto;
}