/* App shell */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: var(--bg-panel);
    border-right: 1px solid var(--text-dim);
    padding: 20px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-brand h1 {
    font-size: 18px;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    letter-spacing: 3px;
    padding: 12px 15px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--text-dim);
}

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

.nav-item {
    display: block;
    padding: 12px 15px;
    color: var(--text-secondary);
    font-family: "Rajdhani", sans-serif;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    border-radius: 0 4px 4px 0;
}

.nav-item:hover {
    color: var(--neon-cyan);
    padding-left: 20px;
}

.nav-item.active {
    color: var(--neon-cyan);
    border-left-color: var(--neon-cyan);
    background: linear-gradient(90deg, rgba(0, 245, 255, 0.1) 0%, transparent 100%);
    text-shadow: var(--glow-cyan);
}

/* Main content */
.main-content {
    flex: 1;
    padding: 40px;
    min-width: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Content wrapper — caps width and centres on wide screens */
.main-content > * {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid */
.grid-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Mobile layout: sidebar becomes bottom nav */
@media (max-width: 768px) {
    .app-container { flex-direction: column; }

    .sidebar {
        width: 100%;
        flex-direction: row;
        padding: 0;
        border-right: none;
        border-top: 1px solid var(--text-dim);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: var(--bg-panel);
        gap: 0;
    }

    .sidebar-brand { display: none; }

    .nav-list {
        display: flex;
        width: 100%;
    }

    .nav-list li { flex: 1; }

    .nav-item {
        text-align: center;
        padding: 14px 8px;
        font-size: 11px;
        border-left: none;
        border-top: 3px solid transparent;
        border-radius: 0;
        letter-spacing: 0;
    }

    .nav-item:hover { padding-left: 8px; }

    .nav-item.active {
        border-left-color: transparent;
        border-top-color: var(--neon-cyan);
        background: rgba(0, 245, 255, 0.08);
    }

    .main-content {
        padding: 20px 16px 100px;
    }

    .grid-masonry {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
