/* SiteData Documentation - Article Styles */
:root {
    --primary: #2B4A7C;
    --primary-light: #3d6299;
    --primary-dark: #1e3557;
    --secondary: #D4A574;
    --secondary-light: #e4c4a4;
    --accent: #5B8C5A;
    --accent-light: #7aa879;
    --dark: #1A1A1A;
    --light: #F5F0EB;
    --gray: #6B7280;
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
}

.logo-text span {
    font-weight: 400;
    color: var(--gray);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--light);
    padding: 0.75rem 2rem;
    margin-top: 72px;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--gray);
}

.breadcrumb-content a {
    color: var(--primary);
    text-decoration: none;
}

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

.breadcrumb-content span {
    margin: 0 0.5rem;
}

/* Article Container */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
    margin-bottom: 1rem;
}

.toc {
    list-style: none;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: block;
    padding: 0.25rem 0;
    padding-left: 1rem;
    border-left: 2px solid transparent;
}

.toc a:hover,
.toc a.active {
    color: var(--primary);
    border-left-color: var(--primary);
}

/* Article Content */
.article-content {
    max-width: 800px;
}

.article-content h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.article-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-content h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.article-content h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1rem;
    color: #374151;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: #374151;
}

.article-content a {
    color: var(--primary);
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

/* Highlight Box */
.highlight-box {
    background: var(--light);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.highlight-box strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.highlight-box ul {
    margin-bottom: 0;
}

/* Info Box */
.info-box {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.info-box.warning {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.info-box.success {
    background: #d1fae5;
    border-left-color: var(--accent);
}

/* Steps */
.steps {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.step-content p {
    margin-bottom: 0;
    color: var(--gray);
    font-size: 0.95rem;
}

/* Code Blocks */
pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

:not(pre) > code {
    background: var(--light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--primary-dark);
}

/* Code syntax highlighting */
.code-comment { color: #6b7280; }
.code-string { color: #a5d6ff; }
.code-keyword { color: #ff7b72; }
.code-function { color: #d2a8ff; }
.code-number { color: #79c0ff; }

/* Next Articles */
.next-articles {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.next-article {
    flex: 1;
    background: var(--light);
    padding: 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.next-article:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.next-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.next-title {
    display: block;
    color: var(--primary);
    font-weight: 600;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: var(--light);
    font-weight: 600;
    color: var(--dark);
}

tr:hover {
    background: #f9fafb;
}

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

.feature-item {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
}

.feature-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.faq-question {
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-question.open::after {
    content: "-";
}

.faq-answer {
    padding-top: 1rem;
    color: #374151;
    display: none;
}

.faq-answer.show {
    display: block;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-links h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-links a {
    display: block;
    color: var(--gray);
    text-decoration: none;
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .article-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .sidebar {
        position: static;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 1.5rem;
    }

    .toc {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .toc li {
        margin-bottom: 0;
    }

    .toc a {
        padding: 0.5rem 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 20px;
        border-left: 1px solid #e5e7eb;
    }

    .toc a:hover {
        border-color: var(--primary);
        border-left-color: var(--primary);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .article-content h1 {
        font-size: 1.75rem;
    }

    .next-articles {
        flex-direction: column;
    }
}
