/* Dendrite Documentation - Main Stylesheet */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Header */
.header {
    background-color: #5b9bb4;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.header-nav {
    display: flex;
    gap: 30px;
}

.header-nav a {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.header-nav a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background-color: #5b9bb4;
    padding: 60px 20px 80px;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 15px;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 40px;
}

/* Search Box */
.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: white;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    background-color: #333;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #444;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Category Card */
.category-card {
    margin-bottom: 20px;
}

.category-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.category-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.category-header h2 a:hover {
    color: #5b9bb4;
}

.category-header .count {
    font-size: 13px;
    color: #999;
}

.category-articles {
    list-style: none;
}

.category-articles li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-articles li:last-child {
    border-bottom: none;
}

.category-articles .icon {
    color: #ccc;
    font-size: 14px;
}

.category-articles a {
    color: #666;
    font-size: 15px;
}

.category-articles a:hover {
    color: #5b9bb4;
}

.view-all {
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all a {
    color: #999;
    font-size: 14px;
}

.view-all a:hover {
    color: #5b9bb4;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #5b9bb4;
    padding: 20px 0;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb a,
.breadcrumb span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb .separator {
    margin: 0 10px;
}

/* Category Page */
.category-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.category-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.category-title h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.category-title .count {
    font-size: 14px;
    color: #999;
}

.articles-list {
    list-style: none;
}

.articles-list li {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.articles-list .icon {
    color: #ccc;
    font-size: 18px;
}

.articles-list a {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.articles-list a:hover {
    color: #5b9bb4;
}

/* Article Page */
.article-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.article-meta {
    color: #999;
    font-size: 14px;
}

.article-meta a {
    color: #5b9bb4;
}

.article-content {
    color: #444;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 12px;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-content code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
}

.article-content pre {
    background-color: #f5f5f5;
    padding: 15px 20px;
    border-radius: 3px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-content blockquote {
    border-left: 4px solid #5b9bb4;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

.article-content strong {
    font-weight: 600;
    color: #333;
}

/* Alert Boxes */
.alert {
    padding: 15px 20px;
    border-radius: 3px;
    margin: 20px 0;
}

.alert-info {
    background-color: #e8f4f8;
    border-left: 4px solid #5b9bb4;
    color: #2c6e8a;
}

.alert-warning {
    background-color: #fff8e6;
    border-left: 4px solid #f0ad4e;
    color: #8a6d3b;
}

.alert-success {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #3d8b40;
}

/* Navigation Steps */
.nav-steps {
    background-color: #f9f9f9;
    padding: 15px 20px;
    border-radius: 3px;
    margin: 15px 0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    color: #666;
}

/* Related Articles */
.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-articles h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    padding: 8px 0;
}

.related-articles a {
    color: #5b9bb4;
}

.related-articles a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #f9f9f9;
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer p {
    color: #999;
    font-size: 14px;
}

/* Document Icon SVG */
.doc-icon {
    width: 16px;
    height: 16px;
    fill: #ccc;
    flex-shrink: 0;
}

/* Plus Icon */
.plus-icon {
    width: 14px;
    height: 14px;
    fill: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

    .article-header h1 {
        font-size: 24px;
    }
}
