/* Videitos API docs — Mintlify-style 3-column layout on the Holo Glass theme. */

.docs-page {
    background: #04030a;
}

.docs-shell {
    display: flex;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
    gap: 2rem;
}

/* --- Sidebar --------------------------------------------------------------- */

.docs-sidebar {
    flex: 0 0 250px;
    width: 250px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-height: 100vh;
    overflow-y: auto;
    padding: 1.75rem 0.5rem 3rem;
    scrollbar-width: thin;
}

.docs-nav-home {
    display: block;
    font-family: var(--vt-bri);
    font-weight: 600;
    color: var(--paper);
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border-radius: var(--vt-radius-sm);
    margin-bottom: 0.75rem;
}

.docs-nav-home:hover,
.docs-nav-home.is-active {
    background: var(--vt-glass-bg);
    color: var(--cian);
}

.docs-nav-group {
    margin-bottom: 1.25rem;
}

.docs-nav-group-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fog);
    padding: 0 0.6rem;
    margin-bottom: 0.35rem;
}

.docs-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.docs-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    border-radius: var(--vt-radius-sm);
    color: var(--paper);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.2;
}

.docs-nav-link:hover {
    background: var(--vt-glass-bg);
}

.docs-nav-link.is-active {
    background: rgba(70, 215, 240, 0.12);
    color: var(--cian);
}

.docs-nav-link-text {
    flex: 1;
    min-width: 0;
}

/* --- Method badges --------------------------------------------------------- */

.docs-method {
    display: inline-block;
    font-family: var(--vt-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.12rem 0.34rem;
    border-radius: 5px;
    line-height: 1.2;
    min-width: 42px;
    text-align: center;
    border: 1px solid transparent;
}

.docs-method-get { color: #46d7f0; background: rgba(70, 215, 240, 0.12); border-color: rgba(70, 215, 240, 0.35); }
.docs-method-post { color: #3dd68c; background: rgba(61, 214, 140, 0.12); border-color: rgba(61, 214, 140, 0.35); }
.docs-method-patch { color: #ff7a1a; background: rgba(255, 122, 26, 0.12); border-color: rgba(255, 122, 26, 0.35); }
.docs-method-delete { color: #ff5a7a; background: rgba(255, 90, 122, 0.12); border-color: rgba(255, 90, 122, 0.35); }

/* --- Content --------------------------------------------------------------- */

.docs-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.75rem 0 4rem;
}

.docs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
    gap: 2.5rem;
    align-items: start;
}

.docs-main {
    min-width: 0;
}

.docs-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    color: var(--cian);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.docs-title {
    font-family: var(--vt-bri);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.docs-lead {
    color: var(--fog);
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.docs-h2 {
    font-family: var(--vt-bri);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
    padding-top: 0.5rem;
}

.docs-h3 {
    font-family: var(--vt-bri);
    font-weight: 600;
    font-size: 1.02rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--paper);
}

.docs-endpoint-path {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.docs-endpoint-path code {
    font-size: 0.95rem;
    word-break: break-all;
}

.docs-list {
    color: var(--fog);
    line-height: 1.8;
}

/* --- Endpoint index (overview) -------------------------------------------- */

.docs-endpoint-index {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.docs-endpoint-index li {
    margin-bottom: 0.4rem;
}

.docs-endpoint-index a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--vt-glass-border);
    border-radius: var(--vt-radius-sm);
    background: var(--vt-glass-bg);
    text-decoration: none;
    color: var(--paper);
    flex-wrap: wrap;
}

.docs-endpoint-index a:hover {
    border-color: rgba(70, 215, 240, 0.4);
}

.docs-endpoint-index-path {
    font-size: 0.82rem;
    color: var(--fog);
}

.docs-endpoint-index-summary {
    font-weight: 600;
    font-family: var(--vt-bri);
}

/* --- Params tables --------------------------------------------------------- */

.docs-params-table {
    font-size: 0.9rem;
}

.docs-params-table code {
    font-size: 0.85rem;
}

.docs-required {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mag);
    margin-left: 0.25rem;
}

/* --- Right rail (code) ----------------------------------------------------- */

.docs-aside {
    min-width: 0;
}

.docs-aside-sticky {
    position: sticky;
    top: 1.5rem;
}

.docs-aside-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fog);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.docs-aside-label-response {
    margin-top: 1.25rem;
}

.docs-code {
    border: 1px solid var(--vt-glass-border);
    border-radius: var(--vt-radius-sm);
    overflow: hidden;
    background: #0b0a16;
}

.docs-code-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    padding: 0.35rem 0.35rem 0;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--vt-glass-border);
}

.docs-code-tab {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--fog);
    font-family: var(--vt-mono);
    font-size: 0.76rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
}

.docs-code-tab:hover {
    color: var(--paper);
}

.docs-code-tab.is-active {
    color: var(--cian);
    background: #0b0a16;
    box-shadow: inset 0 -2px 0 var(--cian);
}

.docs-code-panels {
    position: relative;
}

.docs-code-panel {
    display: none;
    position: relative;
}

.docs-code-panel.is-active {
    display: block;
}

.docs-code-copy {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    appearance: none;
    border: 1px solid var(--vt-glass-border);
    background: rgba(11, 10, 22, 0.85);
    color: var(--fog);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
}

.docs-code-copy:hover {
    color: var(--cian);
    border-color: rgba(70, 215, 240, 0.4);
}

.docs-code pre {
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    max-height: 460px;
    overflow: auto;
    font-size: 0.82rem;
}

/* Plain code blocks inside main content */
.docs-main pre {
    background: #0b0a16;
    border: 1px solid var(--vt-glass-border);
    border-radius: var(--vt-radius-sm);
    padding: 0.85rem 1rem;
    overflow: auto;
    font-size: 0.85rem;
}

.docs-main :not(pre) > code {
    font-size: 0.85em;
}

/* --- Pager ----------------------------------------------------------------- */

.docs-pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--vt-glass-border);
    flex-wrap: wrap;
}

.docs-pager-link {
    text-decoration: none;
    color: var(--paper);
    font-weight: 600;
    font-family: var(--vt-bri);
}

.docs-pager-link:hover {
    color: var(--cian);
}

.docs-pager-next {
    margin-left: auto;
    text-align: right;
}

/* --- Mobile ---------------------------------------------------------------- */

.docs-sidebar-toggle {
    display: none;
    appearance: none;
    width: 100%;
    text-align: left;
    background: var(--vt-glass-bg);
    border: 1px solid var(--vt-glass-border);
    color: var(--paper);
    border-radius: var(--vt-radius-sm);
    padding: 0.6rem 0.85rem;
    margin: 1rem 0 0;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .docs-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .docs-aside-sticky {
        position: static;
    }
}

@media (max-width: 860px) {
    .docs-shell {
        flex-direction: column;
        gap: 0;
    }
    .docs-sidebar-toggle {
        display: block;
    }
    .docs-sidebar {
        position: static;
        width: 100%;
        flex-basis: auto;
        max-height: none;
        display: none;
        padding-top: 0.5rem;
    }
    .docs-sidebar.is-open {
        display: block;
    }
    .docs-content {
        padding-top: 1rem;
    }
}
