/* ============================================================
   homeV0.01.css — the sidebar + main-column layout.

   Shared chrome (fonts, tokens, reset, footer, cookie banner, message box,
   .page-* shell, utilities) now lives in /theme.css, which every page loads
   first. Only the layout this file actually owns is left here.

   Skin-aware: colours go through the /theme.css tokens. The one exception is
   the decorative .sep rule below, whose colours are local to this file and so
   are given a local dark override (light is the default).
============================================================ */

body {
    display: flex;
}

/* ------------------------------------------------------------
   Sidebar (desktop) / app launcher (mobile — see home-mobile.css)
------------------------------------------------------------ */

.sidebar {
    width: 240px;
    min-height: 100vh;
    background: var(--panel);
    border-right: 1px solid var(--border);
    padding: 20px;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.nav a {
    display: block;
    padding: 10px;
    margin-bottom: 8px;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--panel-light);
    transition: .15s;
}

.nav a:hover {
    color: var(--text);
    background: var(--panel-hover);
}

.nav a.active {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
}

/* ------------------------------------------------------------
   Main column
------------------------------------------------------------ */

.main {
    flex: 1;
    padding: 30px;
    max-width: 1100px;
}

.section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

h1, h2, h3 {
    margin-top: 0;
    color: var(--text-strong);
}

p {
    color: var(--text-dim);
    line-height: 1.6;
}

/* ------------------------------------------------------------
   App cards
------------------------------------------------------------ */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
}

.card {
    background: var(--panel-light);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.card h3 {
    margin-bottom: 6px;
}

.card a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: var(--accent);
    color: var(--on-accent);
    text-decoration: none;
    border-radius: 6px;
}

/* ------------------------------------------------------------
   Sidebar section separator

   Decorative, and the only colours in this file that are not shared
   tokens — so the dark skin overrides them here rather than polluting
   /theme.css with a one-off.
------------------------------------------------------------ */

:root[data-theme="dark"] {
    --sep-line-1: rgba(106, 169, 255, 0.35);
    --sep-line-2: rgba(106, 169, 255, 0.8);
    --sep-glow:   rgba(106, 169, 255, 0.15);
}

:root {
    --sep-line-1: rgba(0, 102, 204, 0.25);
    --sep-line-2: rgba(0, 102, 204, 0.55);
    --sep-glow:   rgba(0, 102, 204, 0.10);
}

.sep {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 28px 0 16px;
    font-size: 12px;
    letter-spacing: 0.25em;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    position: relative;
    text-shadow: 0 0 10px var(--sep-glow);
}

/* left + right lines */
.sep::before,
.sep::after {
    content: "";
    height: 2px;
    flex: 1;
    background: linear-gradient(
        90deg,
        transparent,
        var(--sep-line-1),
        var(--sep-line-2),
        var(--sep-line-1),
        transparent
    );
}

.sep::before {
    margin-right: 14px;
}

.sep::after {
    margin-left: 14px;
}
