/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #333;
    --text-color: #333;
    --bg-color: #fff;
    --border-color: #ddd;
    --code-bg: #f5f5f5;
    --header-height: 60px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Header */
.site-header {
    background-color: var(--secondary-color);
    color: white;
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.navbar-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

.navbar-brand .version {
    font-size: 0.875rem;
    color: #888;
    margin-left: 10px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar-menu a:hover {
    color: var(--primary-color);
}

/* Main Content */
main {
    min-height: calc(100vh - var(--header-height) - 200px);
    padding: 40px 0;
}

/* Home Page */
.home .hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 40px;
}

.home .hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.home .hero .tagline {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #667eea;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.feature:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Quick Start Section */
.quick-start,
.go-import {
    margin: 60px 0;
    padding: 30px;
    background-color: var(--code-bg);
    border-radius: 8px;
}

.quick-start h2,
.go-import h2 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* Code Blocks */
pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
}

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

:not(pre) > code {
    background-color: var(--code-bg);
    padding: 2px 6px;
    border-radius: 3px;
    color: #e83e8c;
}

/* Documentation Content */
.doc-content {
    max-width: 900px;
    margin: 0 auto;
}

.doc-content header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.doc-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.doc-content .lead {
    font-size: 1.25rem;
    color: #666;
}

.content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--secondary-color);
}

.content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

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

.content ul,
.content ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

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

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content table th,
.content table td {
    padding: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.content table th {
    background-color: var(--code-bg);
    font-weight: 600;
}

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

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

/* Table of Contents */
.toc {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    float: right;
    width: 250px;
    margin-left: 30px;
    padding: 20px;
    background-color: var(--code-bg);
    border-radius: 8px;
}

.toc h2 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.toc ul {
    list-style: none;
    margin-left: 0;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
}

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

/* Document Footer */
.doc-footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: #666;
    font-size: 0.9rem;
}

.doc-footer .edit-link {
    margin-top: 10px;
}

/* List Page */
.list-page header {
    margin-bottom: 40px;
}

.list-page h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-item {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.page-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-item h2 {
    margin-bottom: 10px;
}

.page-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-item a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-section code {
    background-color: rgba(255, 255, 255, 0.1);
    color: #8be9fd;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #555;
    text-align: center;
    color: #888;
}

.footer-bottom a {
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }

    .navbar-menu {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .home .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .toc {
        display: none;
    }

    .features {
        grid-template-columns: 1fr;
    }
}
