/* Growbot Documentation Styles */

:root {
    --docs-bg: #ffffff;
    --docs-text: #1f213f;
    --docs-text-secondary: #4a4b5c;
    --docs-link: #2583cc;
    --docs-link-hover: #1c6aa6;
    --docs-border: #e3e1ec;
    --docs-border-light: #f0eef5;
    --docs-card-bg: #ffffff;
    --docs-card-shadow: 0 4px 16px rgba(31, 33, 63, 0.06);
    --docs-card-shadow-hover: 0 8px 24px rgba(31, 33, 63, 0.1);
    --docs-header-bg: #ffffff;
    --docs-code-bg: #f4f3f8;
    --docs-summary-color: #3a3b4d;
    --docs-breadcrumb-color: #888;
    --docs-tip-bg: #f5f9fd;
    --docs-tip-border: #c9d8ea;
    --docs-figure-bg: #f9f8fc;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }

body.growbot-docs {
    margin: 0;
    padding: 0;
    font-family: Hind, "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--docs-text);
    background: var(--docs-bg);
}

a { color: var(--docs-link); text-decoration: none; }
a:hover { color: var(--docs-link-hover); text-decoration: underline; }

/* Header */
.growbot-docs-header {
    background: var(--docs-header-bg);
    border-bottom: 1px solid var(--docs-border);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.growbot-docs-header-inner {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 56px;
}

.growbot-docs-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: var(--docs-text);
    text-decoration: none;
}

.growbot-docs-logo:hover { text-decoration: none; color: var(--docs-text); }
.growbot-docs-logo img { border-radius: 6px; }

.growbot-docs-nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--docs-text-secondary);
}

.growbot-docs-nav-link:hover { color: var(--docs-link); text-decoration: none; }

/* Main */
.growbot-docs-main {
    padding: 40px 24px 80px;
}

.growbot-docs-container {
    max-width: 820px;
    margin: 0 auto;
}

/* Breadcrumbs */
.growbot-docs-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 14px;
    color: var(--docs-breadcrumb-color);
}

.growbot-docs-breadcrumb li::after {
    content: "/";
    margin-left: 4px;
    color: var(--docs-breadcrumb-color);
}

.growbot-docs-breadcrumb li:last-child::after { content: none; }

.growbot-docs-breadcrumb a {
    color: var(--docs-breadcrumb-color);
}

.growbot-docs-breadcrumb a:hover { color: var(--docs-link); }

/* Hub page */
.growbot-docs-intro {
    font-size: 18px;
    color: var(--docs-text-secondary);
    margin-bottom: 40px;
    line-height: 1.5;
}

.growbot-docs-category-section {
    margin-bottom: 48px;
}

.growbot-docs-category-section > h2 {
    font-size: 22px;
    margin: 0 0 4px;
}

.growbot-docs-category-section > h2 a {
    color: var(--docs-text);
}

.growbot-docs-category-section > h2 a:hover {
    color: var(--docs-link);
    text-decoration: none;
}

.growbot-docs-category-desc {
    color: var(--docs-text-secondary);
    margin: 0 0 16px;
    font-size: 15px;
}

/* Article cards (hub + category listing) */
.growbot-docs-article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.growbot-docs-article-card {
    display: block;
    padding: 20px 24px;
    background: var(--docs-card-bg);
    border: 1px solid var(--docs-border);
    border-radius: 10px;
    box-shadow: var(--docs-card-shadow);
    color: var(--docs-text);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.growbot-docs-article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--docs-card-shadow-hover);
    border-color: var(--docs-tip-border);
    text-decoration: none;
    color: var(--docs-text);
}

.growbot-docs-article-card h2,
.growbot-docs-article-card h3 {
    font-size: 17px;
    margin: 0 0 6px;
    font-weight: 600;
    color: var(--docs-link);
}

.growbot-docs-article-card p {
    font-size: 14px;
    color: var(--docs-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Article page */
.growbot-docs-article h1 {
    font-size: 28px;
    margin: 0 0 12px;
    line-height: 1.3;
    font-weight: 700;
}

.growbot-docs-summary {
    font-size: 18px;
    color: var(--docs-summary-color);
    margin: 0 0 32px;
    line-height: 1.5;
}

.growbot-docs-section {
    margin-bottom: 32px;
}

.growbot-docs-section h2 {
    font-size: 20px;
    margin: 0 0 12px;
    font-weight: 600;
}

.growbot-docs-section p {
    margin: 0 0 12px;
}

.growbot-docs-section ol,
.growbot-docs-section ul {
    padding-left: 24px;
    margin: 0 0 16px;
}

.growbot-docs-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.growbot-docs-section code {
    background: var(--docs-code-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Tips */
.growbot-docs-tips {
    background: var(--docs-tip-bg);
    border: 1px solid var(--docs-tip-border);
    border-radius: 8px;
    padding: 16px 16px 16px 36px;
    list-style: disc;
}

.growbot-docs-tips li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.growbot-docs-tips li:last-child {
    margin-bottom: 0;
}

/* Figures */
.growbot-docs-figure {
    margin: 24px 0;
    background: var(--docs-figure-bg);
    border: 1px solid var(--docs-border);
    border-radius: 10px;
    overflow: hidden;
}

.growbot-docs-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.growbot-docs-figure figcaption {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--docs-text-secondary);
    text-align: center;
}

/* Related */
.growbot-docs-related {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--docs-border-light);
}

.growbot-docs-related h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.growbot-docs-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.growbot-docs-related li {
    margin-bottom: 4px;
}

/* Share */
.growbot-docs-share {
    margin-top: 24px;
    display: flex;
    gap: 8px;
}

.growbot-docs-share-btn {
    background: var(--docs-card-bg);
    border: 1px solid var(--docs-border);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--docs-text-secondary);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.growbot-docs-share-btn:hover {
    border-color: var(--docs-link);
    color: var(--docs-link);
}

/* Footer */
.growbot-docs-footer {
    padding: 24px;
    border-top: 1px solid var(--docs-border);
    font-size: 14px;
    color: var(--docs-text-secondary);
}

.growbot-docs-footer .growbot-docs-container {
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .growbot-docs-main {
        padding: 24px 16px 60px;
    }

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

    .growbot-docs-header-inner {
        gap: 16px;
    }

    .growbot-docs-share {
        flex-direction: column;
    }
}
