﻿:root
{
    /* Core palette - matched to the Flutter app's blue/grey */
    --pm-ink: #1E2A38;
    --pm-accent: #1976D2;
    --pm-accent-dark: #145A9E;
    --pm-accent-tint: #E8F1FC;
    --pm-bg: #F4F6F8;
    --pm-surface: #FFFFFF;
    --pm-border: #DEE3E8;
    --pm-border-strong: #C7CFD6;
    --pm-text: #263544;
    --pm-text-muted: #5B6B79;
    --pm-text-faint: #8A97A3;
}

html
{
    height: 100%;
}

body
{
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--pm-bg);
    color: var(--pm-text);
}

h1, h2, h3
{
    font-family: Verdana, 'Segoe UI', Tahoma, sans-serif;
    font-weight: 400;
    color: var(--pm-text);
}

h1
{
    font-size: 22pt;
}

h2
{
    font-size: 16pt;
    margin-bottom: 12px;
}

h3
{
    font-size: 13pt;
}


/***********************
Header
************************/

.pm-header
{
    height: 70px;
    flex-shrink: 0;
    background: var(--pm-ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    color: white;
}

.pm-logo,
.pm-logo span
{
    font-family: Verdana, 'Segoe UI', Tahoma, sans-serif;
    font-weight: 400;
}

.pm-logo
{
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
}

    .pm-logo img
    {
        height: 42px;
        margin-right: 15px;
    }

.pm-search
{
    width: 420px;
}

    .pm-search input,
    .pm-search .form-control
    {
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.15);
        color: white;
    }

        .pm-search input::placeholder
        {
            color: rgba(255,255,255,.55);
        }

/***********************
Toolbar (breadcrumb + platform selector)
************************/

.pm-toolbar
{
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 30px 28px;
}

    .pm-toolbar .help-platform-selector
    {
        margin-left: calc(300px + 24px);
    }

/***********************
Body
************************/

.pm-body
{
    flex: 1;
    display: flex;
    gap: 24px;
    padding: 0 30px 24px;
    min-height: 0;
}

/***********************
Sidebar
************************/

.pm-sidebar
{
    width: 300px;
    flex-shrink: 0;
    padding: 20px 20px 20px 0;
    overflow-y: auto;
}

/***********************
Content
************************/

.pm-content
{
    flex: 1;
    min-width: 0;
    overflow-y: auto;
}

/***********************
Cards
************************/

.page-card
{
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(30,42,56,.06);
}

/***********************
Tree
************************/

.tree-heading
{
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--pm-text-faint);
    margin-bottom: 14px;
}

.tree details
{
    margin-bottom: 6px;
}

.tree summary
{
    cursor: pointer;
    padding: 6px;
    font-weight: 600;
    color: var(--pm-ink);
}

.tree ul
{
    list-style: none;
    padding-left: 16px;
}

.tree li
{
    margin: 4px 0;
}

.tree a
{
    text-decoration: none;
    color: var(--pm-text-muted);
    font-size: 14px;
    transition: color .15s ease;
}

    .tree a:hover
    {
        color: var(--pm-accent);
    }

    .tree a.selected
    {
        display: block;
        padding: 8px 12px;
        margin: 2px -6px;
        border-left: 3px solid var(--pm-accent);
        background: var(--pm-accent-tint);
        color: var(--pm-accent-dark);
        font-weight: 600;
        border-radius: 0 6px 6px 0;
    }

        .tree a.selected:hover
        {
            background: #DCEBFB;
        }

/***********************
Breadcrumb
************************/

.breadcrumb-container
{
    margin-bottom: 25px;
}

.breadcrumb
{
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 16px;
    color: var(--pm-text-faint);
}

.breadcrumb-item + .breadcrumb-item::before
{
    color: var(--pm-text-faint);
}

.breadcrumb-item a
{
    color: var(--pm-text-muted);
    text-decoration: none;
}

    .breadcrumb-item a:hover
    {
        color: var(--pm-accent);
    }

.breadcrumb-item.active
{
    color: var(--pm-ink);
    font-weight: 500;
}

/***********************
Screenshots
************************/

.screenshot
{
    /*border-radius: 8px;
    border: 1px solid var(--pm-border);*/
    cursor: pointer;
    transition: .2s;
}

    .screenshot:hover
    {
        transform: scale(1.02);
    }

/***********************
Related
************************/

.related
{
    margin-top: 40px;
}

/***********************
Responsive
************************/

@media (max-width:800px)
{

    body
    {
        height: auto;
        overflow: visible;
    }

    .pm-toolbar
    {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 16px 22px;
    }

        .pm-toolbar .help-platform-selector
        {
            margin-left: 0;
        }

    .pm-body
    {
        flex-direction: column;
        padding: 0 16px 16px;
        gap: 16px;
    }

    .pm-sidebar
    {
        width: 100%;
        overflow: visible;
    }

    .pm-content
    {
        overflow: visible;
    }

    .pm-search
    {
        width: 220px;
    }
}


/*-------------------------------------------------------
    Help Images
-------------------------------------------------------*/

.help-thumbnail
{
    display: block;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform .15s ease;
}

    .help-thumbnail:hover
    {
        transform: scale(1.02);
    }

.help-border
{
    border: 1px solid var(--pm-border-strong);
}

.help-shadow
{
    box-shadow: 0 2px 8px rgba(30,42,56,.12);
}

.help-image-caption
{
    margin-top: 8px;
    margin-bottom: 20px;
    font-size: .9rem;
    color: var(--pm-text-muted);
}

.gslide-image img
{
    max-width: 90vw !important;
    max-height: 85vh !important;
    width: auto;
    height: auto;
    object-fit: contain;
}

.goverlay
{
    background: rgba(15,20,26,.88);
}

.gslide-image img
{
    border-radius: 8px;
}

.gslide-image img
{
    box-shadow: 0 10px 40px rgba(0,0,0,.45);
}


.help-image-row
{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: left;
}

.help-image
{
    flex: 1 1 450px;
    max-width: 600px;
    text-align: left;
}




.help-nav-button
{
    display: none;
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    background: var(--pm-surface);
    color: var(--pm-ink);
    border: 1px solid var(--pm-border);
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 1rem;
}

@media (max-width: 800px)
{

    .help-nav-button
    {
        display: block;
    }

    #helpTree
    {
        display: none;
        margin-bottom: 1rem;
    }

        #helpTree.open
        {
            display: block;
        }
}



.help-platform-selector
{
    display: flex;
    gap: 8px;
}


.help-platform-button
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border: 1px solid var(--pm-border-strong);
    border-radius: 20px;
    background: var(--pm-surface);
    color: var(--pm-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all .18s ease;
    cursor: pointer;
    user-select: none;
}

    .help-platform-button:hover
    {
        background: #F5F8FB;
        border-color: var(--pm-accent);
        color: var(--pm-accent);
    }

    .help-platform-button.selected
    {
        background: var(--pm-accent);
        color: white;
        border-color: var(--pm-accent);
        box-shadow: 0 2px 6px rgba(25,118,210,.25);
    }

        .help-platform-button.selected:hover
        {
            background: var(--pm-accent-dark);
            color: white;
        }


/*-------------------------------------------------------
    Callouts (used by help-keyfeatures / alert-info)
-------------------------------------------------------*/

.alert-info
{
    background: var(--pm-accent-tint);
    border: 1px solid #C7DEF6;
    color: var(--pm-accent-dark);
    border-radius: 8px;
    padding: 14px 18px;
}

    .alert-info p:first-child
    {
        font-weight: 600;
        margin-top: 0;
    }
