/* ════════════════════════════════════════════════════════════════
   Stoei Core — app-shell.css (optional)
   The app frame: sidebar, logo, nav, avatar and the "Made with
   Stoei" brand badge. Apps load it right after stoei.css. Websites
   without a sidebar leave it out.
   Sidebar colors are settings in tokens.css (--st-color-sidebar,
   --st-color-on-sidebar…); set them in the app's theme file.
════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════
   SIDEBAR + NAV
════════════════════════════════════════════════════════════════ */
.st-sidebar {
    background: var(--st-color-sidebar);
    color: var(--st-color-on-sidebar);
    border-right: var(--st-line-width) solid var(--st-color-sidebar-line);
}

/* Logo: "Stoei" in italic serif, app name underneath as a small label.
   <div class="st-logo">Stoei<span class="st-logo__app">Card</span></div> */
.st-logo {
    display: inline-flex;
    flex-direction: column;
    gap: var(--st-space-2);
    font-family: var(--st-font-display);
    font-style: italic;
    font-weight: 500;
    font-size: var(--st-text-11);
    line-height: 1;
    color: var(--st-color-on-sidebar-strong);
    letter-spacing: -0.01em;
}
.st-logo__app {
    font-family: var(--st-font-body);
    font-style: normal;
    font-size: var(--st-text-0);
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--st-color-on-sidebar-muted);
}

.st-nav__item {
    display: flex;
    align-items: center;
    gap: var(--st-space-3);
    padding: var(--st-space-3);
    border-radius: var(--st-radius-control);
    font-size: var(--st-text-3);
    color: var(--st-color-on-sidebar);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    text-decoration: none;
    transition: background var(--st-motion), color var(--st-motion);
}
.st-nav__item:hover {
    background: var(--st-color-sidebar-hover);
    color: var(--st-color-on-sidebar);
    text-decoration: none;
}
.st-nav__item[aria-current="page"] {
    background: var(--st-color-sidebar-active);
    color: var(--st-color-on-sidebar-active);
}
.st-nav__label {
    font-size: var(--st-text-0);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--st-color-on-sidebar-muted);
    padding: var(--st-space-1) var(--st-space-3);
    margin-top: var(--st-space-4);
}

/* ════════════════════════════════════════════════════════════════
   BRAND BADGE
════════════════════════════════════════════════════════════════ */
/* "Made with Stoei Card" style footer badge */
.st-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--st-space-2);
    font-family: var(--st-font-display);
    font-style: italic;
    font-size: var(--st-text-3);
    color: var(--st-color-text-muted);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity var(--st-motion), color var(--st-motion);
}
.st-brand-badge:hover {
    opacity: 1;
    color: var(--st-color-accent);
    text-decoration: none;
}

/* ════════════════════════════════════════════════════════════════
   AVATAR
════════════════════════════════════════════════════════════════ */
.st-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--st-color-accent-tint);
    color: var(--st-color-accent);
    font-size: var(--st-text-1);
    font-weight: 600;
    flex-shrink: 0;
}
.st-avatar--sm { width: 1.5rem; height: 1.5rem; font-size: var(--st-text-0); }
.st-avatar--lg { width: 2.25rem; height: 2.25rem; font-size: var(--st-text-3); }
