/* ================================
   CloudiX Documentation Styles
   Clean & Minimal Design
   ================================ */

:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #252540;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a7e;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --border: rgba(255, 255, 255, 0.08);
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    display: flex;
    min-height: 100vh;
}

a {
    color: var(--accent-light);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ================================
   Sidebar
   ================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    font-size: 24px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-section {
    padding: 0 16px;
    margin-bottom: 24px;
}

.nav-section h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding: 0 8px;
}

.nav-link {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
}

.nav-link.active {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-light);
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

/* ================================
   Main Content
   ================================ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-header {
    padding: 16px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #6d28d9;
    text-decoration: none;
}

.content {
    flex: 1;
    padding: 48px;
    max-width: 900px;
}

.content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 12px;
}

.intro {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.content ul,
.content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.content li strong {
    color: var(--text-primary);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.2s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    text-decoration: none;
}

.card-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Callout */
.callout {
    padding: 20px 24px;
    border-radius: 8px;
    margin: 24px 0;
}

.callout-info {
    background: rgba(124, 58, 237, 0.1);
    border-left: 4px solid var(--accent);
}

.callout-warning {
    background: rgba(234, 179, 8, 0.1);
    border-left: 4px solid #eab308;
}

.callout-danger {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
}

.callout h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.callout p {
    margin: 0;
    font-size: 14px;
}

/* Code */
code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
}

pre {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

pre code {
    background: none;
    padding: 0;
}

/* Footer */
.content-footer {
    padding: 32px 48px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.prev-link,
.next-link {
    font-size: 14px;
    font-weight: 500;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-muted);
}

/* Steps */
.steps {
    counter-reset: step;
}

.step {
    position: relative;
    padding-left: 48px;
    padding-bottom: 32px;
    border-left: 2px solid var(--border);
    margin-left: 16px;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: -17px;
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.step:last-child {
    border-left-color: transparent;
}

/* Responsive */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
    }

    .content {
        padding: 24px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}