/* Documentation text styles */
.doc-content,
.doc-section,
.doc-nav,
p,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans) !important;
    margin: 0;
    padding: 0;
}

/* Code blocks */
pre,
code,
.hljs {
    font-family: var(--font-mono) !important;
    margin: 1.5rem 0;
    border-radius: 8px;
}

/* Documentation specific styles */
.doc-nav {
    position: fixed;
    top: 74px;
    left: 0;
    width: 280px;
    height: calc(100vh - 74px);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--glass-border);
    padding: 2rem;
    overflow-y: auto;
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;  /* Hide scrollbar for Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.doc-nav::-webkit-scrollbar {
    display: none;
}

/* Navigation styles */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin: 0.25rem 0;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(244, 184, 96, 0.1);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(244, 184, 96, 0.15);
    font-weight: 500;
}

/* Remove the ::before pseudo-element that creates the left border */
.nav-link.active::before {
    display: none;
}

.doc-content {
    margin-left: 280px;
    padding: 2rem 4rem;
    max-width: 1200px;
    line-height: 1.6;
    color: var(--text);
}

.doc-section {
    margin-bottom: 4rem;
    padding: 0;
}

.doc-section h2 {
    font-size: 2rem;
    margin: 0 0 1.5rem 0;
    color: var(--primary);
    font-weight: 600;
}

.doc-section h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--secondary);
    font-weight: 500;
}

.doc-section p {
    margin: 0 0 1rem 0;
    line-height: 1.8;
}

.doc-section ul,
.doc-section ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.doc-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.doc-section code {
    background: var(--glass-bg);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    margin: 0 0.2em;
}

.code-diagram-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    width: 100%;
}

.code-diagram-container pre {
    margin: 0;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    height: fit-content;
    max-width: 100%;
}

.code-diagram-container .workflow-diagram {
    margin: 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.workflow-diagram {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

/* Mermaid diagram styles */
.mermaid {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mermaid svg {
    max-width: 100%;
    height: auto;
}

/* Style Mermaid diagram elements */
.mermaid .node rect {
    fill: rgba(0, 0, 0, 0.4) !important;
    stroke: var(--primary) !important;
    stroke-width: 2px !important;
}

.mermaid .node.circle circle {
    stroke-width: 2px !important;
}

.mermaid .node.start circle {
    fill: var(--primary) !important;
    stroke: var(--primary) !important;
}

.mermaid .node.end circle {
    fill: var(--secondary) !important;
    stroke: var(--secondary) !important;
}

.mermaid .node.diamond rect,
.mermaid .node.diamond path {
    fill: rgba(0, 0, 0, 0.4) !important;
    stroke: var(--accent) !important;
    stroke-width: 2px !important;
}

.mermaid .edgePath .path {
    stroke: var(--primary) !important;
    stroke-width: 2px !important;
}

.mermaid .arrowheadPath {
    fill: var(--primary) !important;
    stroke: none !important;
}

.mermaid .edgeLabel {
    background-color: transparent !important;
    color: var(--text-light) !important;
}

.mermaid .label {
    color: var(--text-light) !important;
}

.mermaid .label text,
.mermaid .node text {
    fill: var(--text-light) !important;
    font-size: 14px !important;
    font-family: var(--font-sans) !important;
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--glass-bg);
    border-radius: 8px;
    overflow: hidden;
}

.api-table th,
.api-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.api-table th {
    background: rgba(0, 0, 0, 0.2);
    color: var(--primary);
    font-weight: 600;
}

/* API Reference specific styles */
#api-reference h2 {
    color: var(--primary); /* Using our primary orange/gold color */
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

#api-reference .core-components {
    color: var(--secondary); /* Using our secondary color */
    font-size: 2rem;
    margin: 2rem 0 1.5rem;
}

/* Best Practices specific styles */
#best-practices h2 {
    color: var(--primary);
    margin-bottom: 2rem;
}

#best-practices h3 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
}

#best-practices .tip-header {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

#best-practices ul li {
    color: var(--text);
    margin-bottom: 1rem;
}

/* Style for numbered sections */
#best-practices .numbered-section {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin: 2rem 0;
}

#best-practices .section-number {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 600;
    opacity: 0.8;
}

#best-practices .section-content {
    flex: 1;
}

#best-practices .section-content li {
    color: var(--text);
}

#best-practices .section-content li strong {
    color: var(--primary);
}

#best-practices .section-content ul li ul li {
    color: var(--text);
}

/* Style for the main points in best practices */
#best-practices .main-point {
    color: var(--text);
    margin-bottom: 1rem;
}

#best-practices .main-point strong {
    color: var(--primary);
}

/* Code block styling */
#best-practices pre code {
    color: var(--text);
    background: var(--glass-bg);
}

/* Comments in code */
#best-practices code .comment {
    color: var(--text-dim);
}

/* Responsive layout */
@media (max-width: 1024px) {
    .doc-nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 100;
        width: 260px;
    }

    .doc-nav.active {
        transform: translateX(0);
    }

    .doc-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .code-diagram-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .doc-section h2 {
        font-size: 1.75rem;
    }

    .doc-section h3 {
        font-size: 1.25rem;
    }

    .menu-toggle {
        display: block;
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        background: var(--primary);
        color: var(--bg-dark);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 101;
        border: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 74px;
}

/* Documentation title */
.doc-nav .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

/* Navigation menu items */
.nav-list a {
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
}

.nav-list a:hover {
    color: var(--text);
    background: rgba(244, 184, 96, 0.1);
}

.nav-list a.active {
    color: var(--primary);
    background: rgba(244, 184, 96, 0.15);
    font-weight: 500;
}

/* Title styling */
.documenta-title {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Navigation section headers */
.nav-section-header {
    color: var(--secondary);
    font-size: 1rem;
    margin: 1rem 0 0.5rem;
    padding-left: 1rem;
}

#best-practices .key-term {
    color: var(--primary);
    font-weight: 500;
}

#best-practices .description {
    color: var(--text);
}

#best-practices .sub-point {
    color: var(--text);
    margin-left: 1.5rem;
}

#best-practices li {
    margin-bottom: 1rem;
}

#best-practices li strong,
#best-practices .bullet-point {
    color: var(--primary);
    font-weight: 500;
}

#best-practices .section-title {
    color: var(--secondary);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

#best-practices .normal-text {
    color: var(--text);
}

/* Documentation text colors */
.doc-content strong {
    color: var(--primary);
}

.doc-content h2 {
    color: var(--primary);
}

.doc-content h3 {
    color: var(--secondary);
}

.doc-content .highlight {
    color: var(--primary);
    font-weight: 500;
}

/* List styling */
.doc-content ul li {
    color: var(--text);
}

.doc-content ul li strong {
    color: var(--primary);
}

/* Nested list styling */
.doc-content ul ul li {
    color: var(--text);
} 